Last active
August 29, 2015 13:57
-
-
Save sirpengi/9478864 to your computer and use it in GitHub Desktop.
proggitquiz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"If the integers from 1 to 999,999,999 are written as | |
words, sorted alphabetically, and concatenated, what | |
is the 51 billionth letter?" | |
To be precise: if the integers from 1 to 999,999,999 | |
are expressed in words (omitting spaces, 'and', and | |
punctuation[1]), and sorted alphabetically so that | |
the first six integers are | |
eight | |
eighteen | |
eighteenmillion | |
eighteenmillioneight | |
eighteenmillioneighteen | |
eighteenmillioneighteenthousand | |
twothousandtwohundredtwo | |
then reading top to bottom, left to right, the 28th | |
letter completes the spelling of the integer "eighteenmillion". | |
The 51 billionth letter also completes the spelling | |
of an integer. Which one, and what is the sum of all | |
the integers to that point? | |
[1] For example, 911,610,034 is written "ninehundredelevenmillionsixhundredtenthousandthirtyfour"; | |
500,000,000 is written "fivehundredmillion"; 1,709 is written "onethousandsevenhundrednine". | |
* stolen from http://www.itasoftware.com/careers/puzzle_archive.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1,709 is written "onethousandsevenhundrednine".
It should be
onethousandsevenhundrednine