I have the following task:
exactly one of the two Numbers $n$ and $n^6+6$ is divisible by 7.
My first thought was to use induction but $n \in \mathbb{Z}$ so I have to find another way. Any Hints? Maybe showing that $n$ is congruent to $n^6+6$ mod 7?
I have the following task:
exactly one of the two Numbers $n$ and $n^6+6$ is divisible by 7.
My first thought was to use induction but $n \in \mathbb{Z}$ so I have to find another way. Any Hints? Maybe showing that $n$ is congruent to $n^6+6$ mod 7?
Solution without Fermat's Little Theorem, but a bit more arithmetic:
Any integer $n$ can be written as $7k+r$ with $k\in\mathbb{Z}$ and $r\in\mathbb{Z}_7$
If $r=0$ then $n$ is divisible by $7$, otherwise we will show that $n^6+6$ is divisible by $7$.
$(7k+r)^6+6=r^6+6\mod7$
We then have to check each $r\in\{1,2,3,4,5,6\}$