1

If the last digit of $9^{9^9}$ is $z$ then find the last digit of $2^{z^{100}}$. My try:- As unit digit of $9^{\text{odd}}$ is $9$, then $z=9$. Then we are asked to find the last digit of $2^{9^{100}}$. I'm unable to find it. Please help me.

Zain Patel
  • 16,802
sai saandeep
  • 1,145

3 Answers3

4

Note that the units digit of $2^n$ goes through a cycle $2,4,8,6$, so you just need $n \bmod 4$ to figure out the units digit.

Ross Millikan
  • 374,822
1

$9 \equiv 1 \pmod{4}$ so for any $k$, $9^k \equiv 1 \pmod{4}$.

Also, $2^{4s+1}$ ends in a $2$.

So the answer is the last digit of $$2^{9^{100}}$$ is $2$.

Mark Fischler
  • 41,743
  • At this level, you should probably say more about why $, 2^{4N+1}!\equiv 2\pmod{10}\ $ for all $,N,\ $ since that is the crux of the matter. – Bill Dubuque Jul 07 '16 at 19:21
1

Another approach:

$$\text{Euler's formula: }\quad a^{\phi(n)}\equiv 1 \pmod{n} \text{ when} \gcd(a,n)=1$$

$$\phi(10)=\phi(2)\phi(5)=4$$

$$a^4\equiv 1 \pmod {10}$$

Therefore:

$$\color{green}{9^{100}}\equiv (9^{25})^4\equiv \color{red}1\pmod{10}$$

$$2^{\color{green}{9^{100}}}\equiv 2^\color{red}1\equiv 2\pmod {10}$$

3SAT
  • 7,512