Match Stick Squares

You are arranging match sticks to form a grid area for some rectangle. For example, a square unit has 4 match sticks; a rectangle of 1 × 2 1\times 2 u n i t 2 unit^2 has 7 match sticks; and a square of 2 × 2 2 \times 2 u n i t 2 unit^2 has 12 match sticks, as shown above.

Then a square of 17 × 17 17\times 17 u n i t 2 unit^2 is created with the same method before it is rearranged into a rectangle with the integer side lengths, by using the same amount of match sticks as the square.

What is the least possible area difference between the square and the new rectangle?


The answer is 1.

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.

1 solution

For a square of side length 17 17 , we can first calculate the total number of match sticks used:

For the vertical grids, we need 17 × ( 17 + 1 17\times (17+1 = 306) match sticks. Similarly, the horizontal grids will also yield the same amount.

Therefore, there are totally 612 612 match sticks used.

Suppose then that the new rectangle has side of a a and b b . The total amount of match sticks used can be evaluated as:

612 = b ( a + 1 ) + a ( b + 1 ) = 2 a b + a + b 612 = b(a+1) + a(b+1) = 2ab + a + b

Then let's generalize the formula for square of side x x and let a = x c a = x - c and b = x + d b = x + d for some positive integers c c and d d .

Hence, 2 x ( x + 1 ) = 2 ( x c ) ( x + d ) + ( x c ) + ( x + d ) 2x(x+1) = 2(x-c)(x+d) + (x-c) + (x+d) .

0 = 2 ( d c ) x 2 c d + ( d c ) 0 = 2(d-c)x - 2cd +(d-c)

2 x = 2 c d d c 1 2x = \dfrac{2cd}{d-c} -1

Substitute x = 17 x = 17 , we will get: 35 ( d c ) = 2 c d 35(d-c) = 2cd .

Since 35 35 is odd, d c d-c is even.

Then let d c = 2 k d-c = 2k for some integer k k .

35 ( 2 k ) = 2 c ( c + 2 k ) 35(2k) = 2c(c+2k)

35 k = c ( c + 2 k ) 35k = c(c+2k)

0 = c 2 + ( 2 k ) c 35 k 0 = c^2 + (2k)c -35k

Solving for c c , we will get: c = 2 k ± 4 k 2 + 4 35 k 2 = k ± k 2 + 35 k c = \dfrac{-2k \pm \sqrt{4k^2 + 4\cdot 35k}}{2} = -k \pm \sqrt{k^2 + 35k} .

Since c c is an integer, the square root residue must also be an integer.

In order to maximize the area, the side difference must be as minimal as possible. Then k = 1 k = 1 applies.

Therefore, c = 5 c = 5 and d = 7 d = 7 : 35 × 2 = 2 × 5 × 7 35\times 2 = 2\times 5\times 7 .

As a result, a = x 5 = 17 5 = 12 a = x-5 = 17-5 = 12 and b = x + 7 = 17 + 7 = 24 b = x+7 = 17+7 = 24 .

Checking the answer: 612 = 2 a b + a + b = 2 × 12 × 24 + 12 + 24 = 576 + 36 612 = 2ab + a + b = 2\times 12\times 24 + 12 +24 = 576 + 36 , which is correct.

As a result, the square will have an area of 17 × 17 = 289 17\times 17 = 289 , and the rectangle will have an area of 12 × 24 = 288 12\times 24 = 288 .

Thus, the area difference is 289 288 = 1 289-288 = \boxed{1} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...