Optimal fitting of spheres in a cylinder.

how to find the minimum height and width of a cylinder containing n identical spheres?

-
Also posted on stackexchange, see math.stackexchange.com/questions/303872/…. – Uwe Franz Feb 14 at 10:44
I misjudged this question. As asked, it is trivial, but Joseph O'Rourke's answer indicates that there is an interesting question in the background. – Daniel Moskovich Feb 14 at 14:35