login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A266871 Number of partitions of n that maximize the product of multiplicities of parts. 3
1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 5, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 5, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
LINKS
FORMULA
a(n) = A266477(n,A266480(n)).
EXAMPLE
a(8) = 2: [1,1,1,1,1,1,1,1], [1,1,1,1,2,2] (product of multiplicities = 8).
a(9) = 1: [1,1,1,1,1,2,2] (product = 10).
a(10) = 2: [1,1,1,1,1,1,2,2], [1,1,1,1,2,2,2] (product = 12).
a(11) = 1: [1,1,1,1,1,2,2,2] (product = 15).
a(23) = 3: [1,1,1,1,1,1,1,1,1,2,2,2,2,3,3], [1,1,1,1,1,1,1,1,2,2,2,3,3,3], [1,1,1,1,1,1,2,2,2,2,3,3,3] (product = 72).
MAPLE
b:= proc(n, i) option remember; local r, l, j;
if n=0 or i=1 then [max(1, n), 1]
else r:= b(n, i-1);
for j to iquo(n, i) do
l:= (w-> [w[1]*j, w[2]])(b(n-i*j, i-1));
r:= `if`(l[1]>r[1], l,
`if`(l[1]=r[1], [0, l[2]], 0)+r)
od; r
fi
end:
a:= n-> b(n$2)[2]:
seq(a(n), n=1..120);
MATHEMATICA
b[n_, i_] := b[n, i] = Module[{r, l, j}, If[n == 0 || i == 1, {Max[1, n], 1}, r = b[n, i - 1]; For[j = 1, j <= Quotient[n, i], j++, l = Function[w, {w[[1]]*j, w[[2]]}][b[n - i*j, i - 1]]; r = If[l[[1]] > r[[1]], l, If[l[[1]] == r[[1]], {0, l[[2]]}, 0] + r]]; r]]; a[n_] := b[n, n][[2]]; Table[a[n], {n, 0, 120}] (* Jean-François Alcover, Dec 21 2016, translated from Maple *)
CROSSREFS
Sequence in context: A081729 A219157 A080215 * A331290 A060500 A187284
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 22:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)