Show that if $a$ is an integer, then 3 divides $a^3 - a $
we can write, where $k$ is an integer;
$a^3 - a = 3k $
$a(a^2 - 1) = 3k $
Now if $a = k$ then
$a^2 -1 = 3$ and $a= \pm2 $ so $ a^3 - a = 24 = 3 \times 8$
If $ a $ is not equal to $k$;
then
$a(a^2 - 1) = a(a+1)(a-1) = 3k$
since $a(a+1)(a-1)$ is the product of 3 consecutive integers, the expression is divisible by 3.
Is this ok?, just a check. I'm not really all that good at number theory.
you have it, but all you need is your observation that: $$ a^3-a=(a-1)a(a+1) $$ since exactly one of any three consecutive integers is divisible by 3
addendum
PROOF (for Git Gud)
let $a$ be the smallest number for which $3$ does not divide $a(a+1)(a+2)$
clearly $a \gt 0$ since $3 | 0$
write $k=(a-1)a(a+1)$, so $k$ is divisible by $3$
since $3$ doesn't divide $a$ or $a+1$ we have $3|(a-1)$
but now $3$ also divides $(a-1)+3=a+2$, a contradiction.
Of course there are various properties of the integers which need to be demonstrated to fill out the details here, but i will leave these as an exercise.