I'm not sure how to prove that the following statement is true.
$\forall x \in \mathbb{Z}, 3|(x^3-x)$
$x(x-1)(x+1) = 3n $ where $n\in \mathbb{Z}$
I'm not sure how to prove that the following statement is true.
$\forall x \in \mathbb{Z}, 3|(x^3-x)$
$x(x-1)(x+1) = 3n $ where $n\in \mathbb{Z}$
On
$$x=3k+0\\x=3k+1\\x=3k+2$$ $$3|(x-1)x(x+1)$$ $$x=3k \to 3|(3k-1)(3k)(3k+1) \checkmark$$ $$x=3k+1 \to 3|(3k+1-1)(3k+1)(3k+1+1) \checkmark$$ $$x=3k+2 \to 3|(3k+2-1)(3k+2)(3k+2+1)\\3|(3k+2-1)(3k+2)(3(k+1)) \checkmark$$
On
Some great answers already, so I'm going to show you a more laborious way to get at the same result.
What are the cubes modulo 3? $$0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, \ldots$$ As you can see, this boils down to three cases.
By Fermat's Little Theorem, $$x^3\equiv x\pmod 3$$ since $3$ is prime. Hence, $$x^3-x\equiv 0\pmod 3\iff 3\mid x^3-x$$
Or, more in line with what you've started, we have $x^3-x=x(x-1)(x+1)$. Either $x,x-1$ or $x+1$ is divisible by $3$ for any $x\in\Bbb Z$. Indeed, suppose $x$ is not divisible by $3$, then $x+1$ or $x+2$ is. In the former case, we have $3\mid x+1$, and in the latter case, we have $3\mid x+2\iff 3\mid x-1$.