AMC 10 Step by Step

2025 AMC 10B Problem 25

P21-25~9 minPrint

Square ABCDABCD has sides of length 44 . Points PP and QQ lie on AD‾\overline{AD} and CD‾\overline{CD} , respectively, with AP=85AP=\frac{8}{5} and DQ=103DQ=\frac{10}{3} . A path begins along the segment from PP to QQ and continues by reflecting against the sides of ABCDABCD (with congruent incoming and outgoing angles). If the path hits a vertex of the square, it terminates there; otherwise it continues forever. At which vertex does the path terminate? figure

Log in to save your progress.
Show solution without answering

Key insight

Flip the square instead of bouncing the path. The path becomes one straight line through a grid of squares, ending at the first grid corner it meets.

Solution

1. Set up coordinates. Put A=(0,0)A = (0,0), B=(4,0)B = (4,0), C=(4,4)C = (4,4), D=(0,4)D = (0,4), as in the figure. ADAD is the left side and DCDC is the top. So
P=(0,85),Q=(103,4).P = \left(0, \tfrac85\right), \qquad Q = \left(\tfrac{10}{3}, 4\right).

  1. Unfold instead of bouncing. When the path hits a side, flip the whole square across that side, like a mirror image. In the flipped copy, the bounced path simply keeps going in a straight line. Doing this at every bounce fills the plane with copies of the square in a grid of 4×44 \times 4 cells, and the whole bouncing path becomes one straight line starting at PP.

The corners of all the copies are the grid points whose coordinates are both multiples of 44. So the path ends at a vertex exactly when the straight line hits a grid point (4m,4n)(4m, 4n).

3. The straight line. From PP to QQ the path goes 103\frac{10}{3} across and 4−85=1254 - \frac85 = \frac{12}{5} up. Its slope is
12/510/3=3650=1825,\frac{12/5}{10/3} = \frac{36}{50} = \frac{18}{25},
so the line is y=85+1825xy = \frac85 + \frac{18}{25}x.

4. Find the first grid point. Put x=4mx = 4m and y=4ny = 4n:
4n=85+72m25.4n = \frac85 + \frac{72m}{25}.
Multiply by 2525: 100n=40+72m100n = 40 + 72m. Divide by 44:
25n=10+18m.25n = 10 + 18m.
So 10+18m10 + 18m must be a multiple of 2525. Try m=1,2,3,…m = 1, 2, 3, \ldots: the values are 28,46,64,82,10028, 46, 64, 82, 100. The first multiple of 2525 is 100100, at m=5m = 5, which gives n=4n = 4. The line first hits the grid point (20,16)(20, 16), so the path does end at a vertex.

5. Which vertex? Each flip across a vertical side swaps left and right. In the unfolded picture, the original left side ADAD (x=0x = 0) shows up at x=0,8,16,…x = 0, 8, 16, \ldots (even multiples of 44), and the right side BCBC (x=4x = 4) shows up at x=4,12,20,…x = 4, 12, 20, \ldots (odd multiples). The same goes for bottom and top with yy.
- x=20=4×5x = 20 = 4 \times 5, an odd multiple, so the vertex is on the right side, x=4x = 4.
- y=16=4×4y = 16 = 4 \times 4, an even multiple, so the vertex is on the bottom, y=0y = 0.

The vertex is (4,0)(4, 0), which is BB.

The answer is (B) B\boxed{\textbf{(B)}\ B}.

Why this works

A path that bounces off walls with equal angles is a straight line in disguise. Flipping the square instead of the path "unfolds" it, and all the bounces become easy questions about where a line crosses a grid. Whether the path ever reaches a corner becomes one equation in whole numbers, and which corner it reaches is decided by whether the grid point is an odd or even number of squares across and up. This trick works for any billiard-table problem in a rectangle.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Set coordinates as in the figure: A=(0,0)A = (0,0), B=(4,0)B = (4,0), C=(4,4)C = (4,4), D=(0,4)D = (0,4). Then AD‾\overline{AD} is the left side and CD‾\overline{CD} the top side, so
P=(0,85),Q=(103,4).P = \left(0, \tfrac85\right), \qquad Q = \left(\tfrac{10}{3}, 4\right).

Unfold. Instead of reflecting the ray at a side, reflect the square. Repeatedly reflecting the square in its sides tiles the plane with copies, one in each cell
[4i, 4i+4]×[4j, 4j+4],[4i,\,4i+4] \times [4j,\,4j+4],
and under this unfolding the bouncing path becomes a single straight ray from PP. A bounce is just the moment the ray crosses from one cell to the next, and the images of the four vertices of the square are exactly the lattice points (4m,4n)(4m, 4n). So:

> the path terminates at a vertex precisely when the straight ray from PP first meets a point (4m,4n)(4m, 4n).

The ray. Its direction is
Q−P=(103,  4−85)=(103,  125),slope=12/510/3=1825,Q - P = \left(\tfrac{10}{3},\; 4 - \tfrac85\right) = \left(\tfrac{10}{3},\; \tfrac{12}{5}\right), \qquad \text{slope} = \frac{12/5}{10/3} = \frac{18}{25},
so the ray is y=85+1825xy = \tfrac85 + \tfrac{18}{25}x with xx increasing.

When does it hit a lattice point? Put x=4mx = 4m and y=4ny = 4n with m,nm, n positive integers:
4n=85+72m25  ⟹  100n=40+72m  ⟹  25n=10+18m.4n = \frac85 + \frac{72m}{25} \implies 100n = 40 + 72m \implies 25n = 10 + 18m .
Reducing modulo 2525: 18m≡−1018m \equiv -10. Since 18⋅7=126≡1(mod25)18 \cdot 7 = 126 \equiv 1 \pmod{25}, multiply by 77:
m≡−70≡5(mod25).m \equiv -70 \equiv 5 \pmod{25}.
The smallest positive solution is m=5m = 5, which gives n=10+9025=4n = \dfrac{10 + 90}{25} = 4. So the ray first reaches a lattice point at (20,16)(20, 16), and the path does terminate.

Which vertex? Folding back, the copies alternate orientation, so the image point (4m,4n)(4m, 4n) corresponds to the corner of the original square whose xx-coordinate is 00 when mm is even and 44 when mm is odd, and whose yy-coordinate is 00 when nn is even and 44 when nn is odd. Here m=5m = 5 is odd and n=4n = 4 is even, so the corner is (4,0)(4, 0), which is BB.

The answer is (B) B\boxed{\textbf{(B)}\ B}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.