What is the average of the first 99 positive integers.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
9 9 + 1 = 1 0 0 , average of 9 9 and 1 is 1 0 0 / 2 = 5 0
9 8 + 2 = 1 0 0 , average of those two is also 1 0 0 / 2 = 5 0
Continue on until only one number is left: 5 0
Average of all those 5 0 's is, of course, 5 0 .
Python 2.7:
1 |
|
Problem Loading...
Note Loading...
Set Loading...
Sum of first "n" numbers= n(n+1)/2
average of first n numbers= ( s u m o f " n " n u m b e r s ) / n = ( n + 1 ) / 2
Therefore, average of first 99 no's = 50