OFFSET
0,2
COMMENTS
The sequence is unbounded.
EXAMPLE
144 is a term as 144 + 25 ( the previous term ) = 169 is a square and also 144 + 1225 ( the next term ) = 1369 = 37^2.
MATHEMATICA
a[0] = 0; a[1] = 25; a[n_] := a[n] = (k = Sqrt[a[n - 1]] + 1; While[ !IntegerQ[ Sqrt[a[n - 1] + k^2]], k++ ]; k^2); Table[ a[n], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jun 20 2002
EXTENSIONS
Edited by Robert G. Wilson v, Jun 21 2002
STATUS
approved
