What are the last two digits of
( 2 2 0 + 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) ( 2 2 3 + 1 ) … ( 2 2 1 0 2 4 + 1 )
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.
Nicely done!
wow enlightening. and to think I just took mod 4 and 125, with the 125 one using euler's totient theorem. ugly.
thank you for sharing!
Aw, this is what I did. Unfortunately, I noticed a major LaTeXing typo, but I accidentally clicked continue, so I cannot publish the solution. But nice job!!!
First, let P be the product. Multiply P by ( 2 2 0 − 1 ) = 1 , and using the difference of two squares, we get
P = ( 2 2 0 − 1 ) ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 1 0 2 4 + 1 )
= ( 2 2 1 − 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) . . . ( 2 2 1 0 2 4 + 1 )
...
( 2 2 1 0 2 4 − 1 ) ( 2 2 1 0 2 4 + 1 )
= 2 2 1 0 2 5 − 1 .
Next, we proceed by determining the last two digits of P .
First, note that 2 4 0 ≡ ( 2 1 0 ) 4 ≡ ( 2 4 ) 4 = ( 5 7 6 ) 2 ≡ ( 7 6 ) 2 ≡ 7 6 ( m o d 1 0 0 ) . Also, by mathematical induction, we can easily prove that 7 6 k ≡ 7 6 ( m o d 1 0 0 ) . Now, we determine 2 1 0 2 5 ( m o d 4 0 ) .
2 1 0 2 5 ≡ 0 ( m o d 8 ) and 2 1 0 2 2 ≡ 4 ( m o d 5 ) . So, 2 1 0 2 5 ≡ 3 2 ( m o d 4 0 ) .
Thus, 2 2 1 0 2 5 ≡ 2 3 2 ⋅ 7 6 ≡ ( 2 1 6 ) 2 ⋅ 7 6 ≡ ( 6 5 5 3 6 ) 2 ⋅ 7 6 ≡ 3 6 2 ⋅ 7 6 ≡ 9 6 ⋅ 7 6 ≡ 9 6 ( m o d 1 0 0 ) .
Thus, the last two digits of P is 9 6 − 1 = 9 5 .
Nicely done!
Another way to do the last two digits is: 2 2 2 2 2 3 2 2 4 2 2 5 2 2 6 ≡ 1 6 m o d 1 0 0 ≡ 1 6 ∗ 1 6 = 5 6 m o d 1 0 0 ≡ 5 6 ∗ 5 6 = 3 6 m o d 1 0 0 ≡ 3 6 ∗ 3 6 = 9 6 m o d 1 0 0 ≡ 9 6 ∗ 9 6 = 1 6 m o d 1 0 0 because each line is the square of the previous one; so this tells us 2 2 4 k + 1 ≡ 9 6 .
Log in to reply
Indeed, this repeated squaring procedure is very effective here. (It is also good for many other purposes).
Log in to reply
Well , I think think problem can also be done by digit cyclicity . Can't it ?
You can also solve it this way:
First, notice that the sum equals \sum_{n = 0}^{2^{1025} - 1} 2^n = 2^2^{1025} - 1 (not sure why latex isn't working for this expression) If this is hard to understand, think of it as choosing one term from each binomial. You can have 2 0 with picking all 1's, 2 1 with picking all 1's except 2 1 , 2 2 the same way, 2 3 by picking 2 1 and 2 2 , etc. Since this is essentially a binary number system, you can make any integer (up to \(2^{2^{1025} - 1}
The last two digits of \(2^n\) are periodic with period 20. Since 20 is divisible by 100, we only need to find the last two digits of 2 1 0 2 5 . This is 2 5 ≡ 3 2 ( m o d 1 0 0 ) . Thus 2 3 2 ≡ 2 1 2 ≡ 4 0 9 6 ≡ 9 6 ( m o d 1 0 0 ) . Thus, 2 2 1 0 2 5 − 1 ≡ 9 5 ( m o d 1 0 0 )
I'm posting this here since I accidentally got the question wrong because I made two stupid computation errors and had a third lapse in judgement.
Log in to reply
For the latex to work the last bit needs to be 2^{2^{1025}} - 1
The product, when expanded, contains two raised to all 1024-digit binary numbers. In other words the product can be written as the sum i = 0 ∑ 2 1 0 2 5 − 1 2 i or 2 2 1 0 2 5 − 1 = 4 2 1 0 2 4 − 1 . We need this huge number modulo 100. Since 4^10=4 mod 100, this is 4^6-1 mod 100 = 95.
A very nice and original solution! The product, of course, is not infinite, as noted in the author's comment.
Not an infinite product, obviously. Is there any way to edit posts?
Log in to reply
You can edit posts but not solutions (this is to stop people making their own solutions look better after they see other solutions, thereby getting extra votes)
We shall use the standard notation for fermat numbers F n = 2 2 n + 1 . Then F n − 2 = ( F n − 1 − 1 ) 2 − 1 F n − 2 = F n − 1 ( F n − 1 − 2 ) F n − 2 = F n − 1 F n − 2 ( F n − 2 − 2 ) ⋮ Hence by mathematical induction F n − 2 = i = 0 ∏ n − 1 F i Thus i = 0 ∏ 1 0 2 4 F i = F 1 0 2 5 − 2 = 2 2 1 0 2 5 − 1 Now obviously 2 2 1 0 2 5 ≡ 0 ( m o d 4 ) Also ϕ ( 2 5 ) = 2 0 , hence 2 2 1 0 2 5 ≡ 2 2 1 0 2 5 m o d 2 0 ( m o d 2 5 ) Now it's easy to prove by induction that 2 4 a + 1 ≡ 1 2 ( m o d 2 0 ) for a ∈ N . Therefore 2 1 0 2 5 ≡ 1 2 ( m o d 2 0 ) and consequently 2 2 1 0 2 5 ≡ 2 1 2 ≡ 2 1 ( m o d 2 5 ) This means that there exists x ∈ N 2 2 1 0 2 5 = 2 5 x + 2 1 , remember that 2 2 1 0 2 5 ≡ 0 ( m o d 4 ) , so 2 5 x + 2 1 ≡ 0 ( m o d 4 ) ⇔ x ≡ 3 ( m o d 4 ) Hence there exists y ∈ N such that x = 4 y + 3 , hence 2 2 1 0 2 5 = 2 5 ( 4 y + 3 ) + 2 1 = 1 0 0 y + 9 6 That is to say 2 2 1 0 2 5 − 1 ≡ 9 5 ( m o d 1 0 0 )
Nicely done!
Lemma : ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 n + 1 ) = 2 2 n + 1 − 1 for all n ≥ 0 .
Proof :
We would prove this by induction.
Base case: n = 0 If n = 0 , we have ( 2 2 0 + 1 ) = 3 = 2 2 − 1 = 2 2 1 − 1 .
Suppose we have ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 n + 1 ) = 2 2 n + 1 − 1 .
Then
( ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 n + 1 ) ) ( 2 2 n + 1 + 1 )
= ( 2 2 n + 1 − 1 ) ( 2 2 n + 1 + 1 )
= 2 2 n + 1 ⋅ 2 − 1 = 2 2 n + 2 − 1 = 2 2 ( n + 1 ) + 1 − 1 .
Hence our lemma is proved.
Thus the original expression is equivalent to 2 2 1 0 2 5 − 1 .
Now we would find the remainder when 2 2 1 0 2 5 is divided by 2 5 and when it is divided by 4 .
We would first find the remainder when 2 1 0 2 5 is divided by 4 0 . Note that 2 2 = 4 ≅ 4 m o d 2 0 , and 2 4 ≅ 1 6 m o d 2 0 . Now suppose that 2 4 k + 2 ≅ 4 m o d 2 0 . Then 2 4 k + 6 = 2 4 ( k + 1 ) + 2 ≅ ( 4 ) ( 1 6 ) ≅ 4 m o d 2 0 . By mathematical induction, 2 4 k + 2 ≅ 4 m o d 2 0 . Hence 2 1 0 2 2 ≅ 4 m o d 2 0 , and 2 1 0 2 5 ≅ 3 2 m o d 2 0 ≅ 1 2 m o d 2 0 .
By Euler's Theorem, since ϕ ( 2 5 ) = 2 0 , 2 2 1 0 2 5 ≅ 2 1 2 ≅ 4 0 9 6 ≅ 2 1 m o d 2 5 .
2 2 1 0 2 5 is clearly divisible by 4 .
If a number is congruent to 2 1 m o d 2 5 and is divisible by 4 , then it is congruent to 9 6 m o d 1 0 0 . (We could check by trying 2 1 , 4 6 , 7 1 , and 9 6 .
Hence the last 2 digits of 2 2 1 0 2 5 is 9 6 , and the last 2 digits of 2 2 1 0 2 5 − 1 is 9 5 .
LaTeX tip: a \equiv 4 \mod 20 a ≡ 4 m o d 2 0
Log in to reply
You can also do \ p m o d { 2 0 } for ( m o d 2 0 )
Thanks, also a small typo, 2 1 2 should be 2 1 2 .
Let A is the expression, we have: A = ( 2 2 0 - 1 )A = 2 1 0 2 5 - 1.
The 2 k (k = 0, 1, 2,..) have remainder mod 25 is 2, 4, {16, 6, 11, 21}
1025 = 1 (mod 4}, so 2 1 0 2 5 = 21 (mod 25).
Moreover, 2 1 0 2 5 = 0 (mod 4)
So, 2 1 0 2 5 = 96 (mod 100)
96 is the answer
sorry, 95 = 96 -1 is the answer
temos q isso é igual a 2^(2^1025) - 1 q é congruente a 56^(2^1022) - 1 (mod 100), mas isso é igual a : 55(56^(2^1022-1)+...+1), chamemos (56^(2^1022-1)+...+1) de K, temos q K é congruente a 9 (mod 20), temos q 55K será congruente a 95 (mod 100) o q conclui nossa resposta
We can easily find out through smaller values that ∏ i = 1 x ( 2 2 x + 1 ) = ( 2 2 x + 1 − 1 ) . Since 2 1 0 2 5 ends with 32 and 2 3 2 ends with 96, ∏ i = 1 1 0 2 4 ( 2 2 x + 1 ) = ( 2 2 1 0 2 5 − 1 ) ends with 95.
This gives the right answer, but not a complete proof. Once the pattern is recognized, it still needs to be proven (for example, by induction).
Log in to reply
Yes, I'm aware of that. Sorry :P Wish I could delete it.
Notice that 2 2 0 + 1 = 3 = 2 2 − 1 , ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) = 1 5 = 2 4 − 1 , ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) = 2 5 5 = 2 8 − 1 . Hence, ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) . . . ( 2 2 N + 1 ) = 2 2 N + 1 − 1 . Thus, ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) . . . ( 2 2 1 0 2 4 + 1 ) = 2 2 1 0 2 5 − 1
Note that the last 2 digits of the 2 N series repeats for 20 values of N. That is, 2 0 = 0 1 , 2 1 = 0 2 , 2 2 = 0 4 , 2 3 = 0 8 , 2 4 = 1 6 . . . , 2 2 2 = 0 4 , 2 2 3 = 0 8 , 2 2 4 = 1 6 , . . . etc. In this case, we would note the case of 2 5 = 3 2 and 2 1 2 = ( 4 0 ) 9 6
Hence, 2 1 0 2 5 ( m o d 2 0 ) = 2 5 = 1 2 implies that 2 2 1 0 2 5 − 1 = 2 . . . 1 2 − 1 , and thus , 2 . . . 1 2 ( m o d 2 0 ) − 1 = 2 1 2 − 1 = 9 6 − 1 = 9 5 Thus, the answer is 95
Multiplying above and below by 2^(2^0) - 1 i.e. 1, we reduce the sum into 2^(2^1025) - 1.
Now, 2^1025 = 32mod100
2^(a large number with units and tens digits both zero + 32) = (2^10)^(a large number ending in zero) x 2^32.
The first term ends in 76 as given by number theory. Now, 2^8 = 56mod100 so 2^32 = 56^4mod100 = (50+6)^4mod100 = 4x50x6^3 + 6^4
Computation yields the final answer for 2^2^1025 as 96 (last two digits) and you subtract 1 from it so you get 95.
Note 2 2 0 + 1 = 2 2 1 − 1 , and a massive sequential difference of squares will develop. You then reach 2 2 1 0 2 5 − 1 .Note that 2 2 ≡ 2 6 ( m o d 2 0 ) and that 2 2 4 ≡ 2 2 2 2 ( m o d 1 0 0 ) , so 2 n is 4 -periodical ( m o d 2 0 ) and 2 0 -periodical ( m o d 1 0 0 ) .
Since 1 0 2 5 ≡ 5 ( m o d 4 ) (the first power is power is the non-periodical part), our answer is 2 2 1 0 2 5 − 1 ≡ 2 2 5 − 1 ≡ 2 1 2 − 1 ≡ 9 5 ( m o d 1 0 0 )
Sorry, I meant 2 2 ≡ 2 2 2 ( m o d 1 0 0 )
Problem Loading...
Note Loading...
Set Loading...
Let S = ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 1 0 2 4 + 1 ) , As ( 2 2 0 − 1 ) = 1 , S = ( 2 2 0 − 1 ) ( 2 2 0 + 1 ) ( 2 2 1 + 1 ) . . . ( 2 2 1 0 2 4 + 1 ) = ( 2 2 1 − 1 ) ( 2 2 1 + 1 ) ( 2 2 2 + 1 ) . . . ( 2 2 1 0 2 4 + 1 ) ... = ( 2 2 1 0 2 4 − 1 ) ( 2 2 1 0 2 4 + 1 ) = 2 2 1 0 2 5 − 1 . To evaluate 2 1 0 2 5 − 1 ,note that 2 2 2 ≡ 1 6 ( m o d 1 0 0 ) , 2 2 3 ≡ 1 6 ∗ 1 6 ≡ 5 6 ( m o d 1 0 0 ) , 2 2 4 ≡ 5 6 ∗ 5 6 ≡ 3 6 ( m o d 1 0 0 ) , 2 2 5 ≡ 3 6 ∗ 3 6 ≡ 9 6 ( m o d 1 0 0 ) , 2 2 6 ≡ 9 6 ∗ 9 6 ≡ 1 6 ( m o d 1 0 0 ) , This gives us 2 2 4 k + 1 ≡ 9 6 ( m o d 1 0 0 ) for postive integers k . Then 2 2 1 0 2 5 − 1 ≡ 2 2 4 ( 2 5 6 ) + 1 − 1 ≡ 9 6 − 1 ≡ 9 5 ( m o d 1 0 0 )