I was looking into a couple of exercises:
First exercise:
Prove that if $x \mid (x^2 + 1)$ the $x = 1$ or $x = -1$
My solution was that if $x \mid (x^2 + 1)$ this means that $x | x^2$ and $x | 1$. The only number that is a divisor of $1$ is 1/-1. Hence $x = 1$ or $x = -1$
Second exercise:
Prove that if $6 \mid (x^3 - x)$ for every integer $x$ (hint among $3$ consecutive integers, one must be a multiple of $3$
Now for the second exercise I started with the same approach i.e. that if $6 \mid (x^3 - x)$ then $6 \mid x^3$ and $6 \mid x$ and then I realized that the question is about to prove that it holds for all integers which is not obvious to me that it does. So I plugged in some value e.g. for $x = 7$ we have $7^3 - 7 = 343 - 7 = 336$ which is a multiple of $6$. Also for $x = 5$ we have $5^3 - 5 = 125 - 5 = 120$ again is multiple of $6$.
So the $6 \mid (x^3 - x)$ seems to hold but I notice that for $x = 7$ we indeed have $6 \mid (7^3 - 7)$ but it is not the case that $6 \mid 7$.
So I have two questions here:
a) Is it wrong to consider that if $x | (a + b)$ then $x | a$ and $x | b$? Or are there specific conditions that this formula holds? Does that mean that my solution to the first exercise is wrong?
b) how can I use the hint to solve the exercise? It is not clear to me