Find the last two digits of 7^(777^7).

Answer: 43

Step-by-step solution

Step 1: Understand the Problem

We need to find the last two digits of 7777^{7^7}. This is equivalent to finding the value of 7777^{7^7} modulo 100. To do this, we will use Euler's totient theorem.

Step 2: Calculate Euler's Totient Function for 100

Euler's totient function, ϕ(n)\phi(n), counts the number of positive integers up to a given integer nn that are relatively prime to nn. For n=100n=100, we find its prime factorization 100=22⋅52100 = 2^2 \cdot 5^2. Using the formula ϕ(n)=n∏p∣n(1−1/p)\phi(n) = n \prod_{p|n} (1 - 1/p), we calculate ϕ(100)\phi(100).

Step 3: Simplify the Exponent Modulo ϕ(100)\phi(100)

According to Euler's totient theorem, if aa and nn are coprime, then aϕ(n)≡1(modn)a^{\phi(n)} \equiv 1 \pmod{n}. In our case, 77 and 100100 are coprime. So, 777≡7(77(modϕ(100)))(mod100)7^{7^7} \equiv 7^{(7^7 \pmod{\phi(100)})} \pmod{100}. We need to calculate the exponent 777^7 modulo ϕ(100)=40\phi(100) = 40.

Step 4: Calculate 77(mod40)7^7 \pmod{40}

We calculate the powers of 77 modulo 4040 until we find a pattern or reach 777^7. We find that 74≡1(mod40)7^4 \equiv 1 \pmod{40}. This simplifies the calculation for 777^7.

Step 5: Substitute and Calculate Final Result

Now we substitute the result from the previous step back into the original expression. We need to calculate 723(mod100)7^{23} \pmod{100}. We can do this by breaking down the exponent and using modular arithmetic.

Step 6: Calculate 723(mod100)7^{23} \pmod{100}

We calculate powers of 77 modulo 100100. We find that 74≡1(mod100)7^4 \equiv 1 \pmod{100}. This is a very useful property. We can then write 7237^{23} as (74)5⋅73(7^4)^5 \cdot 7^3 and substitute the values.

More from this chapter

All Power Play solutions →

Solve your own maths question free →