My National Review Online
"Diary" column for December 2003 included
the following brainteaser.
Christmas Presents
Three children get three
different Christmas presents, packed in three boxes. All of these boxes
have dimensions which are an integer number of centimeters, due to
production constraints at the boxing company. All dimensions are less
than a meter. To their amazement, the
children note that
-
no two boxes have the same dimensions;
-
they all have the same volume;
-
the length of the piece of string tied
around each box (four times the sum of the boxs dimensions) are the
same.
Can you find the possible dimensions of the
boxes? Are there any other coincidences to be found among the three boxes?
For example, in the surface area of the paper wrapping them? Can any box be
a cube? Have a square side?
I guess I should
apologize for this one, as I don't have a solution method. I thought
I did when I set the puzzle, using basic properties of the roots of a
cubic and a spot of Diophantine analysis. However, it didn't pan
out.
I do know
(because I wrote a VB program)
that there are 342 possible solutions. None contains a cubic box.
In 23 of the solutions, at least one of the boxes has a square face; in 4
of those 23 two boxes have a square face. In no case do two
boxes have the same surface area (which I think a bit surprising).
A
complete solution set is attached at the end of this web page. Here are
the four solutions with two boxes having a square face. Each box is
described like this: (a, b, c) (L, A, V), where a, b, and c
are the sides of the box, L their sum, A the surface area, and V the
volume.
Solution
1:
(9, 20, 20) (49, 1520, 3600)
(10, 15, 24) (49, 1500, 3600)
(12, 12, 25) (49, 1488, 3600)
Solution
2:
(18, 40, 40) (98, 6080, 28800)
(20, 30, 48) (98, 6000, 28800)
(24, 24, 50) (98, 5952, 28800)
Solution
3:
(27, 60, 60) (147, 13680, 97200)
(30, 45, 72) (147, 13500, 97200)
(36, 36, 75) (147, 13392, 97200)
Solution
4:
(25, 63, 63) (151, 14238, 99225)
(27, 49, 75) (151, 14046, 99225)
(35, 35, 81) (151, 13790, 99225)
Solution
4 is the one of only two of the 342 possible solutions for which the volume is an
odd number.
Franηois
Charton, who sent me the puzzle, adds the following theorems and proofs.
The second theorem explains why you cannot have two parcels with the same
surface, the third which you will never have a cube as a solution.
Franηois
has also kindly sent a correction to my own solution. I reproduce
his letter at the end of these theorems.
Theorem 1: No two parcels can have a common dimension
Proof : Suppose we have two parcels of dimensions (a,b,c) and (a,d,e), as
their volume and sum of the their dimensions are equal, we have
Abc=ade and a+b+c=a+d+e,
as a is not equal to zero, this yields
bc=de and b+c=d+e,
which means b=d+e-c and, replacing this value in de-bc=0
c*c - (d+e)c +de=0
now this means (c-e)(c-d)=0 and so c is either equal to d or e, and b is
equal to e or d : the two parcels are the same, a contradiction.
Corollary :
No two parcels can have one side with the same surface, or perimeter : let
(a,b,c) and (d,e,f), ab=de yields (given abc=def) c=f, and a+b=d+e yields
(given a+b+c=d+e+f) c=f
Theorem 2: No two parcels can have the same surface
Proof : Let (a,b,c) be the dimension of a parcel, its surface is
2ab+2bc+2ac
Suppose two parcels (a,b,c) and (d,e,f) have the same surface, let
V=abc=def and L=a+b+c=d+e+f (by hypothesis)
And S=ab+bc+ac=de+ef+df (as they have the same surface)
Then (X**n denoting the n-th power of X, as in Fortran) let P(X) be the
polynom X**3 - 3L X**2 + 3S X - V=0
P(X), a third degree polynom, has three complex roots. And can be factored
in two ways as
P(X)=(X-a)(X-b)(X-c)=(X-d)(X-e)(X-f)
Which means the parcels have to be the same
Theorem 3: No parcel can be a cube
Proof : (a little bit more involved)
Let (a,a,a) be a cubic parcel and (b-c,b,b+d) (c,d>=0) another one
The equality of the sums yields
3a=3b+d-c (1)
And that of the volumes
a**3=b ( b**2 + (d-c)b - cd) ......... (2)
As per (1) d-c=3(a-b), replacing in (2) we have
a**3 = b**3 + 3b**2 (a-b) - bcd
a**3 - b**3 = 3b**2 (a-b) - bcd
(3) (a-b) (a**2 + ab - 2b**2) = - bcd <=0 (per hypothesis)
we know that a cannot be equal to b (theorem 1), we now have two cases
case 1 : a > b
dividing (3) by (a-b) we get :
a**2 + ab - 2b**2 <=0
as a>b>0, we have a**2 > b**2 and ab >= b**2
therefore a**2 + ab > 2b**2
and a**2 + ab - 2b**2 > 0, a contradiction
case 2 : a < b
(3) becomes
a**2 + ab - 2b**2 >0
as b>a>0, we have a**2 < b**2 and ab <= b**2
therefore a**2 + ab < 2b**2
and a**2 + ab - 2b**2 < 0, a contradiction
which completes the proof
(visually, this means that a cube is the smallest possible volume for a
given sum of length in a parcel, and the minimum is strict)
Theorem 4: At least one parcel has no square face
Proof :
Suppose the three parcels have dimensions (a a b) (c c d) (e e f)
We have 2a+b = 2c+d, which yields
d = 2 (a-c)+b
then,
a**2 b = c**2 b + 2c**2 (a-c)
that is
b(a-c)(a+c) = 2 c**2 (a-c)
dividing by a-c (per theorem 1 they cannot be equal)
2 c**2 - bc - ba = 0
Solving this in c yields
c = Ό ( b + sqrt(b**2 + 8ab))
or
c = Ό ( b - sqrt(b**2 + 8ab))
and the same argument holds for the value of e, as c and e cannot be
equal, we have to have either c or e equal to
Ό ( b - sqrt(b**2 + 8ab)), which is a negative number, a contradiction.
Note that all the three first theorems do not make use of the fact that we
have three parcels (they work with only two), and that none of the four
use the fact that the dimensions are integers...
(Franηois's
corrections):
John,
Prompted by your comments on the number of solutions to the parcel
problem, I wrote a small program this week end to compute all of them,
and found a small error in the list you put on your page.
The number of solutions is not 342, but 358. In fact, there are 326 sets
of three boxes which satisfy the premise (is this an english word?), and
8 sets of 4 boxes. Like the famed musketeers, the three children might
as well have been four: we can find 4 parcels with the desired property.
Looking at your list, these 4-solutions are counted twice, and not 4
times as they should (there are four ways to pick 3 parcels out of
four...).
This is probably because of the way your VB program is written: my
impression is that you iterate on the dimensions of the smallest parcel,
look for two solutions and then stop without looking for other
possibilities. In this case, if you had 4 solutions A,B,C and D, you
would find :
A, B, C
B, C, D
But not A B D and A C D (this seems plain from the list you give).
The way I did it was to iterate over all possible boxes, and put them
into a list ordered per length/volume pair (for each length/volume pair,
I have a list with the corresponding solutions). Then I enumerate this
list to find all solutions (by looking a the pairs with 3 or more
solutions).
Back to the problem, I found for all parcels with dimensions 1-99
inclusive,
152 734 length-volume pairs which happen in only one parcel
6 453 length volume pairs which happen in exactly two parcels
326 pairs which appear in three parcels
8 pairs which appear in 4 parcels
I suspect that if we allow the maximum dimension to be as large as we
want, we could find solutions for the problem with any number of
children, the general reasoning behind it is that adding one child to
the problems adds three free parameters (the dimensions of his/her
parcel), and only two constraints (length and volume), and n-children
problem will therefore have 3n free parameters, and 2n-2 constraints, ie
n-2 degrees of freedom.
Interestingly, the shortest-length 3 parcel solution is 39, and the
shortest-length 4 parcel solution is 118, note that 118 = 3 * 39 + 1,
this can't be a link to the Collatz problem, can it?
Here are the 8 4-solutions (format : (a,b,c) <length,volume>
(9,56,65) <130,32760>
(10,42,78) <130,32760>
(14,26,90) <130,32760>
(15,24,91) <130,32760>
(14,50,54) <118,37800>
(15,40,63) <118,37800>
(18,30,70) <118,37800>
(21,25,72) <118,37800>
(12,60,63) <135,45360>
(14,40,81) <135,45360>
(15,36,84) <135,45360>
(21,24,90) <135,45360>
(15,48,70) <133,50400>
(16,42,75) <133,50400>
(18,35,80) <133,50400>
(24,25,84) <133,50400>
(20,54,56) <130,60480>
(21,45,64) <130,60480>
(24,36,70) <130,60480>
(28,30,72) <130,60480>
(18,52,70) <140,65520>
(20,42,78) <140,65520>
(21,39,80) <140,65520>
(26,30,84) <140,65520>
(24,60,65) <149,93600>
(25,52,72) <149,93600>
(26,48,75) <149,93600>
(30,39,80) <149,93600>
(35,72,78) <185,196560>
(36,65,84) <185,196560>
(39,56,90) <185,196560>
(40,54,91) <185,196560>
Here is
the compete solution set, laid out in the same form as the four solutions
above..
|
4 |
15 |
20 |
39 |
880 |
1200 |
|
5 |
10 |
24 |
39 |
820 |
1200 |
|
6 |
8 |
25 |
39 |
796 |
1200 |
|
|
|
|
|
|
|
|
4 |
20 |
21 |
45 |
1168 |
1680 |
|
5 |
12 |
28 |
45 |
1072 |
1680 |
|
7 |
8 |
30 |
45 |
1012 |
1680 |
|
|
|
|
|
|
|
|
7 |
18 |
24 |
49 |
1452 |
3024 |
|
8 |
14 |
27 |
49 |
1412 |
3024 |
|
9 |
12 |
28 |
49 |
1392 |
3024 |
|
|
|
|
|
|
|
|
9 |
20 |
20 |
49 |
1520 |
3600 |
|
10 |
15 |
24 |
49 |
1500 |
3600 |
|
12 |
12 |
25 |
49 |
1488 |
3600 |
|
|
|
|
|
|
|
|
3 |
24 |
26 |
53 |
1548 |
1872 |
|
4 |
13 |
36 |
53 |
1328 |
1872 |
|
6 |
8 |
39 |
53 |
1188 |
1872 |
|
|
|
|
|
|
|
|
6 |
26 |
30 |
62 |
2232 |
4680 |
|
8 |
15 |
39 |
62 |
2034 |
4680 |
|
9 |
13 |
40 |
62 |
1994 |
4680 |
|
|
|
|
|
|
|
|
2 |
26 |
36 |
64 |
2120 |
1872 |
|
3 |
13 |
48 |
64 |
1614 |
1872 |
|
6 |
6 |
52 |
64 |
1320 |
1872 |
|
|
|
|
|
|
|
|
3 |
30 |
32 |
65 |
2292 |
2880 |
|
4 |
16 |
45 |
65 |
1928 |
2880 |
|
5 |
12 |
48 |
65 |
1752 |
2880 |
|
|
|
|
|
|
|
|
6 |
24 |
35 |
65 |
2388 |
5040 |
|
7 |
18 |
40 |
65 |
2252 |
5040 |
|
8 |
15 |
42 |
65 |
2172 |
5040 |
|
|
|
|
|
|
|
|
10 |
27 |
28 |
65 |
2612 |
7560 |
|
12 |
18 |
35 |
65 |
2532 |
7560 |
|
14 |
15 |
36 |
65 |
2508 |
7560 |
|
|
|
|
|
|
|
|
3 |
22 |
45 |
70 |
2382 |
2970 |
|
5 |
11 |
54 |
70 |
1838 |
2970 |
|
6 |
9 |
55 |
70 |
1758 |
2970 |
|
|
|
|
|
|
|
|
8 |
27 |
35 |
70 |
2882 |
7560 |
|
9 |
21 |
40 |
70 |
2778 |
7560 |
|
10 |
18 |
42 |
70 |
2712 |
7560 |
|
|
|
|
|
|
|
|
9 |
26 |
35 |
70 |
2918 |
8190 |
|
10 |
21 |
39 |
70 |
2838 |
8190 |
|
13 |
15 |
42 |
70 |
2742 |
8190 |
|
|
|
|
|
|
|
|
5 |
30 |
36 |
71 |
2820 |
5400 |
|
6 |
20 |
45 |
71 |
2580 |
5400 |
|
9 |
12 |
50 |
71 |
2316 |
5400 |
|
|
|
|
|
|
|
|
8 |
30 |
33 |
71 |
2988 |
7920 |
|
9 |
22 |
40 |
71 |
2876 |
7920 |
|
12 |
15 |
44 |
71 |
2736 |
7920 |
|
|
|
|
|
|
|
|
5 |
24 |
45 |
74 |
2850 |
5400 |
|
6 |
18 |
50 |
74 |
2616 |
5400 |
|
10 |
10 |
54 |
74 |
2360 |
5400 |
|
|
|
|
|
|
|
|
10 |
32 |
33 |
75 |
3412 |
10560 |
|
11 |
24 |
40 |
75 |
3328 |
10560 |
|
15 |
16 |
44 |
75 |
3208 |
10560 |
|
|
|
|
|
|
|
|
1 |
33 |
42 |
76 |
2922 |
1386 |
|
2 |
11 |
63 |
76 |
1682 |
1386 |
|
3 |
7 |
66 |
76 |
1362 |
1386 |
|
|
|
|
|
|
|
|
3 |
30 |
44 |
77 |
3084 |
3960 |
|
4 |
18 |
55 |
77 |
2564 |
3960 |
|
6 |
11 |
60 |
77 |
2172 |
3960 |
|
|
|
|
|
|
|
|
5 |
28 |
44 |
77 |
3184 |
6160 |
|
8 |
14 |
55 |
77 |
2644 |
6160 |
|
10 |
11 |
56 |
77 |
2572 |
6160 |
|
|
|
|
|
|
|
|
8 |
33 |
36 |
77 |
3480 |
9504 |
|
9 |
24 |
44 |
77 |
3336 |
9504 |
|
11 |
18 |
48 |
77 |
3180 |
9504 |
|
|
|
|
|
|
|
|
5 |
33 |
40 |
78 |
3370 |
6600 |
|
6 |
22 |
50 |
78 |
3064 |
6600 |
|
8 |
15 |
55 |
78 |
2770 |
6600 |
|
|
|
|
|
|
|
|
8 |
30 |
40 |
78 |
3520 |
9600 |
|
10 |
20 |
48 |
78 |
3280 |
9600 |
|
12 |
16 |
50 |
78 |
3184 |
9600 |
|
|
|
|
|
|
|
|
4 |
30 |
45 |
79 |
3300 |
5400 |
|
5 |
20 |
54 |
79 |
2900 |
5400 |
|
9 |
10 |
60 |
79 |
2460 |
5400 |
|
|
|
|
|
|
|
|
6 |
35 |
40 |
81 |
3700 |
8400 |
|
7 |
24 |
50 |
81 |
3436 |
8400 |
|
10 |
15 |
56 |
81 |
3100 |
8400 |
|
|
|
|
|
|
|
|
7 |
26 |
48 |
81 |
3532 |
8736 |
|
8 |
21 |
52 |
81 |
3352 |
8736 |
|
12 |
13 |
56 |
81 |
3112 |
8736 |
|
|
|
|
|
|
|
|
6 |
34 |
42 |
82 |
3768 |
8568 |
|
7 |
24 |
51 |
82 |
3498 |
8568 |
|
9 |
17 |
56 |
82 |
3218 |
8568 |
|
|
|
|
|
|
|
|
8 |
36 |
39 |
83 |
4008 |
11232 |
|
9 |
26 |
48 |
83 |
3828 |
11232 |
|
13 |
16 |
54 |
83 |
3548 |
11232 |
|
|
|
|
|
|
|
|
2 |
34 |
48 |
84 |
3592 |
3264 |
|
3 |
17 |
64 |
84 |
2662 |
3264 |
|
4 |
12 |
68 |
84 |
2272 |
3264 |
|
|
|
|
|
|
|
|
10 |
30 |
44 |
84 |
4120 |
13200 |
|
11 |
25 |
48 |
84 |
4006 |
13200 |
|
12 |
22 |
50 |
84 |
3928 |
13200 |
|
|
|
|
|
|
|
|
9 |
36 |
40 |
85 |
4248 |
12960 |
|
10 |
27 |
48 |
85 |
4092 |
12960 |
|
15 |
16 |
54 |
85 |
3828 |
12960 |
|
|
|
|
|
|
|
|
5 |
40 |
42 |
87 |
4180 |
8400 |
|
6 |
25 |
56 |
87 |
3772 |
8400 |
|
7 |
20 |
60 |
87 |
3520 |
8400 |
|
|
|
|
|
|
|
|
12 |
35 |
40 |
87 |
4600 |
16800 |
|
14 |
25 |
48 |
87 |
4444 |
16800 |
|
16 |
21 |
50 |
87 |
4372 |
16800 |
|
|
|
|
|
|
|
|
10 |
33 |
45 |
88 |
4530 |
14850 |
|
11 |
27 |
50 |
88 |
4394 |
14850 |
|
15 |
18 |
55 |
88 |
4170 |
14850 |
|
|
|
|
|
|
|
|
6 |
35 |
48 |
89 |
4356 |
10080 |
|
8 |
21 |
60 |
89 |
3816 |
10080 |
|
10 |
16 |
63 |
89 |
3596 |
10080 |
|
|
|
|
|
|
|
|
10 |
35 |
44 |
89 |
4660 |
15400 |
|
11 |
28 |
50 |
89 |
4516 |
15400 |
|
14 |
20 |
55 |
89 |
4300 |
15400 |
|
|
|
|
|
|
|
|
15 |
32 |
42 |
89 |
4908 |
20160 |
|
16 |
28 |
45 |
89 |
4856 |
20160 |
|
20 |
21 |
48 |
89 |
4776 |
20160 |
|
|
|
|
|
|
|
|
4 |
30 |
56 |
90 |
4048 |
6720 |
|
5 |
21 |
64 |
90 |
3538 |
6720 |
|
8 |
12 |
70 |
90 |
2992 |
6720 |
|
|
|
|
|
|
|
|
6 |
40 |
44 |
90 |
4528 |
10560 |
|
8 |
22 |
60 |
90 |
3952 |
10560 |
|
11 |
15 |
64 |
90 |
3658 |
10560 |
|
|
|
|
|
|
|
|
8 |
40 |
42 |
90 |
4672 |
13440 |
|
10 |
24 |
56 |
90 |
4288 |
13440 |
|
14 |
16 |
60 |
90 |
4048 |
13440 |
|
|
|
|
|
|
|
|
7 |
36 |
48 |
91 |
4632 |
12096 |
|
8 |
27 |
56 |
91 |
4352 |
12096 |
|
12 |
16 |
63 |
91 |
3912 |
12096 |
|
|
|
|
|
|
|
|
8 |
38 |
45 |
91 |
4748 |
13680 |
|
10 |
24 |
57 |
91 |
4356 |
13680 |
|
12 |
19 |
60 |
91 |
4176 |
13680 |
|
|
|
|
|
|
|
|
12 |
39 |
40 |
91 |
5016 |
18720 |
|
13 |
30 |
48 |
91 |
4908 |
18720 |
|
15 |
24 |
52 |
91 |
4776 |
18720 |
|
|
|
|
|
|
|
|
15 |
36 |
40 |
91 |
5160 |
21600 |
|
16 |
30 |
45 |
91 |
5100 |
21600 |
|
18 |
25 |
48 |
91 |
5028 |
21600 |
|
|
|
|
|
|
|
|
18 |
33 |
40 |
91 |
5268 |
23760 |
|
20 |
27 |
44 |
91 |
5216 |
23760 |
|
22 |
24 |
45 |
91 |
5196 |
23760 |
|
|
|
|
|
|
|
|
20 |
35 |
36 |
91 |
5360 |
25200 |
|
21 |
30 |
40 |
91 |
5340 |
25200 |
|
24 |
25 |
42 |
91 |
5316 |
25200 |
|
|
|
|
|
|
|
|
9 |
35 |
48 |
92 |
4854 |
15120 |
|
10 |
28 |
54 |
92 |
4664 |
15120 |
|
14 |
18 |
60 |
92 |
4344 |
15120 |
|
|
|
|
|
|
|
|
15 |
35 |
42 |
92 |
5250 |
22050 |
|
18 |
25 |
49 |
92 |
5114 |
22050 |
|
21 |
21 |
50 |
92 |
5082 |
22050 |
|
|
|
|
|
|
|
|
8 |
36 |
49 |
93 |
4888 |
14112 |
|
9 |
28 |
56 |
93 |
4648 |
14112 |
|
14 |
16 |
63 |
93 |
4228 |
14112 |
|
|
|
|
|
|
|
|
10 |
39 |
44 |
93 |
5092 |
17160 |
|
11 |
30 |
52 |
93 |
4924 |
17160 |
|
12 |
26 |
55 |
93 |
4804 |
17160 |
|
|
|
|
|
|
|
|
11 |
40 |
42 |
93 |
5164 |
18480 |
|
14 |
24 |
55 |
93 |
4852 |
18480 |
|
15 |
22 |
56 |
93 |
4804 |
18480 |
|
|
|
|
|
|
|
|
5 |
35 |
54 |
94 |
4670 |
9450 |
|
6 |
25 |
63 |
94 |
4206 |
9450 |
|
9 |
15 |
70 |
94 |
3630 |
9450 |
|
|
|
|
|
|
|
|
8 |
36 |
50 |
94 |
4976 |
14400 |
|
10 |
24 |
60 |
94 |
4560 |
14400 |
|
15 |
15 |
64 |
94 |
4290 |
14400 |
|
|
|
|
|
|
|
|
15 |
34 |
45 |
94 |
5430 |
22950 |
|
17 |
27 |
50 |
94 |
5318 |
22950 |
|
18 |
25 |
51 |
94 |
5286 |
22950 |
|
|
|
|
|
|
|
|
2 |
45 |
48 |
95 |
4692 |
4320 |
|
3 |
20 |
72 |
95 |
3432 |
4320 |
|
6 |
9 |
80 |
95 |
2508 |
4320 |
|
|
|
|
|
|
|
|
5 |
34 |
56 |
95 |
4708 |
9520 |
|
7 |
20 |
68 |
95 |
3952 |
9520 |
|
8 |
17 |
70 |
95 |
3772 |
9520 |
|
|
|
|
|
|
|
|
8 |
42 |
45 |
95 |
5172 |
15120 |
|
9 |
30 |
56 |
95 |
4908 |
15120 |
|
12 |
20 |
63 |
95 |
4512 |
15120 |
|
|
|
|
|
|
|
|
16 |
34 |
45 |
95 |
5588 |
24480 |
|
17 |
30 |
48 |
95 |
5532 |
24480 |
|
20 |
24 |
51 |
95 |
5448 |
24480 |
|
|
|
|
|
|
|
|
20 |
33 |
42 |
95 |
5772 |
27720 |
|
21 |
30 |
44 |
95 |
5748 |
27720 |
|
22 |
28 |
45 |
95 |
5732 |
27720 |
|
|
|
|
|
|
|
|
4 |
36 |
57 |
97 |
4848 |
8208 |
|
6 |
19 |
72 |
97 |
3828 |
8208 |
|
9 |
12 |
76 |
97 |
3408 |
8208 |
|
|
|
|
|
|
|
|
8 |
35 |
54 |
97 |
5204 |
15120 |
|
9 |
28 |
60 |
97 |
4944 |
15120 |
|
10 |
24 |
63 |
97 |
4764 |
15120 |
|
|
|
|
|
|
|
|
11 |
36 |
50 |
97 |
5492 |
19800 |
|
12 |
30 |
55 |
97 |
5340 |
19800 |
|
15 |
22 |
60 |
97 |
5100 |
19800 |
|
|
|
|
|
|
|
|
6 |
36 |
56 |
98 |
5136 |
12096 |
|
7 |
27 |
64 |
98 |
4730 |
12096 |
|
12 |
14 |
72 |
98 |
4080 |
12096 |
|
|
|
|
|
|
|