# Tag Archives: series-sum

## Sum of series 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)!

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples: Input: 1 Output: 2 Input: 3 Output: 242 We may… Read More »

## Sum of square-sums of first n natural numbers

Given a positive integer n. The task is to find the sum of the sum of square of first n natural number. Examples : Input… Read More »

## Sum of first n natural numbers

Given a positive integer n. The task is to find the sum of the sum of first n natural number. Examples: Input : n =… Read More »

## Sum of range in a series of first odd then even natural numbers

The sequence first consists of all the odd numbers starting from 1 to n and then remaining even numbers starting 2 up to n. Let’s… Read More »

## Program for sum of cos(x) series

Given n and b, where n is the number of terms in the series and b is the value of the angle in degree. Program… Read More »

## Program to print the sum of the given nth term

Given the value of the n. You have to find the sum of the series where the nth term of the sequence is given by:… Read More »

## Sum of series M/1 + (M+P)/2 + (M+2*P)/4 + (M+3*P)/8……up to infinite

Find the sum of series M/1 + (M+P)/2 + (M+2*P)/4 + (M+3*P)/8……up to infinite where M and P are positive integers. Examples: Input : M… Read More »

## Squared triangular number (Sum of cubes)

Given a number s (1 <= s <= 1000000000). If s is sum of the cubes of the first n natural numbers then print n,… Read More »

## Square pyramidal number (Sum of Squares)

A Square pyramidal number represents sum of squares of first natural numbers. First few Square pyramidal numbers are 1, 5, 14, 30, 55, 91, 140,… Read More »

## Find sum of Series with n-th term as n^2 – (n-1)^2

We are given an integer n and n-th term in a series as expressed below: Tn = n2 – (n-1)2 We need to find Sn… Read More »

## Sum of pairwise products

For given any unsigned int n find the final value of ∑(i*j) where (1<=i<=n) and (i <= j <= n). Examples: Input : n =… Read More »

## Sum of the series 1.2.3 + 2.3.4 + … + n(n+1)(n+2)

Find the sum up to n terms of the series: 1.2.3 + 2.3.4 + … + n(n+1)(n+2). In this 1.2.3 represent the first term and… Read More »

## Sum of series with alternate signed squares of AP

We are given the Integer n and also in the next line 2*n integers which represent a Arithmetic Progression series a1, a2, a3…a2n they are… Read More »

## Sum of the series 5+55+555+.. up to n terms

Find the sum up to n terms of the sequence: 5 + 55 + 555 + … up to n. Examples : Input : 2… Read More »

## Sum of Series (n^2-1^2) + 2(n^2-2^2) +….n(n^2-n^2)

Program for finding the sum of the nth term of the series (n^2-1^2) + 2(n^2-2^2) + 3(n^2-3^2) + ….n(n^2-n^2) Examples: Input : 2 Output :3… Read More »