If $a_0=a_1=5$ and $a_n=\frac{a_{n-1}+a_{n+1}}{98}$ for $n>0$, write some code, using a for-loop to show that $\frac{a_n+1}{6}$ is a perfect square. (From Andreescu, p.63 #6).← Back to challenges | Lessons

Run Share Lua reference

Here is a share link to your code:

Close