Does there exist a power of 2 whose last 4 digits are all identical?
Note
:
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.
As a trivial exception, add four zeros to any whole number.
Log in to reply
There are no powers of two that end in four zeroes, either.
Log in to reply
Why aren't there any such powers?
Log in to reply
@Agnishom Chattopadhyay – Any number ending in zero has 5 as a prime factor. Powers of two only have 2 as a prime power. Therefore, powers of two do not end in a zero, even less in four zeroes.
This solution doesn't tell why it's impossible for the number 1 0 0 0 0 k + 1 1 1 1 a to equal 2 n (with positive integer n ) when 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 1 0 0 0 0 k + 1 1 1 1 a with a = 0 is divisible by 1 0 0 0 0 which means it is divisible by 5 and can't be a power of 2 .
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.
However, the three last digits 888 is a repeating pattern. Howe would you use this argument to prove that result?
Log in to reply
The case of the last three digits is different.
For n ≥ 3 , 2 n = 1 0 0 0 k + 1 1 1 a must be a multiple of eight. Since 1000 is a multiple of eight, we need 1 1 1 a also to be a multiple of eight. This is possible if a = 8 . (The case a = 0 is excluded because 1 0 0 0 k is divisible by 5 and therefore is not a power of 2.)
Can you explain to me what the significance of 1111 is? why 1111?
Log in to reply
The last four digit can be either 0000, 1111, 2222, ... , or 9999. And they are ALL multiples of 1111.
What's about logarithmic powers???
Log in to reply
The letter 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 is an integer.
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.
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.
Log in to reply
@Tarmo Taipale – How do you propose to improve this question?
Log in to reply
@Pi Han Goh – I added a clarification note to the problem.
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).
If 2^log....4444 then it is equal to.... 4444
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).
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
Log in to reply
Are you saying we need to clarify what base representation is used?
A power of 2 can only end in the digits 2 , 4 , 6 , 8 .
We note that the only instance where a power of 2 has the last 2 digits the same are with 4 4 and 8 8 which occur at 2 1 8 and 2 1 9 . This can easily be checked by listing out powers of 2 until 2 2 0 .
Using logical reasoning, this means that the number at hand must end with 4 4 4 4 or 8 8 8 8 . However if the number ends with 4 4 4 4 , the previous power of 2 must be 2 2 2 2 or 7 2 2 2 m o d 1 0 0 0 0 . We know this is not possible as no power of 2 can end with 2 2 .
The same logic applies for a power of 2 ending in 8 8 8 8 .
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.
Much easier: 2222, 4444, 6666 and 8888 are not divisible by 16, then none of them is a power of 2.
You have neglected powers less than 1
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)
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.
Suppose such a number exists, say N = 1 0 4 k + a a a a , where a a a a = a × 1 1 1 1 is the four digit number. Clearly , a = 0 , because then 5 ∣ N . Now 1 6 ∣ 1 0 4 , but v 2 ( a a a a ) = v 2 ( a ) < 4 as a is a single digit. Thus the maximum power of 2 in N is 3 , which makes no sense, as N is at least a four-digit power of 2 .
What does the symbol v 2 mean?
Log in to reply
v p n , for natural numbers n , p , is the highest power of p present in n .
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 digits of any powers of 2 can never be identical", right?
Log in to reply
It seems right, but let's find a proof.
Log in to reply
How do we begin? I'm thinking induction, but I doubt it's actually feasible...
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?
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!
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.
Problem Loading...
Note Loading...
Set Loading...
For n ≥ 4 , 2 n is a multiple of 16. Also, 1 0 0 0 0 is a multiple of 16.
However, since 1 1 1 1 is odd, none of its multiples 1 1 1 1 a with a ≤ 9 is a multiple of 16. Therefore 1 0 0 0 0 k + 1 1 1 1 a is not a multiple of 16, and cannot be a power of two.