# Tag Archives: series-sum

## Sum of first N natural numbers with all powers of 2 added twice

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 »

## Sum of sum-series of first N Natural numbers

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 »

## Sum of the first N Pronic Numbers

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 »

## Sum of series formed by difference between product and sum of N natural numbers

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 »

## Sum of first N Star Numbers

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 »

## Find the sequence number of a triangular number

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 »

## Sum of first K numbers which are not divisible by N

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 »

## Find the sum of all Betrothed numbers up to N

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 »

## Find K consecutive integers such that their sum is N

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 »

## Sum of alternating sign cubes of first N Natural numbers

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 »

## Program to find the sum of the series 1 + x + x^2+ x^3+ .. + x^n

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 »

## Last digit of sum of numbers in the given range in the Fibonacci series

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 »

## Program to print the series 1, 9, 17, 33, 49, 73, 97… till N terms

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 »

## Find the Sum of the series 1/2 – 2/3 + 3/4 – 4/5 + … till N terms

Given a number N, the task is to find the sum of the below series till N terms. Examples: Input: N = 6 Output: -0.240476… Read More »

## Find the Sum of the series 1 + 2 + 9 + 64 + 625 + 7776 … till N terms

Given a number N, the task is to find the sum of the below series till N terms. Examples: Input: N = 2 Output: 3… Read More »