Happy numbers runs, heights, and a census
Square the digits and add: 19 → 1² + 9² = 82 → 68 → 100 → 1. A number is happy if it ends at 1; every other number falls into the loop 4 → 16 → 37 → 58 → 89 → 145 → 42 → 20 → 4. About one number in seven is happy, but runs of them are rare: the first run of six starts at a 25-digit number, and the first run of thirteen at a number with 603,699 digits. This page finds them by an exhaustive search that proves each one is the smallest, and works the same way in any base.
Puzzle: pick a base and a number of digits, then find where the longest run of consecutive happy numbers starts. The target is the true maximum from a census of every number; the solver shows the first run.