Return to the text: Writing the Library of Congress
Writing the Library of Congress
The assumptions
- The Library of Congress holds about 41 million books and other printed volumes (about 25.8 million cataloged books plus about 15.5 million other printed items).
- A book averages 300 pages; a page averages 2,000 letters. Both are rough, round figures.
- In ordinary English text, E is the most common letter, at about 12.7 percent.
- The computer generates letters at random, each of the 26 equally likely.
Step 1: letters in the library
41,000,000 × 300 × 2,000 ≈ 2.5 × 1013 letters (about 25 trillion)
Step 2: E's in the library
2.5 × 1013 × 0.127 ≈ 3.1 × 1012 E's (about 3 trillion)
Step 3: random letters needed to produce that many E's
One random letter in 26 is an E.
3.1 × 1012 × 26 ≈ 8.1 × 1013 letters (roughly 80 trillion)
Every other letter is rarer than E in English but just as common as E in the random output, so by this point every other letter has also passed its quota.
Step 4: how long it takes
8.1 × 1013 ÷ 106 letters per second ≈ 8.1 × 107 seconds ≈ 2.6 years
8.1 × 1013 ÷ 109 letters per second ≈ 81,000 seconds ≈ 23 hours
One ordinary computer: about two and a half years. One fast machine: less than a day. Anderson's project took about six and a half weeks.
Last revised 2026-11-17
Return to the text: Writing the Library of Congress