OFFSET
1,2
FORMULA
For n>6, a(n+3) = 3a(n) (conjectured). - Ralf Stephan, Dec 02 2004
EXAMPLE
The partitions of 5 are 5, 41, 32, 311, 221, 2111, 11111, with products 5, 4, 6, 3, 4, 2, 1 and the maximal even product is 6.
MATHEMATICA
first Needs["DiscreteMath`Combinatorica`"], then f[n_] := Max[ Select[ Apply[ Times, Partitions[n], 2], EvenQ[ # ] &]]; Table[ f[n], {n, 1, 42}] (* Robert G. Wilson v, Feb 12 2004 *)
Join[{0}, Table[Max[Select[Times@@@IntegerPartitions[n], EvenQ]], {n, 2, 50}]] (* Harvey P. Dale, Jan 17 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Feb 12 2004
EXTENSIONS
More terms from Robert G. Wilson v, Feb 12 2004
STATUS
approved