OFFSET
1,2
EXAMPLE
10 is a term because 10 = 1 + 2 + 3 + 4 = 4 + 6.
MATHEMATICA
Join[{0}, Select[Accumulate[Select[Range[10^6], CompositeQ]], OddQ[Sqrt[8#+1]]&]] (* The program generates the first 14 terms of the sequence. *) (* Harvey P. Dale, Apr 20 2024 *)
PROG
(PARI) lista(nn) = {my(s=0); forcomposite(n=0, nn, if(ispolygonal(s, 3), print1(s, ", ")); s += n; ); } \\ after Michel Marcus at A053767
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Feb 15 2018
STATUS
approved