I want to show that for all positive integer values of $n$, the number $5^n-8n^2+4n-1$ is divisible by $64$. Of course, I can easily do it by induction, but are there any number theoretic ways I can utilise to prove the divisibility?
Thanks in advance for any help.
It seems to me that the simplest way is to use the binomial expansion $$ \begin{aligned} 5^n&=(4+1)^n=1+\binom n 1 4+\binom n2 4^2+\text{terms divisible by $4^3$}\\ &\equiv 1+4n+8n(n-1)\pmod{64}\\ &=1-4n+8n^2. \end{aligned} $$