返回题库

AIME 2024 I · 第 6 题

AIME 2024 I — Problem 6

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Consider the paths of length 1616 that follow the lines from the lower left corner to the upper right corner on an 8×88\times 8 grid. Find the number of such paths that change direction exactly four times, as in the examples shown below.

AIME diagram

解析

Solution 1

We divide the path into eight “RR” movements and eight “UU” movements. Five sections of alternating RURURRURUR or URURUURURU are necessary in order to make four “turns" because each transition from RR to UU or from UU to RR is one turn. Without loss of generality, we use the first case and multiply by 22 (because we can convert each path in the first case to one in the second case by turning RR's to UU's and UU's to RR's).

For UU, let aa be the length of the first block of UU's and bb be the second block of UU's. There are eight UU's in total, so we have to have a+b=8a+b=8. We have seven ordered pairs of such positive integers (a,b)(a,b), specifically (1,7),(2,6),,(6,2),(7,1)(1,7),(2,6),\ldots,(6,2),(7,1).

For RR, we subtract 11 from each block of RR's (because each block of RR's must have length at least 11, and to use stars and bars we have to have minimum length 00). From here, we use stars and bars to get (75)=21{7 \choose 5}=21.

Thus our answer is 7212=2947\cdot21\cdot2=\boxed{294}.

~eevee9406

Solution 2

Draw a few examples of the path. However, notice one thing in common - if the path starts going up, there will be 3 "segments" where the path goes up, and two horizontal "segments." Similarly, if the path starts going horizontally, we will have three horizontal segments and two vertical segments. Those two cases are symmetric, so we only need to consider one. If our path starts going up, by stars and bars, we can have (72)\binom{7}{2} ways to split the 8 up's into 3 lengths, and have (71)\binom{7}{1} to split the 8-horizontals into 2 lengths. We multiply them together, and multiply by 2 for symmetry, giving us 2(72)(71)=294.2*\binom{7}{2}*\binom{7}{1}=294.

~nathan27 (original by alexanderruan)

Solution 3

Notice that the RURURRURUR case and the URURUURURU case is symmetrical. WLOG, let's consider the RURUR case.

Now notice that there is a one-to-one correspondence between this problem and the number of ways to distribute 8 balls into 3 boxes and also 8 other balls into 2 other boxes, such that each box has a nonzero amount of balls.

There are (8+232){8+2-3 \choose 2} ways for the first part, and (8+121){8+1-2 \choose 1} ways for the second part, by stars and bars.

The answer is 2(72)(71)=2942\cdot {7 \choose 2} \cdot {7 \choose 1} = \boxed{294}.

~northstar47

Feel free to edit this solution

Solution 4

Starting at the origin, you can either first go up or to the right. If you go up first, you will end on the side opposite to it (the right side) and if you go right first, you will end up on the top. It can then be observed that if you choose the turning points in the middle 7×77 \times 7 grid, that will automatically determine your start and ending points. For example, in the diagram if you choose the point (3,2)(3,2) and (5,3)(5,3), you must first move three up or two right, determining your first point, and move 5 up or 3 right, determining your final point. Knowing this is helpful because if we first move anywhere horizontally, we have 77 points on each column to choose from and starting from left to right, we have 6,5,4,3,2,16,5,4,3,2,1 points on that row to choose from. This gives us 7(6)+7(5)+7(4)+7(3)+7(2)+7(1)7(6)+7(5)+7(4)+7(3)+7(2)+7(1) which simplifies to 7217\cdot21. The vertical case is symmetrical so we have 7212=2947\cdot21\cdot2 = \boxed{294}

~KEVIN_LIU

Solution 5

As in Solution 1, there are two cases: RURURRURUR or URURUURURU. We will work with the first case and multiply by 22 at the end. We use stars and bars; we can treat the RRs as the stars and the UUs as the bars. However, we must also use stars and bars on the UUs to see how many different patterns of bars we can create for the reds. We must have 11 bar in 88 blacks, so we use stars and bars on the equation

x+y=8x + y = 8 . However, each divider must have at least one black in it, so we do the change of variable x=x1x' = x-1 and y=x1y' = x-1. Our equation becomes

x+y=6x' + y' = 6 . By stars and bars, this equation has (6+211)=7\binom{6 + 2 - 1}{1} = 7 valid solutions. Now, we use stars and bars on the reds. We must distribute two bars amongst the reds, so we apply stars and bars to

x+y+z=8x + y + z = 8 . Since each group must have one red, we again do a change of variables with x=x1x' = x-1, y=y1y' = y-1, and z=z1z' = z-1. We are now working on the equation

x+y+z=5x' + y' + z' = 5 . By stars and bars, this has (5+312)=21\binom{5 + 3 - 1}{2} = 21 solutions. The number of valid paths in this case is the number of ways to create the bars times the number of valid arrangements of the stars given fixed bars, which equals 217=14721 \cdot 7 = 147. We must multiply by two to account for both cases, so our final answer is 1472=294147 \cdot 2 = \boxed{294}.

~ cxsmi

Solution 6

We note that we either start with RR or UU and that these cases are symmetric, so we will simply consider the RR case and multiply by 22 at the end. We make the key observation that making a path is the same as choosing two vertical lines and one horizontal line to mark our path; this gives us a unique path. Because we change directions exactly 4 times, we must travel at least 1 unit before turning, and we also must end by traveling at least one unit, so we cannot choose vertical lines that are on the edge of our grid. Similarly, we cannot do that for the horizontal line. Our final answer is simply choosing 2 vertical lines from 7 total, and choosing one horizontal line from 7 total, all multiplied by two. 2(72)(71)=294.2 \cdot \binom{7}{2} \cdot \binom{7}{1} = \boxed{294}.

~those who know

Solution 7

AIME diagram

Our path must either go right, up, right, up, and right (RURUR) or up, right, up, right, and up (URURU). We will consider the RURUR case and multiply by 2 since they're symmetrical.

Label the xx-axis from 0 to 8, starting at the origin and ending at the edge. For the first move (right), we can stop at point 1, 2, 3, 4, 5, 6, or 7.

Let's consider the choices for the first and third rightward moves. If we stop at point 7 on the first rightward move, when we get to the third move, we will have 0 choices for choosing a point to go right until; no matter what we do, if we stop at point 7 on the first move, the path will never have more than three turns (see diagram). If we stop at point 6, we will have 1 choice for the third move (we can stop going right until one point before the right edge of the grid for the third move and our path will have 4 turns). If we stop at point 5, we can stop going right until one or two points before the right edge of the grid for the third move. As we continue to move down points, the number of choices for the third rightward move increases by 1. This pattern continues until we stop at point 1 on the first move and have 6 choices for the third move. So, for the first and third moves, we have a total of

0+1+2+3+4+5+6=672=210 + 1 + 2 + 3 + 4 + 5 + 6 = \frac{6 \cdot 7}{2} = 21 choices.

For the second move (upward), we always have 7 choices to stop at (the top, one point before the top, two points before the top... 1 point from the bottom), and the fourth move will always have 1 choice, which is the move that reaches the final point.

Finally, we multiply by 2 to account for the URURU case, which gives us a total of 2172=29421 \cdot 7 \cdot 2 = \boxed{294} paths.

~grogg007

Video Solution(Quick, fast, and easy! Under 3 min and 30 seconds)

https://youtu.be/SunInyKZpxk

~MC

Video Solution

https://youtu.be/6QIP4_EYZcM

~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)

Fast Video Solution (no stars and bars)

https://youtu.be/BGyRj4yZoAI ~Anton Levonian (Do Math or Go Home)