Common Starting Digit For Two Powers?

For some positive integer n n , the numbers 2 n 2^n and 5 n 5^n have the same starting digit (digit on the extreme left) in base 10 format. What is that starting digit?

1 4 8 5 6 2 3 7

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Soutik Banerjee
May 2, 2016

Relevant wiki: General Diophantine Equations - Problem Solving

Let the common starting digit be 'm'

Then we can write, for some arbitrary integers x and y:

m . 1 0 x m.10^x < 2 n 2^n < ( m + 1 ) . 1 0 x (m+1).10^x

m . 1 0 y m.10^y < 5 n 5^n < ( m + 1 ) . 1 0 y (m+1).10^y

Strict inequality must hold because a power of 2 or 5 cannot be a multiple of 10.

Multiplying the two inequalities yields: m 2 . 1 0 x + y m^2.10^{x+y} < 1 0 n 10^n < ( m + 1 ) 2 . 1 0 x + y (m+1)^2.10^{x+y}

Or, m 2 m^2 < 1 0 n x y 10^{n-x-y} < ( m + 1 ) 2 (m+1)^2

Now as m is a single digit number (something between 1 and 9) so m 2 m^2 and ( m + 1 ) 2 (m+1)^2 are both definitely something between 1 and 100. We have already seen that 1 0 n x y 10^{n-x-y} lies between (and not inclusive of) m 2 m^2 and ( m + 1 ) 2 (m+1)^2 . But there is only one power of 10 lying between 1 and 100 non-inclusive.

This means that 1 0 n x y 10^{n-x-y} = 10

So, m 2 m^2 < 10 < ( m + 1 ) 2 (m+1)^2

So 10 lies between two consecutive squares. So these squares must be 9 and 16. Thus giving m = 3.

So the answer is 3.

Nice problem! It is interesting to see that if 2 n 2^n and 5 n 5^n have the same starting digit, then the digit has to be 3. However, if one of 2 n 2^n and 5 n 5^n starts with 3, then its not necessary for the other number to also start with 3.

Pranshu Gaba - 5 years, 1 month ago

Log in to reply

Yes, exactly. It is a pretty interesting observation made by whoever discovered this. (No, it wasn't me. :P )

Soutik Banerjee - 5 years, 1 month ago

Great solution!!

Puneet Pinku - 5 years, 1 month ago

Nice answer!!!

Jaime Cabrera - 5 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...