Summing digits to a million

What is the sum of all the digits of all the integers from 11 to 1,000,0001{,}000{,}000 inclusive? (For example, the number 4646 contributes 4+6=104 + 6 = 10.)

Show hints (2)+
  1. Pad numbers to 66 digits (000000000000999999999999). In each position every digit 0099 appears 100000100000 times.
  2. Per position: 10000045100000\cdot45; times 66 positions; then add the digits of 1,000,0001{,}000{,}000.

Answer

Reveal answer →

27000001

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Citadel

Related questions