matching wikipedia's statement of the problem
back to using 98 as the max number, not 99