OFFSET
0,2
COMMENTS
Maximum number of submultisets among all integer partitions of n. - Gus Wiseman, Jun 30 2019
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
EXAMPLE
The partition (3,2,1,1,1) has 16 submultisets, which is more than for any other partition of 8, so a(8) = 16. - Gus Wiseman, Jun 30 2019
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i<2, n+1,
max(seq((j+1)*b(n-i*j, i-1), j=0..n/i)))
end:
a:= n-> b(n, n):
seq (a(n), n=0..100); # Alois P. Heinz, Aug 09 2012
MATHEMATICA
$RecursionLimit = 1000; b[n_, i_] := b[n, i] = If[n == 0 || i<2, n+1, Max[Table[ (j+1)*b[n-i*j, i-1], {j, 0, n/i}]]]; a[n_] := b[n, n]; Table [a[n], {n, 0, 100}] (* Jean-François Alcover, Apr 15 2015, after Alois P. Heinz *)
Table[Max@@(Times@@(1+Length/@Split[#])&)/@IntegerPartitions[n], {n, 0, 30}] (* Gus Wiseman, Jun 30 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, Nov 28 2003
STATUS
approved