Maths Olympiad Prep

Library / /177 of 183

, 2019

Combinatorics Difficulty 4.8 AIME Find the answer Canada

A dot starts at (20,19)(20,19). It can move one unit vertically or horizontally to one of the points (21,19), (19,19), (20,20)(21,19),~(19,19),~(20,20), or (20,18)(20,18). From there it can move two units in either direction that is perpendicular to the first move. All moves thereafter increase in length by one unit (three units, four units, five units, etc.) and must be perpendicular to the direction of the previous move. The dot stops after ten moves. Which of the following final locations is not possible?

Pick one

Solution

Solution 1

The ten moves have lengths 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

If the first move is vertical, then the five vertical moves have lengths 1, 3, 5, 7, 9 and the five horizontal moves have lengths 2, 4, 6, 8, 10.

If the first move is horizontal, then the five horizontal moves have lengths 1, 3, 5, 7, 9 and the five vertical moves have lengths 2, 4, 6, 8, 10.

If a horizontal move is to the right, then the length of the move is added to the xx-coordinate.

If a horizontal move is to the left, then the length of the move is subtracted from the xx-coordinate.

If a vertical move is up, then the length of the move is added to the yy-coordinate.

If a vertical move is down, then the length of the move is subtracted from the yy-coordinate.

Therefore, once the ten moves have been made, the change in one of the coordinates is a combination of adding and subtracting 1, 3, 5, 7, 9 and the change in the other coordinate is a combination of adding and subtracting 2, 4, 6, 8, 10.

For example, if the dot moves right 1, down 2, right 3, up 4, right 5, down 6, right 7, up 8, left 9, and up 10, then its final xx-coordinate is 20+1+3+5+79=2720 + 1 + 3 + 5 + 7 - 9 = 27 and its final yy-coordinate is 192+46+8+10=3319 - 2 + 4 - 6 + 8 + 10 = 33 making its final location (27,33)(27,33), which is choice (A). This means that choice (A) is not the answer.

We note that, in the direction with the moves of even length, the final change in coordinate will be even, since whenever we add and subtract even integers, we obtain an even integer.

In the other direction, the final change in coordinate will be odd, since adding or subtracting an odd number of odd integers results in an odd integer. (Since odd plus odd is even and odd minus odd is even, then after two moves of odd length, the change to date is even, and after four moves of odd length, the change to date is still even, which means that the final change after the fifth move of odd length is completed must be odd, since even plus or minus odd is odd.)

In the table below, these observations allow us to determine in which direction to put the moves of odd length and in which direction to put the moves of even length.

Choice
Change in xx
Change in yy
Horizontal moves
Vertical moves

(A) (27,33)(27,33)
7
14
1+3+5+79=71 + 3 + 5 + 7 - 9 = 7
2+46+8+10=14-2 + 4 - 6 + 8 + 10 = 14

(B) (30,40)(30,40)
10
21
246+8+10=102 - 4 - 6 + 8 + 10 = 10

(C) (21,21)(21,21)
1
2
13+5+79=11 - 3 + 5 + 7 - 9 = 1
2+468+10=22 + 4 - 6 - 8 + 10 = 2

(D) (42,44)(42,44)
22
25
24+6+8+10=222 - 4 + 6 + 8 + 10 = 22
1+3+5+7+9=251 + 3 + 5 + 7 + 9 = 25

(E) (37,37)(37,37)
17
18
13+5+7+9=17-1 - 3 + 5 + 7 + 9 = 17
2+46+8+10=182 + 4 - 6 + 8 + 10 = 18

Since each of the locations (A), (C), (D), and (E) is possible, then the location that is not possible must be (B).

We note that in the case of (B), it is the change in the yy-coordinate that is not possible to make.

In other words, we cannot obtain a total of 21 by adding and subtracting 1, 3, 5, 7, 9.

Can you see why?

Solution 2

Let aa be the horizontal change from the initial to the final position of the point and let bb be the vertical change from the initial to the final position.

For example, if a=5a=-5 and b=6b=6, the point’s final position is 55 units to the left and 66 units up from its original position of (20,19)(20,19).

Notice that if (x,y)(x,y) is the final position of the point, then aa and bb can be calculated as a+20=xa+20=x or a=x20a=x-20 and b+19=yb+19=y or b=y19b=y-19.

First, assume the initial move is in the horizontal direction.

This means the second move will be in the vertical direction, the third will be horizontal, and so on.

In all, the first, third, fifth, seventh, and ninth moves will be horizontal and the others will be vertical.

Also, the first move is by one unit, the second is by two units, the third is by three units, and so on, so the horizontal moves are by 11, 33, 55, 77, and 99 units.

Each of these moves is either to the left or the right.

If all of the horizontal moves are to the right, then a=1+3+5+7+9=25a=1+3+5+7+9=25.

If the point moves, left on the first move, right on the third, then left on the fifth, seventh, and ninth moves, aa will be 1+3579=19-1+3-5-7-9=-19.

In this case, the final position is 1919 units to the left of the initial position (and has potentially moved up or down, as well).

In each of the five horizontal moves, the point either moves to the left or to the right.

This means there are two choices (left or right) for each of the five horizontal moves, so there are 2×2×2×2×2=322\times 2\times 2\times 2\times 2=32 possible configurations similar to the examples above.

Going through these carefully, the table below computes all possible values of aa:

1+3+5+7+9=251+3+5+7+9=2313+5+7+9=1913+5+7+9=171+35+7+9=151+35+7+9=13135+7+9=9135+7+9=71+3+57+9=111+3+57+9=913+57+9=513+57+9=31+357+9=11+357+9=11357+9=51357+9=7\begin{aligned} 1+3+5+7+9 &= 25 \\ -1+3+5+7+9 &= 23 \\ 1-3+5+7+9 &= 19 \\ -1-3+5+7+9 &= 17 \\ 1+3-5+7+9 &= 15 \\ -1+3-5+7+9 &= 13 \\ 1-3-5+7+9 &= 9 \\ -1-3-5+7+9 &= 7 \\ 1+3+5-7+9 &= 11 \\ -1+3+5-7+9 &= 9 \\ 1-3+5-7+9 &= 5 \\ -1-3+5-7+9 &= 3 \\ 1+3-5-7+9 &= 1\\ -1+3-5-7+9 &= -1 \\ 1-3-5-7+9 &= -5 \\ -1-3-5-7+9 &= -7\end{aligned} 1+3+5+79=71+3+5+79=513+5+79=113+5+79=11+35+79=31+35+79=5135+79=9135+79=111+3+579=81+3+579=913+579=1313+579=151+3579=171+3579=1913579=2313579=25\begin{aligned} 1+3+5+7-9 &= 7 \\ -1+3+5+7-9 &= 5 \\ 1-3+5+7-9 &= 1 \\ -1-3+5+7-9 &= -1 \\ 1+3-5+7-9 &= -3 \\ -1+3-5+7-9 &= -5 \\ 1-3-5+7-9 &= -9 \\ -1-3-5+7-9 &= -11 \\ 1+3+5-7-9 &= -8 \\ -1+3+5-7-9 &= -9 \\ 1-3+5-7-9 &=-13 \\ -1-3+5-7-9 &= -15 \\ 1+3-5-7-9 &= -17 \\ -1+3-5-7-9 &= -19 \\ 1-3-5-7-9 &= -23 \\ -1-3-5-7-9 &= -25\end{aligned}

Some numbers appear more than once, but after inspecting the list, we see that when the first move is in the horizontal direction, aa can be any odd number between 25-25 and 2525 inclusive except for 21-21 and 2121.

When the first move is horizontal, the second, fourth, sixth, eighth, and tenth moves will be vertical and have lengths 22, 44, 66, 88, and 1010 units.

Using the same idea as the previous case, all 3232 possible values of bb when the first move is horizontal are calculated as follows:

2+4+6+8+10=302+4+6+8+10=2624+6+8+10=2224+6+8+10=182+46+8+10=182+46+8+10=14246+8+10=10246+8+10=62+4+68+10=142+4+68+10=1024+68+10=624+68+10=22+468+10=22+468+10=22468+10=62468+10=10\begin{aligned} 2+4+6+8+10 &= 30 \\ -2+4+6+8+10 &= 26 \\ 2-4+6+8+10 &= 22\\ -2-4+6+8+10 &= 18 \\ 2+4-6+8+10 &= 18 \\ -2+4-6+8+10 &= 14 \\ 2-4-6+8+10 &= 10 \\ -2-4-6+8+10 &= 6 \\ 2+4+6-8+10 &= 14 \\ -2+4+6-8+10 &= 10 \\ 2-4+6-8+10 &= 6 \\ -2-4+6-8+10 &= 2 \\ 2+4-6-8+10 &= 2 \\ -2+4-6-8+10 &= -2 \\ 2-4-6-8+10 &= -6\\ -2-4-6-8+10 &= -10 \\\end{aligned} 2+4+6+810=102+4+6+810=624+6+810=224+6+810=22+46+810=22+46+810=6246+810=10246+810=142+4+6810=62+4+6810=1024+6810=1424+6810=182+46810=182+46810=22246810=26246810=30\begin{aligned} 2+4+6+8-10 &= 10 \\ -2+4+6+8-10 &= 6 \\ 2-4+6+8-10 &= 2 \\ -2-4+6+8-10 &= -2 \\ 2+4-6+8-10 &= -2 \\ -2+4-6+8-10 &= -6 \\ 2-4-6+8-10 &= -10 \\ -2-4-6+8-10 &= -14 \\ 2+4+6-8-10 &= -6 \\ -2+4+6-8-10 &= -10 \\ 2-4+6-8-10 &= -14 \\ -2-4+6-8-10 &= -18 \\ 2+4-6-8-10 &= -18 \\ -2+4-6-8-10 &= -22 \\ 2-4-6-8-10 &= -26 \\ -2-4-6-8-10 &= -30 \end{aligned}

Again, some numbers appear more than once, but examination of the table shows that when the first move is horizontal, the possible values of bb are the even numbers between 30-30 and 3030 inclusive which are not multiples of 44.

We now begin to inspect the possible answers. The point in (A) is (27,33)(27,33).

In this case, we have that a=2720=7a=27-20=7 and b=3319=14b=33-19=14.

These values for aa and bb fit the descriptions above, so (27,33)(27,33) is a possible final position.

The point (21,21)(21,21) in (C) has a=1a=1 and b=2b=2, which means (21,21)(21,21) is also a possible final position for the point.

The point (37,37)(37,37) in (E) has a=17a=17 and b=18b=18, so this point is also a possible final position.

We have shown that the answer must be either (B) or (D).

Note that in both cases we have that aa is even and bb is odd, which means that if either of these points is a possible final position, the first move cannot have been horizontal, which means it must have been vertical.

If the first move is vertical, then the third, fifth, seventh, and ninth moves are also vertical, and the other moves are horizontal.

Going through similar analysis as before, we will see that the restrictions on aa and bb have switched.

That is, aa must be an even number between 30-30 and 3030 inclusive which is not a multiple of 44, and bb must be an odd number between 25-25 and 2525 inclusive other than 21-21 and 2121.

The point (42,44)(42,44) in (D) has a=22a=22 and b=25b=25, which is possible with a vertical first move.

However, the point (30,40)(30,40) in (B) has a=10a=10 and b=21b=21.

Since 2121 is not a possible value for bb, then (30,40)(30,40) is not a possible final position.

Want a route through all this instead of an archive? The track puts 2,444 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: CEMC, University of Waterloo, licensed CC-BY-NC-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.