Calculate arithmentic mean for first n natural numbers
Answers
Answered by
0
The idea is the sum of first neven number is n(n+1), for find the Averageof first n even numbers divide by n, hence formula is n(n + 1) / n = ( n + 1). i.e. Average of first n even numbers is n+1. it take 0(1) time.
Similar questions