How to fit 5 balls into a can.

110 Views Asked by At

You have 5 balls of radii 5 cm. You have a cylindrical can with radius 8 cm. What is the optimal placement of the balls within the can to minimise the height of the can (Distance from top of top ball to bottom of bottom ball) and what is this height.

So far, I believe that alternating balls in a 2d plan would be the most efficient but I cannot show this and I cannot figure out what the heigh would be.

[Edit] The other option that I have considered is a spiral-like placement, where each ball is rotated 360/5° around the centre of the can from the last leading to their centres forming a pentagon when looked at from above. How would you calculate the height or show which one would be optimal without just measuring it?

2

There are 2 best solutions below

1
On BEST ANSWER

It is obvious that only two successive balls can touch. Their centers then have a distance $10$. The vertical displacement $h$ of the centers is minimal when both balls touch the wall of the can at opposite boundary verticals. The horizontal displacement of the centers then is $6$, so that $h=\sqrt{100-36}=8$. Since there are $5$ balls the total necessary height of the can is $2\cdot 5+4\cdot 8=42$ [cm].

4
On

Your first idea was right. The centers of the spheres belong to a cylinder with radius $3\ $cm, coaxial with the given cylinder. If two consecutive centers are not vertically aligned, but the second one is rotated of an angle $\phi$ about the axis of the cylinder with respect to the first one, we can write their coordinates as: $$ C_1=(3,0,0),\quad C_2=(3\cos\phi,3\sin\phi,h). $$ But the distance $||C_1-C_2||$ between the centers is $10$, so: $$||C_1-C_2||^2=(3-3\cos\phi)^2+(3\sin\phi)2+h^2=100,$$ and from that we get: $$ h=\sqrt{82+18\cos\phi}\ \hbox{cm}. $$ $h$ is minimum for $\phi=180°$, yielding $h_\min=8\ $cm.