OFFSET
0,3
COMMENTS
Each element of a partition with maximal multiplicity is a mode of this partition.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2000
EXAMPLE
a(5) = 9 = 1 + 2 + 2 + 1 + 1 + 1 + 1: 5, 32, 41, 221, 311, 2111, 11111.
MAPLE
b:= proc(n, i, m, t) option remember; `if`(n=0, t, `if`(i<1, 0, add(
b(n-i*j, i-1, max(j, m), `if`(j>m, 1, `if`(j=m, t+1, t))), j=0..n/i)))
end:
a:= n-> b(n$2, 0$2):
seq(a(n), n=0..46);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 05 2024
STATUS
approved