Coding challenge

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).

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: