Prove $24\mid5^{2n}+12n^2-36n-1$ using induction
What I thought:
Inductive hipothesis: $$ 5^{2n}+12n^2-36n-1=24k $$
Inductive step: $$ 5^{2(n+1)}+12(n+1)^2-36(n+1)-1=24q $$ $k,q \in \mathbb{Z}$ Then I tried doing all sorts of factoring but couldn't get quite there, what strategies should I use in these sort of problems?
E: $5^{2(n+1)}\neq5^{2n+1}...$
Hint:
$$5^{2(n+1)}+12(n+1)^2-36(n+1)-1=$$$$=\underbrace{(24\cdot 5^{2n}+24n+12-36)}_{\text{trivially divisible by }24}+\underbrace{(5^{2n}+12n^2-36n-1)}_{\text{inductive hypothesis}}$$
Alternatively, $$5^{2n}+12n^2-36n-1=(25^n-1^n)+12(n^2-3n)$$
Here $25^n-1^n=(25-1)(25^{n-1}+25^{n-2}+\cdots+25+1)$ and $n^2-3n$ is even.