OFFSET
1,1
COMMENTS
Triangular numbers which are the arithmetic mean of two other triangular numbers. - R. J. Mathar, Oct 01 2017
FORMULA
a(n) = A292309(n)/3.
EXAMPLE
MAPLE
isA292310 := proc(n)
local ilow ;
if isA000217(n) then
for ilow from 0 do
tilow := A000217(ilow) ;
if tilow >= n then
return false ;
elif isA000217(2*n-tilow) then
return true ;
end if;
end do:
else
false;
end if;
end proc:
for n from 1 to 5000 do
if isA292310(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Oct 01 2017
MATHEMATICA
Module[{t = 3, k = 2, i, e, v}, Reap[While[t <= 6000, i = k; e = 0; v = t + i; While[i > 0 && e == 0, If[IntegerQ@Sqrt[8v + 1], e = 1; Sow[t]]; i--; v += i]; k++; t += k]][[2, 1]]] (* Jean-François Alcover, Jun 25 2023, after first PARI code *)
PROG
(PARI) t=3; k=2; while(t<=6000, i=k; e=0; v=t+i; while(i>0&&e==0, if(issquare(8*v+1), e=1; print1(t, ", ")); i--; v+=i); k++; t+=k)
(PARI) upto(n) = {my(t = 0, i = 0, triangulars = List([0]), res = List); while(t <= n, i++; t+=i; listput(triangulars, t)); for(i=2, #triangulars, tr = triangulars[i]<<1; for(j = 1, i-1, if(issquare(8 * (tr - triangulars[j]) + 1), listput(res, triangulars[i]); next(2)))); res} \\ David A. Corneth, Oct 04 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Sep 14 2017
EXTENSIONS
Term 105 added by David A. Corneth, Oct 04 2017
STATUS
approved