Find the least positive integer such that ends with , i.e.,
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.
This method reduces the number of n we have to check.
Note that the unit digits of powers of 2 is 2 , 4 , 8 , 6 , 2 , 4 . . .
n must be even since all powers of 2 are even.
Case 1: n ≡ 0 ( m o d 4 )
The corresponding unit digit for 2 n is 6.
n which satisfy both 0 ( m o d 4 ) and 6 ( m o d 1 ) 0 are n = 1 6 , 3 6 , 5 6 , …
Case 2: n ≡ 2 ( m o d 4 )
The corresponding unit digit for 2 n is 4.
n which satisfy both 2 ( m o d 4 ) and 4 ( m o d 1 0 ) are n = 1 4 , 3 4 , 5 4 , …
Now comes the tedious (but still fairly simple) part - listing the last two digits of powers of 2.
They are 0 2 , 0 4 , 0 8 , 1 6 , 3 2 , 6 4 , 2 8 , 5 6 , 1 2 , 2 4 , 4 8 , 9 6 , 9 2 , 8 4 , 6 8 , 3 6 , 7 2 , 4 4 , 8 8 , 7 6 , 5 2 , 0 4 , 0 8 , …
Hence 2 n ( m o d 1 0 0 ) has period 20. Checking 1 4 , 1 6 , 3 4 , 3 6 , … , we see that their last 2 digits are 8 4 , 3 6 , 8 4 , 3 6 , …
We can stop here since we found the smallest solution of n = 3 6
I hope this method is short enough.