This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A229133 #14 Jul 14 2021 08:46:36 %S A229133 1,2,4,5,6,8,9,13,15,17,25,32,39,49,52,54,56,63,64,80,87,89,90,95,98, %T A229133 100,104,111,128,135,144,148,152,153,159,176,183,189,200,207,224,225, %U A229133 230,231,233,248,255,272,279,285,288,296,303,305,319,320,327,329,344,351,368,369,370,374,375 %N A229133 Numbers k such that the distance between the k-th triangular number and the nearest square is a square. %C A229133 A229118(a(n)) is a perfect square. %e A229133 The nearest square to 6*7/2=21 is 25 and |21-25| = 2^2 so 6 is in the sequence. %e A229133 The nearest square to 7*8/2=28 is 25 and |28-25| = 3 so 7 is not in the sequence. %t A229133 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 *) %Y A229133 Cf. A000217, A229118. %K A229133 nonn %O A229133 1,2 %A A229133 _Ralf Stephan_, Sep 15 2013