A boy starts adding consecutive natural no.s starting from 1. After some time, he reaches a total sum of 1000 when he realises that he has double counted a number. Find the number double counted.
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.
Sum on positive integers from 1 to n is equal to n(n+1)/2
Let m be the double counted number.
n >= m
n, m are positive integers.
n(n+1)/2 + m = 1000
m > 1
so n(n+1)/2 < 1000
n^2 + n - 2000 < 0
=> n < 45
Let's assume that n = 44
44(44+1)/2 + m = 1000
=> m = 10
if n < 44
m = 10 + 990 - n(n+1)/2 = 1000 - n(n+1)/2
1000 - n(n+1)/2 < n
2000 - n^2 - n < 2n
2000 - n^2 - 3n < 0
n^2 + 3n - 2000 > 0
n > (sqrt(8009) - 3)/2
n >= 44
so if n < 44 thenn >= 44 which is not possible so
n = 44 is the only possible
so m = 10 which the only solution
Result: 10