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 = ⌊log⁡10m⌋+1\lfloor\log_{10} m\rfloor+1. Note log⁡1021000+log⁡1051000=1000\log_{10}2^{1000}+\log_{10}5^{1000}=1000.
  2. For non-integer xx, ⌊x⌋+⌊1000−x⌋=999\lfloor x\rfloor+\lfloor 1000-x\rfloor=999; add the two +1+1's.

Answer

Reveal answer →

1001

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Systematic & Data-Driven Trading

Related questions