reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
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 *)
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 *)
approved
editing
editing
approved
a(11) = 1: [1,1,1,1,1,2,2,2] (product = 15).
a(8) = 2: [1,1,1,1,1,1,1,1], [1,1,1,1,2,2] (product of multiplicities = 8).
a(8) = 2: [1,1,1,1,1,1,1,1], [1,1,1,1,2,2] (product = 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(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).
a(10) = 2: [1,1,1,1,1,1,2,2], [1,1,1,1,2,2,2].