Prove that $n^4-n^2$ is divisible by $8$ if $n$ is an odd positive integer.
I'm supposed to use proof by induction, but I failed at it miserably. So far I have this:
$$(n^4) - (n^2) = (n^2)((n^2)-1) = n(n-1)n(n+1)$$
Let $n = 2k + 1$ because its always odd. Then
$$\begin{align} &(2k+1)(2k)(2k+1)(2k+2) \\\implies\quad &(2k+1)(2k)(2k+1)2(k+1) \\\implies\quad &(2k+1)2(k)(2k+1)2(k+1) \\\implies\quad &4(2k+1)(k)(2k+1)(k+1) \\\implies\quad &4((2k+1)^2)(k)(k+1) \\\implies\quad &4((2k+1)^2)((k^2)+k) \end{align}$$
Now $(2k+1)^2$ is odd and $k^2 + k$ is always even because
$$\begin{cases} \mathrm{odd}^2 + \mathrm{odd} = \mathrm{even} \\ \mathrm{even}^2 + \mathrm{even} = \mathrm{even} \end{cases}$$
So that means I can take out a $2$ and write $((k^2)+k) = 2X$.
$$\begin{align} &4(2X)((2k+1)^2) \\\implies\quad &8X((2k+1)^2) \end{align}$$
and because there is an $8$ I can say its always divisible by $8$, no matter what odd integer $k$ is? How can this be done using proof by induction?
To do a proof by induction you basically
Show it works for $n = 1$ (which it does because $8$ divides $0$
Assume it works for some $n=2k+1$ (i.e. some odd number)
Show that your assumption implies it works for $n=2k+3$. This is usually the tricky part. But all you really have to do is expand the polynomial, and then you'll basically get something that looks like $8y + (2k+1)^4-(2k+1)^2$ (where $y$ is just some expression of $x$) and then obviously that's divisible by $8$ since $8y$ is clearly divisible by $8$ and the second part $(2k+1)^4-(2k+1)$ is divisible by $8$ by assumption (i.e. step $2$). You should work out the expansion yourself though.