Removing matchsticks

The image below is made up of 57 matchsticks:

Define a move to be removing 3 matchsticks in any of the following shapes:

What is the largest number of successive moves that can be made?


The answer is 17.

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

Marco Brezzi
Aug 20, 2017

Consider the vertical matches, there are 24 24 of them. Every move removes 1 1 ( type 1 move ) or 2 2 ( type 2 move ) vertical matches. So the upper bound of consecutive moves is 24 24 . However any time we perform a type 1 move, we must remove one of the matches from the middle horizontal line. Since there are only 11 11 matches in the middle line, we can perform at most 11 11 type 1 moves.


Suppose you perform n 11 n\leq 11 type 1 moves, then you are left with 24 n 24-n vertical matches that you can use to perform (at most)

24 n 2 = 12 n 2 \left\lfloor\dfrac{24-n}{2}\right\rfloor=12-\left\lceil\dfrac{n}{2}\right\rceil

type 2 moves, with a total of

n + 12 n 2 n+12-\left\lceil\dfrac{n}{2}\right\rceil

moves, which doesn't get bigger than 17 \boxed{17}


A possible sequence of 17 17 moves:

. .

If n = 11 n=11 , we get 11 + 12 11 2 = 11 + 12 5 = 18 > 17 11+12- \lfloor \frac{11}{2} \rfloor =11+12-5=18>17 . However, 24 n 2 = 12 n 2 \left \lfloor \frac{24-n}{2} \right \rfloor = 12-\left \lceil \frac{n}{2} \right \rceil and 11 + 12 11 2 = 23 6 = 17 11+12-\left \lceil \frac{11}{2} \right \rceil=23-6=17 .

Tarmo Taipale - 3 years, 9 months ago

Exactly what I did

Khoa Nguyen - 3 years, 9 months ago

good job thanks 4 hlp

A Former Brilliant Member - 3 years, 9 months ago

I would argue that this should be in the "Intermediate" section instead, because it can be successfully done without a proof in a "reasonable amount of time" by brute force.

Dennis Rodman - 2 years, 3 months ago
Arjen Vreugdenhil
Aug 20, 2017

It is possible to make 17 moves , leaving only 57 17 × 3 = 6 57 - 17\times 3 = 6 matchsticks.

In the top row, remove \subset -shapes from left to right. This takes 11 moves and leaves only one vertical matchstick at the end.

In the bottom row, remove \cup -shapes from left to right. Between each two moves, a single horizontal matchstick at the bottom must be skipped. It takes 6 moves and leaves five matchsticks at the bottom.


More than 17 moves is impossible.

Define

  • a a = number of \subset -shaped moves (or mirror image);

  • b b = number of \cup -shaped moves in the bottom row and \cap -shaped moves in the top row.

  • c c = number of \cup -shaped moves in the top row and \cap -shaped moves in the bottom row.

There are three lines of 11 horizontal matchsticks and two rows of 12 vertical matchsticks.

  • Effect of moves on the middle line of horizontal matchsticks: a + c = M 11. a + c = M \leq 11.

  • Effect of moves on the top and bottom lines of horizontal matchsticks: a + b = N 22. a + b = N \leq 22.

  • Effect of moves on the vertical matchsticks: a + 2 b + 2 c = V 24. a + 2b + 2c = V \leq 24.

Solve this system, so we can analyze the number of moves ( a , b , c ) (a,b,c) in terms of matchsticks ( M , N , V ) (M,N,V) : [ 1 0 1 1 1 0 1 2 2 ] [ a b c ] = [ M N V ] [ a b c ] = 1 3 [ 2 2 1 2 1 1 1 2 1 ] [ M N V ] . \left[\begin{array}{ccc} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 1 & 2 & 2 \end{array}\right] \ \left[\begin{array}{c} a \\ b \\ c \end{array}\right] = \left[\begin{array}{c} M \\ N \\ V \end{array}\right]\ \ \ \therefore\ \ \ \left[\begin{array}{c} a \\ b \\ c \end{array}\right] = \frac 13 \left[\begin{array}{ccc} 2 & 2 & -1 \\ -2 & 1 & 1 \\ 1 & -2 & 1 \end{array}\right] \ \left[\begin{array}{c} M \\ N \\ V \end{array}\right].

Now let m = 11 M m = 11 - M , n = 22 N n = 22 - N , v = 24 V v = 24 - V represent the matchsticks that remain. We have [ a b c ] = 1 3 [ 2 2 1 2 1 1 1 2 1 ] [ 11 m 22 n 24 v ] = [ 14 8 3 ] 1 3 [ 2 2 1 2 1 1 1 2 1 ] [ m n v ] . \left[\begin{array}{c} a \\ b \\ c \end{array}\right] = \frac 13 \left[\begin{array}{ccc} 2 & 2 & -1 \\ -2 & 1 & 1 \\ 1 & -2 & 1 \end{array}\right] \ \left[\begin{array}{c} 11-m \\ 22-n \\ 24-v \end{array}\right] = \left[\begin{array}{c} 14 \\ 8 \\ -3 \end{array}\right] - \frac 13 \left[\begin{array}{ccc} 2 & 2 & -1 \\ -2 & 1 & 1 \\ 1 & -2 & 1 \end{array}\right] \ \left[\begin{array}{c} m \\ n \\ v \end{array}\right].

Note that c = 3 c = -3 - \dots : however, c c cannot be negative. This means that 1 3 ( m 2 n + v ) 3 2 n m v 9. \frac 1 3(m - 2n + v) \leq -3\ \ \ \therefore\ \ \ \ 2n - m - v \geq 9. We wish to minimize n , m , v 0 n, m, v \geq 0 ; clearly, this requires n = 5 n = 5 and either m = 1 m = 1 or v = 1 v = 1 .

Thus we have shown that we end up with at least 5 horizontal matchsticks in top or bottom line; there cannot be more than 17 moves.

To finish up, choosing n = 5 n = 5 and v = 1 v = 1 , we get [ a b c ] = 1 3 [ 2 2 1 2 1 1 1 2 1 ] [ 11 17 23 ] = [ 11 6 0 ] . \left[\begin{array}{c} a \\ b \\ c \end{array}\right] = \frac 13 \left[\begin{array}{ccc} 2 & 2 & -1 \\ -2 & 1 & 1 \\ 1 & -2 & 1 \end{array}\right] \ \left[\begin{array}{c} 11 \\ 17 \\ 23 \end{array}\right] = \left[\begin{array}{c} 11 \\ 6 \\ 0 \end{array}\right]. This is the situation I described at the top of my solution.

Alternatively, with n = 5 n = 5 and m = 1 m = 1 , [ a b c ] = 1 3 [ 2 2 1 2 1 1 1 2 1 ] [ 10 17 24 ] = [ 10 7 0 ] . \left[\begin{array}{c} a \\ b \\ c \end{array}\right] = \frac 13 \left[\begin{array}{ccc} 2 & 2 & -1 \\ -2 & 1 & 1 \\ 1 & -2 & 1 \end{array}\right] \ \left[\begin{array}{c} 10 \\ 17 \\ 24 \end{array}\right] = \left[\begin{array}{c} 10 \\ 7 \\ 0 \end{array}\right]. Challenge: Can someone describe the solution corresponding to these values?

Great solution. It was very helpful to separate the horizontal sticks into two sets: the middle row (11) and the top/bottom rows (22). That made the logic much clearer to me.

Note: 2n - m - v >= 9 is an inequality, so we don't necessarily have to hit 9 exactly to get a minimum value of remaining matchsticks (n + m + v). But we do have to make sure the number of remaining matchsticks is a multiple of 3. That means a third minimal option is n=6, m=0, v=0. This corresponds to a=10, b=6, c=1 for the types of moves. (I think any solution with a=10, b=7, c=0 can pretty easily be converted to a solution with a=10, b=6, c=1.)

Matthew Feig - 3 years, 9 months ago

Log in to reply

Great observation! Note that an integer solution ( a , b , c ) (a,b,c) of the system of inequalities does not guarantee that it can actually be done: my method does not account for geometric relationships apart from horizontal/vertical and middle/outside rows.

Arjen Vreugdenhil - 3 years, 9 months ago

Log in to reply

True. Your solution for {a=11, b=6, c=0} can be tweaked to show that {a=10, b=7, c=0} and {a=10, b=6, c=1} are also doable. Start with 11 C-shapes on the top row and 6 U-shapes on the bottom row. The final C-shape (next to the remaining vertical matchstick) is free to be rotated into any orientation: either a U-shape or an upside-down-U-shape.

Matthew Feig - 3 years, 9 months ago
Peter Byers
Aug 23, 2017

There are 11 horizontal matches that are "in the middle" (i.e. are not at the bottom or top) and there are 24 vertical matches. So those two groups have a combined total of 35 matches, out of which at least 2 must be removed by each move, which proves that there cannot be more than 17 moves.

My method for making 17 moves was similar to Marco Brezzi's.

sir if a I perform a move in which I remove all the top and bottom matches (complete first and last row) , it would ve a possible move with n=22

Divyanshu Agarwal - 3 years, 9 months ago
Rodion Zaytsev
Aug 25, 2017

Just induct it.

I mean contradict it.

Rodion Zaytsev - 3 years, 9 months ago

Log in to reply

Contradict what?

Pi Han Goh - 3 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...