Skip to content

Tag Archives: series-sum

Given an integer N, the task is to find the sum of first N terms of the series:   (2 * 3 * 5), (3 *… Read More
Given two integers n and k, the task is to calculate and print 1k + 2k + 3k + … + nk.Examples:   Input: n =… Read More
Defined a function that calculates the twice of sum of first N natural numbers as sum(N). Your task is to modify the function to sumX(N,… Read More
Given two integers L and R, the task is to find the sum of all odd natural numbers in range L and R inclusive. Examples:  Input:… Read More
Given a range L and R, the task is to find the sum of all natural numbers in range L to R. Examples:   Input: L =… Read More
Given two integers and and an array arr[] every element of which at index is calculated as arr[i] = i * (-1)i. The task is to find the… Read More
Given a number N, the task is to find the sum of all the multiples of A and B below N.Examples:   Input:N = 11, A=… Read More
Given two integers a and n. The task is to find the sum of the series 1/a + 2/a2 + 3/a3 + … + n/an.Examples:   Input: a… Read More
Given a number N. and the task is to find the sum of all multiples of 2 and 5 below N ( N may be… Read More
Given a number N. The task is to find the sum of all those numbers from 1 to N that are divisible by 2 or… Read More
Given a series of natural numbers divided into groups as: (1, 2), (3, 4, 5, 6), (7, 8, 9, 10, 11, 12), (13, 14, 15,… Read More
Given an integer N. The task is to find the sum upto N terms of the given series:  3, -6, 12, -24, … upto N… Read More
Given an integer N. The task is to find the sum upto N terms of the given series:  2×3 + 4×4 + 6×5 + 8×6… Read More
Given a quadratic series as given below, the task is to find the sum of the first n terms of this series. Sn = 3… Read More
Given a number x and n, the task is to find the sum of the below series of x till n terms:   Examples:   Input: x… Read More

Start Your Coding Journey Now!