John and Mary live in a building with 100 floors and 25 apartments per floor. In the first floor, the apartments are numbered from 1 to 25, in the second floor from 26 to 50 and so on, until the floor, where the apartments are numbered from 2476 to 2500. John lives in the floor whose number is the same as Mary's apartment's. The sum of the numbers of John and Mary's apartments is 2017.
What's the number of John's apartment?
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.
Since there are 1 0 0 floors and the number of Mary's apartment is equal to John's floor's number, Mary lives at most at apartment 1 0 0 , so John's apartment's number is at least 2 0 1 7 − 1 0 0 = 1 9 1 7 and at most 2 0 1 7 − 1 = 2 0 1 6 . This means he lives between floor 7 7 and floor 8 1 , which means Mary's apartment's number is between 7 7 and 8 1 . Consequently, John's apartment's number is 1 9 3 6 , 1 9 3 7 , 1 9 3 8 , 1 9 3 9 or 1 9 4 0 ( because the sum of their apartment's numbers is 2 0 1 7 ), which are all in floor number 7 8 . Therefore, John's apartment's number is 2 0 1 7 − 7 8 = 1 9 3 9 .