Hindi, asked by megeetapradhan5741, 10 months ago

Average of n(n+1) (n+2) (n+3) (n+4) (n+5)

Answers

Answered by riyaenterprises012
0

Explanation:

Sum of series (n/1) + (n/2) + (n/3) + (n/4) +…….+ (n/n)

Given a value n, find the sum of series, (n/1) + (n/2) + (n/3) + (n/4) +…….+(n/n) where the value of n can be up to 10^12.

Note: Consider only integer division.

Examples:

Input : n = 5

Output : (5/1) + (5/2) + (5/3) +

(5/4) + (5/5) = 5 + 2 + 1 + 1 + 1

= 10

Input : 7

Output : (7/1) + (7/2) + (7/3) + (7/4) +

(7/5) + (7/6) + (7/7)

= 7 + 3 + 2 + 1 + 1 + 1 + 1

= 16

Similar questions