OFFSET
1,6
COMMENTS
The one-part partition n = n is included in the count.
For the relation to hexagonal numbers see also A334462.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{n>=1} n*x^(n*(2*n-1))/(1-x^n). (For proof, see A330889. - N. J. A. Sloane, Nov 21 2020)
Sum_{k=1..n} a(k) ~ sqrt(2) * n^(3/2) / 3. - Vaclav Kotesovec, Oct 23 2024
EXAMPLE
For n = 28 there are three partitions of 28 into consecutive parts that differ by 4, including 28 as a valid partition. They are [28], [16, 12] and [13, 9, 5, 1]. The number of parts of these partitions are 1, 2, 4 respectively. The total number of parts is 1 + 2 + 4 = 7, so a(28) = 7.
MATHEMATICA
nmax = 100;
CoefficientList[Sum[n x^(n(2n-1)-1)/(1-x^n), {n, 1, nmax}]+O[x]^nmax, x] (* Jean-François Alcover, Nov 30 2020 *)
Table[Sum[If[n > 2*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*(2*k-1))/(1-x^k))) \\ Seiichi Manyama, Dec 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, May 05 2020
STATUS
approved