OFFSET
0,4
EXAMPLE
a(14)=45 because max{3*11,9*5}=45.
MATHEMATICA
a[n_] := (pp = Reap[ Do[ pk = p^k; If[pk <= n, Sow[pk]], {p, Prime[ Range[2, PrimePi[n]]]}, {k, 1, Ceiling[Log[3, n]]}]][[2, 1]]; sel = Select[ IntegerPartitions[n, All, pp], Length[#] == Length[ Union[#] && !MatchQ[#, {___, x_, ___, y_, ___} /; GCD[x, y] != 1]] &]; Max[Times @@@ sel]); a[0] = 1; a[1] = a[2] = a[4] = a[6] = 0; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Jul 31 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(43) (typo?) corrected by Jean-François Alcover, Jul 31 2012
STATUS
approved