OFFSET
2,1
EXAMPLE
a(2) = 5 because 5-4 and 5+4 are both square,
a(3) = 10 because 10-6 and 10+6 are both square,
a(4) = 17 because 17-8 and 17+8 are both square,
a(5) = 26 because 26-10 and 26+10 are both square.
MATHEMATICA
s = {}; Do[x = a+1; While[!IntegerQ[Sqrt[a+x]] || !IntegerQ[Sqrt[x-a]], x++]; AppendTo[s, x], {a, 4, 130, 2}]; s
PROG
(PARI) a(n) = my(m=2*n+1); while (!issquare(m-2*n) || !issquare(m+2*n), m++); m; \\ Michel Marcus, Mar 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 27 2021
STATUS
approved