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
- Eight Rooks 4.0/10
- Digits That Never Decrease 4.0/10
- Ahead of the Two 4.0/10
Source: Classic exercise in wide circulation; no traceable original source. Statement written for AxiomIQ.