OFFSET
1,6
COMMENTS
Records occur at indices n = 1, 3, 6, 9, 12, 18, 24, 30, 36, 60, 90, 120, 180, 270, 360, 420, 540, 630, 840, 1080, ...
LINKS
Peter Kagey, Table of n, a(n) for n = 1..10000
Code Golf Stack Exchange, Uncentered Polygons
OEIS Wiki, Centered polygonal numbers
Eric Weisstein's World of Mathematics, Centered Polygonal Number
Wikipedia, Centered polygonal number
FORMULA
a(n) = Sum_{d|n, 3*d <= n} A001227(d).
EXAMPLE
PROG
(PARI) a(n) = sumdiv(n, d, if (3*d <= n, numdiv(d>>valuation(d, 2)))); \\ Michel Marcus, Nov 19 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Nov 18 2020
STATUS
approved