I am trying to understand the following proof:
Show that the difference of two consecutive cubes is never divisible by 5.
For any integer $n$, we have $(n + 1)^3 − n^3= 3n(n + 1) + 1$, and
it is easily seen that $n(n + 1)$ is congruent to $0, 1,$ or $2$ modulo $5$
so that $(n + 1)^3 − n^3$ can only be congruent to $1, 2,$ or $4$ modulo $5$.
How did the author of this proof arrive at the highlighted part? I am having trouble justifying it and determining why it is true.
Thanks!
There is just a couple of possibilities to check.