# Tag Archives: series-sum

Given a number n, the task is to find the sum of the below series upto n terms:  12 – 22 + 32 – 42… Read More
Given a positive integer n, the task is to find the value of F1 – F2 + F3 -……….+ (-1)n+1Fn where Fi denotes i-th Fibonacci… Read More
Given a number N, the task is to find units place digit of the first N natural numbers factorials, i.e. 1!+2!+3!+….N! where N<=10e18.Examples:   Input: n… Read More
Given a positive integer N. The task is to find the sum of squares of all Fibonacci numbers up to N-th Fibonacci number. That is,  … Read More
Given a function f(n) = (13 + 23 + 33 + … + n3), the task is to find the value of f(n) mod 4… Read More
Given a number N, the task is to find the sum of first N terms of the below series:  Sn = 2 + 10 +… Read More
Given a number N, the task is to find the sum of the first N terms of the below series: Sn = 2 + 6… Read More
Given a number N, the task is to find the sum of first N terms of the below series:  Sn = 5 + 12 +… Read More
Given a number N. The task is to write a program to find the Nth term in the below series: 0, 5, 14, 27, 44… Read More
Given a number N. The task is to write a program to find the Nth term of the below series:  0, 14, 40, 78, 124… Read More
Given a number N, the task is to find the Nth term of the below series:  23 + 45 + 75 + 113 + 159… Read More
Given two numbers N and T where, and . The task is to find the value of .Since sum can be large, output it modulo 109+7.Examples:   Input :… Read More
Given a number n, the task is to find the sum of first n terms of this series. Below is the series:      Examples:  … Read More
Given a series where x, y and n take integral values. The task is to Find the sum till nth term of the given series.Examples:   Input:… Read More
Given an infinite series and a value x, the task is to find its sum. Below is the infinite series   1^2*x^0 + 2^2*x^1 + 3^2*x^2… Read More