| 先从小的规模看看规律。 显然,0是白给的(增大乘积,不涨规模),假定 m 的最大分解为 `m=x_0+x_1+...+x_n, x_0<x_1<...<x_n`, 则必有`x_0=0`.
 且记MaxPartition(m)=${x_n,x_{n-1},...,x_2, x_1}$(省略了`x_0`), 下面的程序给出了m=1~91的答案.
 MaxPartition(m)定义为降序是为了适应Mathematica的 IntegerPartitions[]函数,它给出的结果是降序的。
 
 复制代码f[m_]:=MaximalBy[{m, Length@#, #, Times@@# Times@@Flatten[-Differences/@Subsets[#, {2}]]}&/@Select[IntegerPartitions[m], DuplicateFreeQ], Last]); 
f/@Range[91]//Tableform[#, Tabledepth->1 ]&
{{m, n, {x_n, ..., x_2, x_1}, 最大积}}
 {{1,1,  {1},  1}}
 {{2,1,  {2},  2}}
 {{3,1,  {3},  3}}
 {{4,2,  {3,1},  6}}
 {{5,2,  {4,1},  12}}
 {{6,2,  {5,1},  20}}
 {{7,3,  {4,2,1},  48}}
 {{8,3,  {5,2,1},  120}}
 {{9,3,  {6,2,1},  240},    {9,3,  {5,3,1},  240}}
 {{10,3,  {6,3,1},  540}}
 {{11,4,  {5,3,2,1},  1440}}
 {{12,4,  {6,3,2,1},  4320}}
 {{13,4,  {6,4,2,1},  11520}}
 {{14,4,  {7,4,2,1},  30240}}
 {{15,4,  {8,4,2,1},  64512}}
 {{16,5,  {6,4,3,2,1},  207360}}
 {{17,5,  {7,4,3,2,1},  725760}}
 {{18,5,  {7,5,3,2,1},  2419200}}
 {{19,5,  {8,5,3,2,1},  7257600}}
 {{20,5,  {9,5,3,2,1},  17418240}}
 {{21,5,  {9,6,3,2,1},  39191040}}
 {{22,6,  {7,5,4,3,2,1},  174182400}}
 {{23,6,  {8,5,4,3,2,1},  696729600}}
 {{24,6,  {8,6,4,3,2,1},  2786918400}}
 {{25,6,  {9,6,4,3,2,1},  9405849600}}
 {{26,6,  {10,6,4,3,2,1},  25082265600}}
 {{27,6,  {10,7,4,3,2,1},  65840947200}}
 {{28,6,  {10,7,5,3,2,1},  182891520000}}
 {{29,7,  {8,6,5,4,3,2,1},  1003290624000}}
 {{30,7,  {9,6,5,4,3,2,1},  4514807808000}}
 {{31,7,  {9,7,5,4,3,2,1},  21069103104000}}
 {{32,7,  {10,7,5,4,3,2,1},  79009136640000}}
 {{33,7,  {11,7,5,4,3,2,1},  231760134144000}}
 {{34,7,  {11,8,5,4,3,2,1},  695280402432000}}
 {{35,7,  {11,8,6,4,3,2,1},  2317601341440000}}
 {{36,7,  {12,8,6,4,3,2,1},  6356849393664000}}
 {{37,8,  {9,7,6,5,4,3,2,1},  45509262704640000}}
 {{38,8,  {10,7,6,5,4,3,2,1},  227546313523200000}}
 {{39,8,  {10,8,6,5,4,3,2,1},  1213580338790400000}}
 {{40,8,  {11,8,6,5,4,3,2,1},  5006018897510400000}}
 {{41,8,  {12,8,6,5,4,3,2,1},  16019260472033280000}}
 {{42,8,  {11,9,7,5,4,3,2,1},  56067411652116480000}}
 {{43,8,  {12,9,7,5,4,3,2,1},  210252793695436800000}}
 {{44,8,  {13,9,7,5,4,3,2,1},  624751158409297920000}}
 {{45,9,  {9,8,7,6,5,4,3,2,1},  1834933472251084800000}}
 {{46,9,  {10,8,7,6,5,4,3,2,1},  18349334722510848000000}}
 {{47,9,  {11,8,7,6,5,4,3,2,1},  100921340973809664000000}}
 {{48,9,  {11,9,7,6,5,4,3,2,1},  605528045842857984000000}}
 {{49,9,  {12,9,7,6,5,4,3,2,1},  2724876206292860928000000}}
 {{50,9,  {13,9,7,6,5,4,3,2,1},  9446237515148584550400000}}
 {{51,9,  {12,10,8,6,5,4,3,2,1},  38753794933942910976000000}}
 {{52,9,  {13,10,8,6,5,4,3,2,1},  157437291919143075840000000}}
 {{53,9,  {14,10,8,6,5,4,3,2,1},  503799334141257842688000000}}
 {{54,9,  {14,11,8,6,5,4,3,2,1},  1558629189999516450816000000}}
 {{55,10,  {10,9,8,7,6,5,4,3,2,1},  6658606584104736522240000000}}
 {{56,10,  {11,9,8,7,6,5,4,3,2,1},  73244672425152101744640000000}}
 {{57,10,  {12,9,8,7,6,5,4,3,2,1},  439468034550912610467840000000}}
 {{58,10,  {12,10,8,7,6,5,4,3,2,1},  2929786897006084069785600000000}}
 {{59,10,  {13,10,8,7,6,5,4,3,2,1},  14282711122904659840204800000000}}
 {{60,10,  {14,10,8,7,6,5,4,3,2,1},  53322121525510730070097920000000}}
 {{61,10,  {13,11,9,7,6,5,4,3,2,1},  251375715763122013187604480000000}}
 {{62,10,  {14,11,9,7,6,5,4,3,2,1},  1099768756463658807695769600000000}}
 {{63,10,  {15,11,9,7,6,5,4,3,2,1},  3770635736446830197814067200000000}}
 {{64,10,  {15,12,9,7,6,5,4,3,2,1},  12725895610508051917622476800000000}}
 {{65,10,  {16,12,9,7,6,5,4,3,2,1},  39591675232691717077047705600000000}}
 {{66,11,  {11,10,9,8,7,6,5,4,3,2,1},  265790267296391946810949632000000000}}
 {{67,11,  {12,10,9,8,7,6,5,4,3,2,1},  3189483207556703361731395584000000000}}
 {{68,11,  {13,10,9,8,7,6,5,4,3,2,1},  20731640849118571851254071296000000000}}
 {{69,11,  {13,11,9,8,7,6,5,4,3,2,1},  152032032893536193575863189504000000000}}
 {{70,11,  {14,11,9,8,7,6,5,4,3,2,1},  798168172691065016273281744896000000000}},
 {{71,11,  {15,11,9,8,7,6,5,4,3,2,1},  3192672690764260065093126979584000000000},
 {71,11,  {14,12,9,8,7,6,5,4,3,2,1},  3192672690764260065093126979584000000000},
 {71,11,  {14,11,10,8,7,6,5,4,3,2,1},  3192672690764260065093126979584000000000}}
 {{72,11,  {14,12,10,8,7,6,5,4,3,2,1},  17027587684076053680496677224448000000000}}
 {{73,11,  {15,12,10,8,7,6,5,4,3,2,1},  79816817269106501627328174489600000000000}}
 {{74,11,  {16,12,10,8,7,6,5,4,3,2,1},  291901503155589491665657323847680000000000}}
 {{75,11,  {16,13,10,8,7,6,5,4,3,2,1},  1067264870912624078902559590318080000000000}}
 {{76,11,  {17,13,10,8,7,6,5,4,3,2,1},  3527903323294507371927905312440320000000000}}
 {{77,11,  {16,13,11,9,7,6,5,4,3,2,1},  13696565843378675679249514742415360000000000}}
 {{78,12,  {12,11,10,9,8,7,6,5,4,3,2,1},  127313963299399416749559771247411200000000000}}
 {{79,12,  {13,11,10,9,8,7,6,5,4,3,2,1},  1655081522892192417744277026216345600000000000}}
 {{80,12,  {14,11,10,9,8,7,6,5,4,3,2,1},  11585570660245346924209939183514419200000000000}}
 {{81,12,  {14,12,10,9,8,7,6,5,4,3,2,1},  92684565281962775393679513468115353600000000000}}
 {{82,12,  {15,12,10,9,8,7,6,5,4,3,2,1},  521350679711040611589447263258148864000000000000}}
 {{83,12,  {15,12,11,9,8,7,6,5,4,3,2,1},  2293942990728578690993567958335855001600000000000}}
 {{84,12,  {15,13,11,9,8,7,6,5,4,3,2,1},  13253892835320676881296170425940495564800000000000}}
 {{85,12,  {16,13,11,9,8,7,6,5,4,3,2,1},  66269464176603384406480852129702477824000000000000}}
 {{86,12,  {17,13,11,9,8,7,6,5,4,3,2,1},  257504203657658865122325596846843913830400000000000}}
 {{87,12,  {17,14,11,9,8,7,6,5,4,3,2,1},  1013922801902031781419157037584447910707200000000000}}
 {{88,12,  {18,14,11,9,8,7,6,5,4,3,2,1},  3548729806657111234967049631545567687475200000000000},
 {88,12,  {17,14,11,10,8,7,6,5,4,3,2,1},  3548729806657111234967049631545567687475200000000000}}
 {{89,12,  {17,14,12,10,8,7,6,5,4,3,2,1},  15772132474031605488742442806869189722112000000000000}}
 {{90,12,  {18,14,12,10,8,7,6,5,4,3,2,1},  57680941619315585787400933693693036698009600000000000}}
 {{91,13,  {13,12,11,10,9,8,7,6,5,4,3,2,1},  792786697595796795607377086400871488552960000000000000}}
 |