A319184 Numbers that are sums of consecutive pentagonal numbers.
0, 1, 5, 6, 12, 17, 18, 22, 34, 35, 39, 40, 51, 57, 69, 70, 74, 75, 86, 92, 108, 117, 120, 121, 125, 126, 145, 156, 162, 176, 178, 190, 195, 196, 209, 210, 213, 247, 248, 262, 270, 279, 282, 287, 288, 321, 330, 354, 365, 376, 386, 387, 399, 404, 405, 424, 425, 438, 457, 475
Offset: 1
Keywords
Links
- Eric Weisstein's World of Mathematics, Pentagonal Number
Programs
-
Mathematica
anmax = 1000; nmax = Floor[Sqrt[2*anmax/3]] + 1; Select[Union[Flatten[Table[Sum[k*(3*k-1)/2, {k, i, j}], {i, 0, nmax}, {j, i, nmax}]]], # <= anmax &] (* Vaclav Kotesovec, Dec 21 2018 *) Module[{nn=20,pn},pn=PolygonalNumber[5,Range[0,nn]];Take[Union[Flatten[Table[Total/@Partition[pn,d,1],{d,nn}]]],60]] (* Harvey P. Dale, Jun 22 2025 *)