Zahada Level 10 Solution: Last 4 Digits of 2023^2024
Problem: Find the last 4 digits of 20232024.
Solution via Carmichael Function
- We need 20232024 mod 10000.
- Carmichael λ(10000) = lcm(λ(16), λ(625)) = lcm(4, 500) = 500.
- Since gcd(2023, 10000)=1, 2023500 ≡ 1 (mod 10000).
- 2024 mod 500 = 24 (500 × 4 = 2000).
- Thus 20232024 ≡ 202324 (mod 10000).
Repeated Squaring (mod 10000)
- 20232 = 4,092,529 ≡ 2529
- 20234 ≡ 25292 = 6,395,841 ≡ 5841
- 20238 ≡ 58412 = 34,117,281 ≡ 7281
- 202316 ≡ 72812 = 53,012,961 ≡ 2961
- 202324 = 202316 × 20238 ≡ 2961 × 7281 = 21,559,041 ≡ 9041
Answer: 9041
The previously provided solution (7083) is incorrect.