OFFSET
1,4
COMMENTS
The partitions in the definition are called non-complete gap-free (see the Grabner et al. reference).
a(n) = number of partitions of n where the largest part occurs at least twice and all other parts are distinct. Example: a(9) = 5 because we have 441, 333, 3321, 22221, and 111111111.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
P. J. Grabner, A. Knopfmacher, Analysis of some new partition statistics, Ramanujan J., 12, 2006, 439-454.
FORMULA
G.f.: g = sum((x^{2j}/(1-x^j))*product(1+x^i, i=1..j), j=1..infinity).
a(n) ~ 3^(1/4) * Pi * exp(Pi*sqrt(n/3)) / (24 * n^(5/4)). - Vaclav Kotesovec, May 24 2018
EXAMPLE
a(9) = 5 because there are these partitions of 9: 9, 54, 432, 333, and 3222.
MAPLE
g := sum(x^(2*j)*(product(1+x^i, i = 1 .. j-1))/(1-x^j), j = 1 .. 100): gser := series(g, x = 0, 80): seq(coeff(gser, x, n), n = 1 .. 70);
# second Maple program:
b:= proc(n, i) option remember; `if`(n=0, `if`(i=0, 0, 1),
`if`(i<1 or n<i, 0, add(b(n-i*j, i-1), j=1..n/i)))
end:
a:= n-> add(b(n, i), i=2..n):
seq(a(n), n=1..70); # Alois P. Heinz, Nov 29 2015
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, If[i == 0, 0, 1], If[i < 1 || n < i, 0, Sum[b[n - i*j, i - 1], {j, 1, n/i}]]]; a[n_] := Sum[b[n, i], {i, 2, n}]; Table[a[n], {n, 1, 70}] (* Jean-François Alcover, Dec 22 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Nov 17 2015
STATUS
approved