# Tag Archives: series-sum

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples:   Input: 1 Output: 2Input: 3 Output: 242   We may assume that overflow does… Read More
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
Given a positive integer n. The task is to find the sum of the sum of first n natural number. Examples:  Input: n = 3Output:… Read More
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
Given n and x, where n is the number of terms in the series and x is the value of the angle in degree. Program to… Read More
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:Tn… Read More
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
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
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
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
For given any unsigned int n find the final value of ∑(i*j) where (1<=i<=n) and (i <= j <= n).Examples:   Input : n = 3… Read More
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
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
Find the sum up to n terms of the sequence: 5 + 55 + 555 + … up to n. Examples :   Input : 2 Output:… Read More
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