Find the last two digits of 3 to power of 2025
- User
Find the last two digits of 3 to power of 2025
- Assistant
Here’s a quick way to see it:
- We want 3^2025 mod 100.
- Since gcd(3,100)=1, Euler’s theorem gives 3^φ(100) ≡ 1 mod 100, and φ(100)=40.
- So 3^2025 ≡ 3^(2025 mod 40) mod 100.
- 2025÷40 = 50 remainder 25.
- ⇒ 3^2025 ≡ 3^25 mod 100.
- Compute 3^25 mod 100 by squaring:
- 3^5 = 243 ≡ 43
- 3^10 = 43^2 = 1849 ≡ 49
- 3^20 = 49^2 = 2401 ≡ 1
- 3^25 = 3^20·3^5 ≡ 1·43 = 43
Answer: 43 🎉
- User
How to compute the toutient function
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.