I came across with the following question:
is the following correct: $$34 | (39^{16}-1)$$
After checking the calculator I've concluded it's true, but I was wondering if there is any other way doing it using some basic number theory skills.
I came across with the following question:
is the following correct: $$34 | (39^{16}-1)$$
After checking the calculator I've concluded it's true, but I was wondering if there is any other way doing it using some basic number theory skills.
Note that $34=2\cdot 17$ and $2\mid (39^{16}-1)$. Next we need to show $17\mid (39^{16}-1)$. Fermat's little theorem is a shortcut. Or without applying Fermat's little theorem, we can do a direct computation, which gives
$$39^{16}-1\equiv5^{16}-1=25^8-1\equiv8^8-1\equiv(-4)^4-1\equiv(-1)^2-1=0\pmod {17}$$