OFFSET
1,2
COMMENTS
Apparently this is a permutation of positive numbers. Out of the first 10000 terms the missing numbers are:
8974, 9298, 9342, 9380, 9386, 9425, 9429, 9454, 9495, 9497, 9525,...,
while the maximal term is a(9919)=10802.
Corresponding squares:
4, 9, 9, 1, 16, 16, 1, 16, 9, 4, 16, 16, 16, 25, 16, 25, 36, 49, 36, 1, 25, 64, 64, 1, ...
EXAMPLE
-1+2+3=4, -2+3+8=9, -3+8+4=9.
MATHEMATICA
s={1, 2}; Do[a = s[[-1]] - s[[-2]]; k = 1; While[(b=k^2-a)<=0 || MemberQ[s, b], k++]; AppendTo[s, k^2 - a], {100}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Aug 06 2016
STATUS
approved