OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Wikipedia, Parallelepiped
EXAMPLE
a(24)=9 since 9=2+3+4 is the smallest sum of all possible parallelepipeds having 24=2*3*4 as volume.
MATHEMATICA
a[n_] := Block[{x, y, z}, Min[Total /@ ({x, y, z} /. List@ ToRules@ Reduce[ x*y*z == n && x >= y >= z > 0, {x, y, z}, Integers])]; Array[a, 75] (* Giovanni Resta, Sep 19 2013 *)
PROG
(PARI) a(n) = {smin = 3*n; for (i = 1, n, for (j = 1, i, for (k = 1, j, if (i*j*k == n, smin = min (smin, i+j+k)); ); ); ); return (smin); } \\ Michel Marcus, Sep 23 2013
(PARI) a(n)=my(m=n+2, d); fordiv(n, x, d=divisors(n/x); m=min(m, d[(#d+1)\2]+d[#d\2+1]+x)); m \\ Charles R Greathouse IV, Sep 23 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Carmine Suriano, Sep 19 2013
STATUS
approved