6

What is the calculation way to find out the last $2$ digits of $7^{7^{7^7}}$? WolframAlpha shows $...43$.

Julien
  • 44,791
Jimmy_Jp
  • 123

3 Answers3

24

Let's check the pattern of the last two digits of powers of $7$. $$ 7^1\to07\\ 7^2\to49\\ 7^3\to43\\ 7^4\to01\\ 7^5\to07 $$ and it loops. Thus we need only find out what that exponent is modulo $4$. Can you proceed from here?

Ian Coley
  • 6,000
12

$7^2=49=50-1$

$\implies 7^4=(50-1)^2=50^2-2\cdot50\cdot1+1\equiv1\pmod {100}$

Alternatively, $100=4\cdot25, 7^2\equiv1\pmod 4$

and $7^2\equiv-1\pmod{25}\implies 7^4\equiv(-1)^2\pmod{25}\equiv1$

$\implies 7^{\text{lcm}(2,4)}\equiv1\pmod {4\cdot25}$ as $(25,4)=1\implies 7^4\equiv1\pmod {100}$

So, we need to determine $7^{7^7}\pmod 4$

As $7^7$ is odd, and $7\equiv-1\pmod4\implies 7^{7^7}\equiv-1\pmod4\equiv3$

$\implies 7^{7^7}=4n+3$ for some integer $n>0$

So, $7^{7^{7^7}}=7^{4n+3}\equiv (7^4)^n\cdot7^3\pmod{100}\equiv1^n\cdot343$

  • I am having trouble to understand the portion as highlighted in red: $7\equiv-1\pmod4\implies 7^{7^7}\equiv-1\pmod4\equiv \color{red}{3},,$ .

    Can you please explain how $3$ came into the picture ?

    – learner Nov 24 '13 at 13:10
  • @learner, As $7^{7^7}>0,$ the remainder will $\in [0,1,2,3]$. Now we have reached $-1\pmod 4\implies $ teh reminder is of the form $4a-1$ where $a$ is some integer. In we can set any $m$ such that $m\equiv-1\pmod 4$ please have a look into this : http://mathworld.wolfram.com/Congruence.html – lab bhattacharjee Nov 24 '13 at 13:15
  • thank you so much sir.It is crystal clear now.. – learner Nov 24 '13 at 13:21
0

Since

$$7^{2k+1} \equiv3\pmod {4}$$ $$ 7^{7^{7^7}}\equiv3\pmod {4}$$ and $7^{3} \equiv43\pmod {100}$ & the cycle has period $4$, then $7^{7^{7^7}}\equiv43\pmod {100}_\blacksquare$

Jimmy_Jp
  • 123
  • How do you get to the final conclusion? Maybe in the second line you meant $7^{7^7}$ instead of $7^{7^{7^7}}$? (You need to derive that the exponent is $\equiv 3 \mod 4$, that $7^3 \equiv 43$, and together with $7^4 \equiv 1$ that then implies the result.) – TMM May 13 '13 at 21:10