OFFSET
1,8
COMMENTS
The one-part partition n = n is included in the count.
For the relation to the octagonal numbers see also A334947.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{n>=1} n*x^(n*(3*n-2))/(1-x^n). (For proof, see A330889. - Omar E. Pol, Nov 22 2020)
Sum_{k=1..n} a(k) ~ 2 * n^(3/2) / 3^(3/2). - Vaclav Kotesovec, Oct 23 2024
EXAMPLE
For n = 24 there are three partitions of 24 into consecutive parts that differ by 6, including 24 as a valid partition. They are [24], [15, 9] and [14, 8, 2]. There are 1, 2 and 3 parts respectively, hence the total number of parts is 1 + 2 + 3 = 6, so a(24) = 6.
MATHEMATICA
nmax = 100;
CoefficientList[Sum[n x^(n(3n-2)-1)/(1-x^n), {n, 1, nmax}]+O[x]^nmax, x] (* Jean-François Alcover, Nov 30 2020 *)
Table[Sum[If[n > 3*k*(k-1), k, 0], {k, Divisors[n]}], {n, 1, 100}] (* Vaclav Kotesovec, Oct 22 2024 *)
PROG
(PARI) my(N=66, x='x+O('x^N)); Vec(sum(k=1, N, k*x^(k*(3*k-2))/(1-x^k))) \\ Seiichi Manyama, Dec 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, May 27 2020
STATUS
approved