Seperating $n^2-1$ into $(n+1)(n-1)$.
I have noticed that $n^3+1=(n+1)(n^2-n+1)$, so we have $\forall n\geq 2$, $(n+1)\mid(n^3+1)$.
We now need to show that $(n-1)\mid(n^2-n+1)$ iff $n=2$
This breaks down to showing that $(n-1)\not\mid(n^2-n+1)$ for $n\geq 3$
If $n$ is odd then $(n-1)$ will be even. $n^2$ will be odd, n will be odd and since odd minus an odd is even, $n^2-n$ will be even, so $n^2-n+1$ will be odd and an even cannot divide an odd, so statement does not hold for any odd value for $n$.
Assume $n$ is even, then $n=2k$ for $k\in\mathbb{N}$
We must now show $(2k-1)\not\mid((2k)^2-2k+1)\Leftrightarrow(2k-1)\not\mid(4k^2-2k+1),\forall k\in\mathbb{N},k\geq 2.$
This is the part I am stuck on, how should I proceed? Am I going down the right lines?
Thanks in advance for the help.
We have $$ 4k^2 - 2k + 1 = 2k(2k-1) + 1 $$ This cannot be a multiple of $2k-1$ for any $k \geq 2$.