OFFSET
1,2
COMMENTS
A229118(a(n)) is a perfect square.
EXAMPLE
The nearest square to 6*7/2=21 is 25 and |21-25| = 2^2 so 6 is in the sequence.
The nearest square to 7*8/2=28 is 25 and |28-25| = 3 so 7 is not in the sequence.
MATHEMATICA
tnsQ[n_]:=Module[{tno=(n(n+1))/2, sr, a, b}, sr=Sqrt[tno]; a=tno-Floor[sr]^2; b=Ceiling[sr]^2-tno; IntegerQ[Sqrt[Min[{a, b}]]]]; Select[Range[400], tnsQ] (* Harvey P. Dale, Mar 26 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, Sep 15 2013
STATUS
approved