I have the restriction $8n^2-8n+1 = m^2$ and I want to find the recurrence relationship of all integers n that satisfy this equation. I have figured out a recurrence relationship of $A_n$ = $6A_{n-1}$ - $A_{n-2}$ + 2, but I don't know how to prove that this is correct.
Can anyone explain it to me? Thanks a lot!