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!)
A219209 Maximal product of all parts of a partition of n into distinct divisors of n. 2

%I #15 Feb 16 2017 11:00:50

%S 1,1,2,3,4,5,6,7,8,9,10,11,48,13,14,15,16,17,162,19,200,21,22,23,1152,

%T 25,26,27,784,29,1350,31,32,33,34,35,15552,37,38,39,6400,41,2058,43,

%U 44,45,46,47,73728,49,50,51,52,53,8748,55,25088,57,58,59,864000

%N Maximal product of all parts of a partition of n into distinct divisors of n.

%H Alois P. Heinz, <a href="/A219209/b219209.txt">Table of n, a(n) for n = 0..10000</a>

%e a(0) = 1: the empty product.

%e a(p) = p for any prime p: [p]-> p.

%e a(12) = 48: [2,4,6]-> 48.

%e a(20) = 200: [1,4,5,10]-> 200.

%e a(24) = 1152: [1,2,3,4,6,8]-> 1152.

%p a:= proc(n) local b, l;

%p l:= sort([numtheory[divisors](n)[]]);

%p b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,

%p max(b(n, i-1), `if`(l[i]>n, 0, l[i] *b(n-l[i], i-1)))))

%p end; forget(b);

%p b(n, nops(l))

%p end:

%p seq(a(n), n=0..80);

%t a[n_] := a[n] = Module[{b, l}, l = Divisors[n]; b[m_, i_] := b[m, i] = If[m == 0, 1, If[i<1, 0, Max[b[m, i-1], If[l[[i]]>m, 0, l[[i]]*b[m-l[[i]], i-1] ]]]]; b[n, Length[l]]]; Table[a[n], {n, 0, 80}] (* _Jean-François Alcover_, Feb 16 2017, translated from Maple *)

%Y The number of distinct products are in A219208.

%Y Cf. A033630, A092976.

%K nonn

%O 0,3

%A _Alois P. Heinz_, Nov 14 2012

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 July 25 18:15 EDT 2024. Contains 374612 sequences. (Running on oeis4.)