Prove that for every integer $n$ , $n^3=n \text{ mod }6$
I was having no clue how to do this, then I thought of case-by-case analysis and obviously it worked. The problem is that there were six case and together they are long.
Is there any shorter method of proving this. Kindly provide some hints.