Question
Question: 2^(23^23) divided by 7 will give what remainder using binomial theorem...
2^(23^23) divided by 7 will give what remainder using binomial theorem
4
Solution
To find the remainder of 22323 when divided by 7, we use modular arithmetic and the binomial theorem.
-
Determine the cycle of powers of 2 modulo 7: We examine the first few powers of 2 modulo 7: 21≡2(mod7) 22≡4(mod7) 23≡8≡1(mod7) The powers of 2 modulo 7 repeat with a cycle of length 3. This means 2k(mod7) depends on the value of k(mod3).
-
Calculate the exponent modulo the cycle length (3) using the binomial theorem: The exponent is E=2323. We need to find E(mod3). We can express the base of the exponent, 23, as 23=3×7+2. Using the binomial theorem for (a+b)n=∑i=0n(in)an−ibi, let a=3×7, b=2, and n=23. E=(3×7+2)23=∑i=023(i23)(3×7)23−i2i. When we consider this expression modulo 3, all terms where (3×7) is raised to a power of 1 or greater will be divisible by 3. The only term that might not be divisible by 3 is the one where the power of (3×7) is 0, which occurs when i=23. So, E≡(2323)(3×7)23−23223(mod3). E≡1⋅(3×7)0⋅223(mod3). E≡1⋅1⋅223(mod3). E≡223(mod3). Now, we evaluate 223(mod3). Since 2≡−1(mod3): E≡(−1)23(mod3). Since 23 is an odd exponent, (−1)23=−1. Therefore, E≡−1≡2(mod3). This means 2323≡2(mod3).
-
Calculate the final remainder: We found that the exponent 2323 has a remainder of 2 when divided by 3. So we can write 2323=3m+2 for some integer m. Substitute this back into the original expression: 22323=23m+2. Now, we find the remainder modulo 7: 23m+2=(23)m⋅22. Using the cycle we found in step 1 (23≡1(mod7)): (23)m⋅22≡1m⋅22(mod7). 1m⋅22≡1⋅4(mod7). 1⋅4≡4(mod7).
The remainder is 4.