Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enigma 1715 - Open the box

94 views
Skip to first unread message

Chappy

unread,
Oct 24, 2012, 9:42:29 PM10/24/12
to
Enigma 1715 - Open the box
New Scientist magazine, 15 September 2012.
By Susan Denham.

I started with a rectangular piece of
card a whole number of centimetres long
by a whole number of centimetres wide,
one of those numbers being a prime. Then
I cut out an identical small square from
each corner of the card and discarded the
four squares. I folded up the four "flaps"
on the remaining piece of card to form an
open-topped box, choosing the size of the
cut squares so that the volume of this
open box was the biggest possible.

Having made the box, I found that the
length of its rectangular base was four
times its width.

What were the dimensions of the original
piece of card?

Ciao,
Chappy.

Dave Baker

unread,
Oct 25, 2012, 2:29:19 AM10/25/12
to

"Chappy" <petergreg...@hotmail.com> wrote in message
news:ecec434a-d480-47a4...@googlegroups.com...
Let the original dimensions of the card be L x W and the fold height be H.

The base of the box so formed will be L2 = (L-2H) and W2 = (W-2H) and we are
told that L2 = 4 x W2.

The volume will be L2 x W2 x H = (L-2H) x (W-2H) x H or

4(W-2H) x (W-2H) x H

After some buggering about with simultaneous equations, calculus and
spreadsheets I concluded that this volume maximises when H = 2/9W. So W2 =
5/9W and L2 = 20/9W

That means L = 24/9W = 8/3W

If one side of the card is a prime number of cm then it must be 8 x 3 cm.
--
Dave Baker


alexy

unread,
Oct 25, 2012, 2:34:44 PM10/25/12
to
I used the same method, but got a slightly different result:
L = 18H
W = 6H
And the simplest solution meeting the other criteria is
L=9cm, W=3cm, H=0.5cm
--
Alex -- Replace "nospam" with "mail" to reply by email. Checked infrequently.

Dave Baker

unread,
Oct 25, 2012, 7:42:39 PM10/25/12
to

"alexy" <nos...@asbry.net> wrote in message
news:k6c0o3$mi5$1...@dont-email.me...
> "Dave Baker" <Nu...@null.com> wrote:
> I used the same method, but got a slightly different result:
> L = 18H
> W = 6H
> And the simplest solution meeting the other criteria is
> L=9cm, W=3cm, H=0.5cm

The solution W = 6H only applies when the original piece of card is square.
As the card becomes progressively more rectangular i.e. L tends to infinity,
then H tends to W/4. For any other rectangle the optimum value of H will be
somewhere between these two limits of W/6 and W/4.

The optimum value of H if the card were 9 x 3 cm is 0.677 cm and not 0.5 cm
as you can verify by calculation.
--
Dave Baker


alexy

unread,
Oct 26, 2012, 7:54:56 AM10/26/12
to
Hmmm. Hard to argue with that! I better check my formulas and
calculus!

alexy

unread,
Oct 26, 2012, 8:10:53 AM10/26/12
to
Aha! I see the fault in my solution. I was maximizing volume for a
L=4W box, while the maximization should have been first, and the 4x1
ratio a result.

alexy

unread,
Oct 26, 2012, 2:49:02 PM10/26/12
to
Dave: A little help please. I recognize from the specific example you
gave that my solution is wrong, but I can't figure out why. Please
point out the problem in my solution below:

"Dave Baker" <Nu...@null.com> wrote:

>Let the original dimensions of the card be L x W and the fold height be H.
>
>The base of the box so formed will be L2 = (L-2H) and W2 = (W-2H) and we are
>told that L2 = 4 x W2.
>
>The volume will be L2 x W2 x H = (L-2H) x (W-2H) x H or
>
>4(W-2H) x (W-2H) x H

I'm with you to this point, but here we diverge. Multiplying, I got
V = 4W^2H - 16WH^2 + 16H^3

Differentiating wrt H, I get
DV/DH = 4W^2 - 32WH + 48H^2 =4*(W-2H)*(W-6H)

From which I concluded that W=6H.

Your specific example shows that I am wrong, but WHY? I can't see the
breakdown in the argument above, although I'm sure I will give myself
a dope-slap when you point it out! <g>
>
>After some buggering about with simultaneous equations, calculus and
>spreadsheets I concluded that this volume maximises when H = 2/9W. So W2 =
>5/9W and L2 = 20/9W
>
>That means L = 24/9W = 8/3W
>
>If one side of the card is a prime number of cm then it must be 8 x 3 cm.

--

Brian Tivol

unread,
Oct 26, 2012, 5:28:52 PM10/26/12
to

> I started with a rectangular piece of card a whole number of
> centimetres long by a whole number of centimetres wide, one of those
> numbers being a prime. Then I cut out an identical small square from
> each corner of the card and discarded the four squares. I folded up
> the four "flaps" on the remaining piece of card to form an
> open-topped box, choosing the size of the cut squares so that the
> volume of this open box was the biggest possible.

Let l be the length of the card; let w be the width.
Let d be the depth of the box.

Then the volume of the box as a function of d is
v(d) = (l-2d)(w-2d)(d)
= 4d^3 - 2(l+w)d^2 + lwd

Its derivative is
v'(d) = 12d^2 - 4(l+w)d + lw

The maximum volume of the box is attained when the derivative equals
zero, and the quadratic formula gives us:

d = ( 4(l+w) +- sqrt(16(l+w)^2 - 48lw) ) / 24
= ( 4(l+w) +- 4 * sqrt((l+w)^2 - 3lw) ) / 24
= ( l + w +- sqrt(l^2 - lw + w^2) ) / 6

Did someone say that I did some handwaving about whether this is a
minimum or maximum? And about whether either of the two values for d
is reasonable when compared to l and w? Nobody? Great. So let's
stop here for now.

> Having made the box, I found that the length of its rectangular base
> was four times its width.

We notice that
l - 2d = 4(w - 2d)
l - 2d = 4w - 8d
4w - l = 6d

Hey, we have a nice formula for 6d!
4w - l = l + w +- sqrt(l^2 - lw + w^2)
3w - 2l = +- sqrt(l^2 - lw + w^2)
(3w - 2l)^2 = l^2 - lw + w^2
9w^2 - 12wl + 4l^2 = l^2 - lw + w^2
8w^2 - 11wl + 3l^2 = 0
(w - l) (8w - 3l) = 0

> What were the dimensions of the original piece of card?

If w == l, then the original card is a square, but that doesn't work.
So 8w == 3l. Since the card's dimensions (in cm) are integers and one
is prime, our answer must be "3cm by 8cm".

--brian

Jonathan Dushoff

unread,
Oct 30, 2012, 11:47:18 AM10/30/12
to
On Friday, October 26, 2012 2:49:02 PM UTC-4, alexy wrote:
> Dave: A little help please. I recognize from the specific example you

> gave that my solution is wrong, but I can't figure out why. Please

> point out the problem in my solution below:



> "Dave Baker" <Nu...@null.com> wrote:



> >Let the original dimensions of the card be L x W and the fold height be H.



> >The base of the box so formed will be L2 = (L-2H) and W2 = (W-2H) and we are

> >told that L2 = 4 x W2.



> >The volume will be L2 x W2 x H = (L-2H) x (W-2H) x H or



> >4(W-2H) x (W-2H) x H

The box is the maximum volume for the given card (not yet subject to the constraint that the box length is four times the box width). You are substituting too soon.

JD

alexy

unread,
Oct 31, 2012, 9:59:17 AM10/31/12
to
thanks. That is the conclusion that I had [finally] come to.
0 new messages