## Summation of floor of harmonic progression

Given an integer N, the task is to find the summation of the harmonic series . Examples: Input: N = 5 Output: 10 floor(3/1) +… Read More »

## Program for sum of cosh(x) series upto Nth term

Given two numbers x and N, the task is to find the value of cosh(x) from the series upto N terms. The expansion of cosh(x)… Read More »

## Sum of the Tan(x) expansion upto N terms

Given two integers N and X. The task is to find the sum of tan(x) series up to N terms. The series : x +… Read More »

## Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term

Given a series of numbers 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13… The task is to find the sum of… Read More »

## Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ……. (K-1)n

Given a value K and n, the task is to find the sum of the below series: Kn + ( K(n-1) * (K-1)1 ) +… Read More »

## Sum of all i such that (2^i + 1) % 3 = 0 where i is in range [1, n]

Given an integer N, the task is to calculate the sum of all i from 1 to N such that (2i + 1) % 3… Read More »

## Sum of the series 1^1 + 2^2 + 3^3 + ….. + n^n using recursion

Given an integer n, the task is to find the sum of the series 11 + 22 + 33 + ….. + nn using recursion.… Read More »

## Sum of the series (1*2) + (2*3) + (3*4) + …… upto n terms

Given a value n, the task is to find sum of the series (1*2) + (2*3) + (3*4) + ……+ n terms Examples: Input: n… Read More »

## Find Nth term of the series 1, 5, 32, 288 …

Given a number n, the task is to find the n-th term in series 1, 5, 32, 288 … Examples: Input: N = 3 Output:… Read More »

## Sum of numbers from 1 to N which are in Lucas Sequence

Given a number N. The task is to find the sum of numbers from 1 to N, which are present in the Lucas Sequence. The… Read More »

## Sum of the natural numbers (up to N) whose modulo with K yield R

Given three integers N, K and R. The task is to calculate the sum of all those numbers from 1 to N which yields remainder… Read More »

## Generate minimum sum sequence of integers with even elements greater

Given an integer N, the task is to generate a sequence of N positive integers such that: Every element at the even position must be… Read More »

## Program to find sum of harmonic series

Harmonic series is inverse of a arithmetic progression. In general, the terms in a harmonic progression can be denoted as 1/a, 1/(a + d), 1/(a… Read More »

## Find the sum of first N terms of the series 2*3*5, 3*5*7, 4*7*9, …

Given an integer N, the task is to find the sum of first N terms of the series: (2 * 3 * 5), (3 *… Read More »

## Sum of kth powers of first n natural numbers

Given two integers n and k, the task is to calculate and print 1k + 2k + 3k + … + nk. Examples: Input: n… Read More »