|
|
A034893
|
|
Maximum of different products of partitions of n into distinct parts.
|
|
4
|
|
|
1, 1, 2, 3, 4, 6, 8, 12, 15, 24, 30, 40, 60, 72, 120, 144, 180, 240, 360, 420, 720, 840, 1008, 1260, 1680, 2520, 2880, 5040, 5760, 6720, 8064, 10080, 13440, 20160, 22680, 40320, 45360, 51840, 60480, 72576, 90720, 120960, 181440, 201600, 362880, 403200
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
EXAMPLE
|
The partitions of n = 4 are (4), (1, 3), (2, 2), (1, 1, 2) and (1, 1, 1, 1) with the products of partitions being 4, 3, 4, 2 and 1 respectively. As these are 4 distinct numbers (being 1, 2, 3 and 4) we have a(4) = 4. - David A. Corneth, Apr 28 2020
|
|
MAPLE
|
b:= proc(n, i) option remember; `if`(i*(i+1)/2<n, 0,
`if`(n=0, 1, max(b(n, i-1), i*b(n-i, min(n-i, i-1)))))
end:
a:= n-> b(n$2):
|
|
MATHEMATICA
|
Table[Max[Times@@@Select[IntegerPartitions[n], Max[Tally[#][[All, 2]]]<2&]], {n, 50}] (* Harvey P. Dale, May 28 2017 *)
b[n_, i_] := b[n, i] = If[i(i+1)/2<n, 0, If[n==0, 1, Max[b[n, i-1], i b[n-i, Min[n-i, i-1]]]]];
a[n_] := b[n, n];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,nice
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|