Ball In A Box

What is the greatest number of balls of diameter 1 that can be placed in a 10 × 10 × 1 10\times10\times1 box?

Note : The answer isn't 100.


The answer is 106.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Mat Baluch
Feb 26, 2016

Disclaimer: this is a qualitative solution (not a formal proof). It still led me to guess the correct solution.

We know the answer shall be between 100 (density: π 4 = 0 , 785 \frac{\pi}{4} = 0,785 ) and 115 (most dense packing of discs, with density: π 2 3 = 0 , 907 \frac{\pi}{2 \sqrt{3} } = 0,907 ). Let us try to narrow the interval to find the answer.

If we try to pave a 10X10 grid in an hexagonal way, we can manage to put 105 discs (6 rows of 10, and 5 rows of 9):

This paving seems very satisfactory in the "bottom" of the grid, but there is quite some spare at the top, as the height of the packing is: H = 5 c + 1 = 9 , 66 H = 5c +1 = 9,66 , where c = 3 c = \sqrt{3} is the height of the hexagonal packing unit.

This idea is to improve the top of the packing by taking advantage of the vertical spare space, using a square paving for the top of the packing (last two rows):

The square paving, while it is less vertically efficient, allows to put more discs in the horizontal axis (10 for every row, instead of 10 every other row). We can put one more disc this way.

Now the height is H = 4 c + 3 = 9 , 93 H = 4c +3 = 9,93 : if we try to arrange one more row in a square pakcing, the height would be: H = 3 , 5 c + 4 = 10 , 06 H = 3,5c +4 = 10,06 , which shows that this is the best we can do with this method.

From this heuristic approach, we conclude that the answer should be 106 \boxed{106}

Good solution. I could get to 105, but not the last one.

Jaidev Ashok - 5 years, 3 months ago

Log in to reply

Same here!

Aritra Das - 5 years, 3 months ago

How did you find out that c= square root of 3?

Amanda Fitzhugh - 5 years, 3 months ago

Log in to reply

"c" is twice the distance between the two lines joining the centers of discs of adjacent rows, in the hexagonal configuration. Why twice ? Because this is the smallest translation that leaves the hexagonal structure unchanged, which is the definition of the unit height.

It is therefore also twice the height of an equilateral triangle of unit side. Therefore, using Pythagore's theorem:

( c 2 ) ² + ( 1 2 ) ² = 1 ² ( \frac {c}{2} )² + ( \frac {1}{2} )² = 1²

c = 3 c = \sqrt{3}

mat baluch - 5 years, 3 months ago

Outstanding!!! I've reached 105. This approach was outstanding!!!

Cleres Cupertino - 5 years, 3 months ago

( link try to do this problem please

Sudhamsh Suraj - 4 years, 3 months ago
Arjen Vreugdenhil
Feb 27, 2016

The pattern will contain p p rows of 10 balls and q q rows of 9 balls. Normally each row takes up 1 unit of vertical length, but wherever two rows of different length touch each other, we save 1 1 2 3 1 - \tfrac12\sqrt 3 units of length.

An optimal pattern will have p q p \geq q . For if p < q p < q , we could replace all rows of 9 balls by rows of 10, and vice versa; this will increase the total number of balls without changing the length needed.

Also, in an optimal pattern every row of 9 balls is directly located between two rows of 10 balls, because this maximizes the number of alternations, and therefore the amount of length saved. The only possible exception is if q = p q = p , in which case one row of 9 is at the end of the pattern. It is not difficult to see that we can make 2 q 2q alternations between the different kinds of rows if p > q p > q , and 2 q 1 2q - 1 if p = q p = q .

We have the following mathematical model: N = 10 p + 9 q = 19 q + 10 ( p q ) (number of balls) = p + q ( 1 1 2 3 ) 2 q = 3 q + ( p q ) (vertical length) . N = 10p + 9q = 19q + 10(p-q)\ \ \ \ \ \text{(number of balls)} \\ \ell = p + q - (1 - \tfrac12\sqrt 3)\cdot 2q = \sqrt 3 q + (p-q)\ \ \ \ \ \text{(vertical length)}. (But if p = q p = q , we must increase \ell by 1 1 2 3 1 - \tfrac12\sqrt 3 .)

We want to optimize N N under the condition 10 \ell \leq 10 and p q 0 p - q \geq 0 . The following graph shows the situation: We must stay above the blue line to keep p q 0 p - q \geq 0 ; and below the red line to keep 10 \ell \leq 10 . The green lines show where N = 100 , 105 , 110 N = 100, 105, 110 respectively; the arrow indicates the direction in which the optimal point is to be found.

The basic solution is found on the intersection of the two conditions: the intersection of the blue and red lines, with p = q = 10 / 3 5.774 p = q = 10/\sqrt 3 \approx 5.774 and N 109.70 N \approx 109.70 . However, p p and q q must be integers.

In the graph the nearest grid point is ( q , p ) = ( 5 , 6 ) (q, p) = (5, 6) . This would give = 1 + 5 3 9.66 \ell = 1 + 5\sqrt 3 \approx 9.66 and N = 105 N = 105 . However, there is a better alternative: ( q , p ) = ( 4 , 7 ) (q, p) = (4, 7) . This gives = 3 + 4 3 9.93 \ell = 3 + 4\sqrt 3 \approx 9.93 , thus utilizing the vertical length better; and N = 106 N = \boxed{106} .

How did you know the configuration will contain only rows of 10 and 9 balls?? Any proof?? @Arjen Vreugdenhil @Chew-Seong Cheong @Calvin Lin @Pi Han Goh

ritik agrawal - 3 years, 8 months ago

Log in to reply

Rows of 11 don't fit. If you have a row of 8, you can always fit an additional ball.

The most serious assumption I made is that the balls are actually arranged in rows.

Arjen Vreugdenhil - 3 years, 8 months ago
Vinod Kumar
Jun 22, 2019

Hexagonal packing of 11 rows as below:

2*(10+9+10+9+10)+10 =106

Answer=106

Andrew Rae
Apr 4, 2017

I followed the same reasoning as Mat, but had something rattling around in my head about random packing.

The following link confirms 106 but throws up some interesting patterns for other square sizes.

The best known packing of equal circles in a square

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...