Powers of 2

Does there exist a power of 2 whose last 4 digits are all identical?


Note : n n is a positive integer.

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.

7 solutions

For n 4 n \geq 4 , 2 n 2^n is a multiple of 16. Also, 10 000 10\:000 is a multiple of 16.

However, since 1111 1111 is odd, none of its multiples 1111 a 1111a with a 9 a \leq 9 is a multiple of 16. Therefore 10 000 k + 1111 a 10\:000k + 1111a is not a multiple of 16, and cannot be a power of two.

As a trivial exception, add four zeros to any whole number.

Donald Zacherl - 4 years ago

Log in to reply

There are no powers of two that end in four zeroes, either.

Arjen Vreugdenhil - 4 years ago

Log in to reply

Why aren't there any such powers?

Log in to reply

@Agnishom Chattopadhyay Any number ending in zero has 5 5 as a prime factor. Powers of two only have 2 2 as a prime power. Therefore, powers of two do not end in a zero, even less in four zeroes.

Arjen Vreugdenhil - 4 years ago

This solution doesn't tell why it's impossible for the number 10000 k + 1111 a 10000k+1111a to equal 2 n 2^n (with positive integer n n ) when a = 0 a=0 (and the number is a multiple of 16), so the solution isn't yet complete.

Of course, it's easy to tell that the number 10000 k + 1111 a 10000k+1111a with a = 0 a=0 is divisible by 10000 10000 which means it is divisible by 5 5 and can't be a power of 2 2 .

Tarmo Taipale - 4 years ago

Log in to reply

You are right. I considered that case easy enough to leave out. I gave the same argument as you did in response to Donald Zacherl's comment.

Arjen Vreugdenhil - 4 years ago

However, the three last digits 888 is a repeating pattern.   Howe would you use this argument to prove that result?

Carrick T - 4 years ago

Log in to reply

The case of the last three digits is different.

For n 3 n \geq 3 , 2 n = 1000 k + 111 a 2^n = 1000k + 111a must be a multiple of eight. Since 1000 is a multiple of eight, we need 111 a 111a also to be a multiple of eight. This is possible if a = 8 a = 8 . (The case a = 0 a = 0 is excluded because 1000 k 1000k is divisible by 5 and therefore is not a power of 2.)

Arjen Vreugdenhil - 4 years ago

Can you explain to me what the significance of 1111 is? why 1111?

Jade W. - 4 years ago

Log in to reply

The last four digit can be either 0000, 1111, 2222, ... , or 9999. And they are ALL multiples of 1111.

Pi Han Goh - 4 years ago

What's about logarithmic powers???

Yash Yadav - 4 years ago

Log in to reply

The letter n n usually refers to an integer, so we are only looking for integer exponents. But you are right, they should have made it clear that n n is an integer.

Tarmo Taipale - 4 years ago

Log in to reply

Does there exist a power of 2...

This implies that we're only looking for the positive integer powers of 2.

Pi Han Goh - 4 years ago

Log in to reply

@Pi Han Goh That's right, but some who don't know the exact meanings of terms may misunderstand the question.

Tarmo Taipale - 4 years ago

Log in to reply

@Tarmo Taipale How do you propose to improve this question?

Pi Han Goh - 4 years ago

Log in to reply

@Pi Han Goh I added a clarification note to the problem.

Arjen Vreugdenhil - 4 years ago

Log in to reply

@Arjen Vreugdenhil Now it looks good and misunderstandings should no more happen (if we don't take those cases into account when someone doesn't read the question properly).

Tarmo Taipale - 4 years ago

If 2^log....4444 then it is equal to.... 4444

Yash Yadav - 4 years ago

In order for 2^n to end in four identical digits, the previous power, 2^(n-1), would need to be half that. Odd numbers (1111, 3333, 5555, 7777, 9999) can't be divided evenly in the first place and even numbers will eventually end in 1 which is an odd number (8->4->2->1->fail).

Joni-Pekka Luomala - 3 years, 6 months ago

Log in to reply

This is my favourite answer

Sean Nam - 3 years, 5 months ago

The question is vague, since it does not specify how 2^n should be expressed. 2^4 = 16 decimal = 10000 binary since 0 is a digit, the answer is YES

Thomas Donnelly - 4 years ago

Log in to reply

Are you saying we need to clarify what base representation is used?

Pi Han Goh - 4 years ago
Timothy Ong
Jun 4, 2017

A power of 2 can only end in the digits 2 , 4 , 6 , 8 2,4,6,8 .

We note that the only instance where a power of 2 has the last 2 digits the same are with 44 44 and 88 88 which occur at 2 18 2^{18} and 2 19 2^{19} . This can easily be checked by listing out powers of 2 until 2 20 2^{20} .

Using logical reasoning, this means that the number at hand must end with 4444 4444 or 8888 8888 . However if the number ends with 4444 4444 , the previous power of 2 must be 2222 2222 or 7222 7222 m o d mod 10000 10000 . We know this is not possible as no power of 2 can end with 22 22 .

The same logic applies for a power of 2 ending in 8888 8888 .

How do you know if there is no power of two beyond 2^20 which ends with 22?

Log in to reply

By divisibliity rule of 4.

Yes, I agree that this solution skips through a lot of important steps.

Pi Han Goh - 4 years ago

Log in to reply

Oh, I just realized. Thanks!

Much easier: 2222, 4444, 6666 and 8888 are not divisible by 16, then none of them is a power of 2.

Giovanni Cozzolongo - 4 years ago

You have neglected powers less than 1

Donald Zacherl - 4 years ago

Log in to reply

No, the powers of positive integer "n" are n, n^2, n^3, n^4, ... (and possibly even n^0), but that doesn't include negative integer powers)

Pi Han Goh - 4 years ago

You wrote "The same logic applies for a power of 2 ending in 8888."

This is wrong. If the number ends with 8888, the previous power of 2 must be 4444 or 9444 mod 10000. You have already ruled out 4444, but not 9444.

Thomas Hayes - 4 years ago
Shourya Pandey
May 29, 2017

Suppose such a number exists, say N = 1 0 4 k + a a a a N = 10^{4}k + aaaa , where a a a a = a × 1111 aaaa = a \times 1111 is the four digit number. Clearly , a 0 a \neq 0 , because then 5 N 5|N . Now 16 1 0 4 16|10^{4} , but v 2 ( a a a a ) = v 2 ( a ) < 4 v_{2}(aaaa)= v_{2}(a)<4 as a a is a single digit. Thus the maximum power of 2 2 in N N is 3 3 , which makes no sense, as N N is at least a four-digit power of 2 2 .

What does the symbol v 2 v_2 mean?

Log in to reply

v p n v_p{n} , for natural numbers n , p n,p , is the highest power of p p present in n n .

Shourya Pandey - 4 years ago

Relevant wiki: Divisibility Rules (2,3,5,7,11,13,17,19,...)

The powers of 2 can only end with 2, 4, 6 or 8. We notice that 2222, 4444, 6666 and 8888 are not divisible by 16, then none of them is a power of 2.

This is the cleanest solution. I'm pretty sure we can extend this to "The last n n digits of any powers of 2 can never be identical", right?

Pi Han Goh - 4 years ago

Log in to reply

It seems right, but let's find a proof.

Giovanni Cozzolongo - 3 years, 12 months ago

Log in to reply

How do we begin? I'm thinking induction, but I doubt it's actually feasible...

Pi Han Goh - 3 years, 12 months ago
Tom Capizzi
Jun 5, 2017

All powers of 2 are even numbers, since 2 itself is an even number. Since no power of 2 contains a factor of 5, no power of 2 can end in 0, or ...0000. In order to actually have at least 4 identical digits, n > 10. If 2^n ends in ...2222, then 2^(n-1) must end in ...6111 or ...1111. But no power of 2 is odd, so a =/= 2. If a = 4, it is possible that 2^(n-1) could end in ...7222 or ...2222. Since n>10, n-2 > 8, and 2^(n-2) must be an even number. But 2^(n-2) is odd, an impossibility. Similarly, if a = 8, 2^n = ...8888. 2^(n-1) must equal ...9444 or ...4444. Then 2^(n-2) becomes ...4722 or ...2222. Last, 2^(n-3) is ...2361 or ...1111. Since n-3 > 7, and 2^(n-3) must be even, this is also impossible. Final case, a = 6. Then 2^n = ...6666, and 2^(n-1) can either be ...8333 or ...3333. This, too, is impossible. Therefore, the assumption that some a exists must be false.

If a = 4, it is possible that 2^(n-1) could end in ...7222 or ...2222

I don't think you explained why the answer is "no", especially for this line. Can you elaborate on this?

Pi Han Goh - 4 years ago
Chun Huan Yau
Jun 8, 2017

Reason this in steps. a can't be 2 or 6 because a number that ends in 22 or 66 is not a multiple of 4, whereas a number with at least 4 digits and an integer solution for n is. Neither can it be 0 because at no point is there a multiplication by a multiple of 5. We then move on to 4 and 8. However, since 2^n is a multiple of 16 if it has at least 4 digits, it can't end with 4444 or 8888 as those are not multiples of 16.

Or you can do it with just the divisibility rules of 16 like what @Giovanni Cozzolongo did in his solution above!

Pi Han Goh - 4 years ago
Daniel Smith
Jun 11, 2017

If xnnnn (where x is a string of unknown digits, and n is one digit) is a power of 2 it can be divided by 2 a lot of times. Clearly n must be even. If n is 2 or 6 after dividing by 2 once we have x111 or x333 and are bust, if x is 4 then we are bust after dividing twice when we are on x11, and if x is 8 then after dividing by 2 three times we are on x1. So x must be zero. However if the number ends in zero it is a multiple of ten and cannot be a power of 2. Therefore there is no possible n.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...