Coding challenge

Write some code to show that for $n$ being an integer, if $2\sqrt{28n^2+1}+2$ is an integer, then $n$ is a perfect square. (From Andreescu p. 71, #3.)

Type your code here:


Lua reference

See your results here: