OFFSET
1,1
COMMENTS
Subsequence of A028896.
FORMULA
a(n) = 3*A292316(n).
EXAMPLE
126 = 3*4 + 6*7 + 8*9 = 12 + 42 + 72, with 72 - 42 = 42 - 12 = 30;
468 = 8*9 + 12*13 + 15*16 = 72 + 156 + 240, with 240 - 156 = 156 - 72 = 84.
MATHEMATICA
o[n_] := n(n+1); s[x_] := Reduce[ x+k == o[y] && x-k == o[z] && k>0 && z>0, {z, y, k}, Integers]; 3 Select[o@ Range@ 93, s[#] =!= False &] (* Giovanni Resta, Sep 18 2017 *)
PROG
(PARI) t=2; k=2; while(t<=10^4, i=k; e=0; v=t+i; while(i>2&&e==0, if(issquare(4*v+1), m=3*t; e=1; print1(m, ", ")); i+=-2; v+=i); k+=2; t+=k)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Sep 14 2017
STATUS
approved