2

Find a positive integer x such that the last three digits of $7^{7^x} $ are 007 (do not use trial and error) i mean clearly when $x=1$ the number is divisible by 7 i believe that every $x\in \mathbb{N}$ is divisible by 7 as mod 7 it always 0 but ending by 007 and being divisible by 7 are different things.

Faust
  • 5,669

1 Answers1

4

A number $N$ ends with $007$ iff $N \equiv 7 \bmod 1000$.

We have $7^n \equiv 7 \bmod 1000$ iff $7^{n-1} \equiv 1 \bmod 1000$.

Now the order of $7 \bmod 1000$ is $20$. Therefore, $7^n \equiv 7 \bmod 1000$ iff $20$ divides $n-1$.

For $n=7^x$, we want to know when $7^x \equiv 1 \bmod 20$.

Now the order of $7 \bmod 20$ is $4$. Therefore, $7^x \equiv 1 \bmod 20$ iff $4$ divides $x$.

lhf
  • 216,483