login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A322637
Numbers that are sums of consecutive octagonal numbers (A000567).
6
0, 1, 8, 9, 21, 29, 30, 40, 61, 65, 69, 70, 96, 105, 126, 133, 134, 135, 161, 176, 201, 222, 225, 229, 230, 231, 280, 294, 309, 334, 341, 355, 363, 364, 401, 405, 408, 470, 481, 505, 510, 531, 534, 539, 540, 560, 621, 630, 645, 681, 695, 735, 736, 749, 756, 764, 765, 814, 833, 846
OFFSET
1,3
LINKS
Eric Weisstein's World of Mathematics, Octagonal Number
MATHEMATICA
terms = 60;
nmax = 17; kmax = 9; (* empirical *)
T = Table[n(3n-2), {n, 0, nmax}];
Union[T, Table[k MovingAverage[T, k], {k, 2, kmax}]//Flatten][[1 ;; terms]] (* Jean-François Alcover, Dec 26 2018 *)
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Dec 21 2018
STATUS
approved