Problem 3855 · Hard

Sum of K-Digit Numbers in a Range

Each digit position contributes the digit sum times the number of ways, so one closed form replaces enumeration.

Open the interactive visualisation