Total of all digits from one to a million
Question
Add up every digit of every integer from to inclusive. (For instance, contributes .) What is the total?
Short answer
. Pad to to six digits: each position runs through – equally often, so each digit appears times per position, giving . Adding for the number gives the total.
Adapted from QuantQuestions.io; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solution