MathDB
2017 Combinatorics #5: Kelvin the Frog's Favorite Numbers

Source:

February 19, 2017

Problem Statement

Kelvin the Frog likes numbers whose digits strictly decrease, but numbers that violate this condition in at most one place are good enough. In other words, if did_i denotes the iith digit, then didi+1d_i\le d_{i+1} for at most one value of ii. For example, Kelvin likes the numbers 4321043210, 132132, and 33, but not the numbers 13371337 and 123123. How many 55-digit numbers does Kelvin like?