Digits of concatenated powers

MediumBrainteasers~6m

Write out the full decimal expansions of 210002^{1000} and 510005^{1000} and concatenate them into a single number nn. How many digits does nn have?

Show hints (2)+
  1. Digits of mm = log10m+1\lfloor\log_{10} m\rfloor+1. Note log1021000+log1051000=1000\log_{10}2^{1000}+\log_{10}5^{1000}=1000.
  2. For non-integer xx, x+1000x=999\lfloor x\rfloor+\lfloor 1000-x\rfloor=999; add the two +1+1's.

Answer

Reveal answer →

1001

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, Two Sigma

Related questions