Prove that if a $\in \mathbb{Z}$ then $a^{3} \equiv a(mod 3)$
So, the ways I have learned (or am learning, rather) to do proofs is using direct, contrapositive and contradiction.
So, I started it using direct, and got this:
$n|(a^{3}-a)$
Then there exists an integer k such that:
$nk = a^{3} - a$
$nk = a(a^{2} - 1)$
$nk = a(a+1)(a-1)$
so a must be -1, 0 or 1.
And there is where I'm stuck. I don't know where to go next and I'm not sure if it would be easier to use another method, maybe contradiction? Any help is appreciated! Thanks.
Try factoring $a^3−a$. What do you notice about the relationship of the factors to each other? How many are there? What can you then conclude?