Question
Question: remainder when 2^(32^32) is divided by 7...
remainder when 2^(32^32) is divided by 7
1
2
3
4
2
Solution
To find the remainder when 23232 is divided by 7, we use properties of modular arithmetic.
-
Analyze the base modulo the divisor:
We need to find the remainder of 2X(mod7), where X=3232.
Let's look at the powers of 2 modulo 7:
21≡2(mod7)
22≡4(mod7)
23≡8≡1(mod7)
The cycle length of powers of 2 modulo 7 is 3. This means that 2k(mod7) depends on k(mod3). Specifically, if k≡r(mod3), then 2k≡2r(mod7) (for r=0). If k≡0(mod3), then 2k≡23≡1(mod7). -
Evaluate the exponent modulo the cycle length:
The exponent is X=3232. We need to find X(mod3).
First, reduce the base of the exponent (32) modulo 3:
32=10×3+2, so 32≡2(mod3).
Alternatively, 32≡−1(mod3).
Now, substitute this into the exponent:
X=3232≡(−1)32(mod3).
Since 32 is an even number, (−1)32=1.
Therefore, X=3232≡1(mod3). -
Combine the results:
Since 3232≡1(mod3), we can write 3232 in the form 3k+1 for some non-negative integer k.
Now substitute this back into the original expression:
23232=23k+1.
We want to find 23k+1(mod7).
23k+1=23k⋅21=(23)k⋅2(mod7).
From step 1, we know that 23≡1(mod7).
So, (23)k⋅2≡1k⋅2(mod7).
1k⋅2≡1⋅2(mod7).
1⋅2≡2(mod7).
Thus, the remainder when 23232 is divided by 7 is 2.