MathDB
2007 Guts #7: Kevin Miscounts

Source:

June 22, 2012
Harvardcollegemodular arithmetic

Problem Statement

A student at Harvard named Kevin Was counting his stones by 1111 He messed up nn times And instead counted 99s And wound up at 20072007.
How many values of nn could make this limerick true?