Problem 3869 · Hard

Count Fancy Numbers in a Range

Strictly monotone digits make a number good; a number is fancy when it or its digit sum is good.

Open the interactive visualisation