0:00
Combinatorics 5.0/10

Digit Sum Marathon

Find the sum of all the digits of all the integers from 1 to 999,999 inclusive. (For example, 1 to 12 contributes 1 + 2 + ... + 9 + 1 + 0 + 1 + 1 + 1 + 2.) Give an integer.

Related problems & prerequisites

Worth solving first

Source: Classic exercise in wide circulation; no traceable original source. Statement written for AxiomIQ.