Tag Archives: series-sum

Given three positive integers A, B, and N where A and B are the first two terms of the XOR Fibonacci series, the task is… Read More
Given an integer N, the task is to calculate the sum of first N natural numbers adding all powers of 2 twice to the sum.Examples: … Read More
Given a natural number n, find the sum of sum-series of first N natural number. Sum-Series: is sum of first N natural numbers, i.e, sum-series… Read More
Given a number N, the task is to find the sum of the first N Pronic Numbers. The numbers that can be arranged to form… Read More
Given a natural number N, the task is to find the sum of the series up to Nth term where the ith term denotes the… Read More
Given a number N, the task is to find the sum of the first N star numbers. The first few star numbers are 1, 13,… Read More
Given an integer N print the sequence number of the given Triangular Number. If the number is not a triangular number then print -1. A… Read More
Given two numbers N and K, the task is to find the sum of first K numbers which are not divisible by N. Examples: Input:… Read More
Given a number N, the task is to find the sum of the all Betrothed numbers up to N. Let, A and B are a… Read More
Given two integers N and K, the task is to find K consecutive integers such that their sum if N. Note: If there is no… Read More
Given a number N, the task is to find the sum of alternating sign cubes of first N natural numbers, i.e., 13 – 23 +… Read More
Given an integer X, the task is to print the series and find the sum of the series Examples : Input: X = 2, N… Read More
Given two non-negative integers M, N which signifies the range [M, N] where M ≤ N, the task is to find the last digit of… Read More
Given a number N, the task is to print the first N terms of the series: Examples: Input: N = 7 Output: 1, 9, 17,… Read More