Krishna always reads some (at least 2) pages of "Harry Potter" before going to school. One good day, Agnishom asked him - "Krishna, what is the sum of all the page numbers you read today?"
Krishna replied "It is either 512 or 412."
What is it?
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.
I did it by proving that the answer cannot be 512 while 412 is possible. Only way it can be 512 is that if he reads only page number 512, but then it is highly unlikely that he won't remember the number.
Let n be the number of pages he has read total. And x be the number of pages he had read earlier.
Let us assume that the sum was 512. We will prove that this isn't possible.
Then, sum of pages is -
n(n + 1)/2 - x(x + 1)/2 = 512
Making 2 cases -
1 - If 'n' is even.
a)x is odd. Then, (n-x)(n+x+1) becomes (odd)(even)
b)x is even. Then, it is (even)(odd)
2.If 'n' is odd.
a) x is even. Then, (odd)(even)
b) x is odd. Then (Even)(Odd).
As stated above, 1024 cannot have any odd factor other than 1, so it is not possible to get 512 as the answer. At the same time, 412 is a valid option since it can be written as (103)*4.