AMC 10 Step by Step

2025 AMC 10A Problem 25

P21-25~12 minPrint

A point PP is chosen at random inside square ABCDABCD . The probability that AP‾\overline{AP} is neither the shortest nor the longest side of △APB\triangle APB can be written as a+bπ−cde\frac{a + b \pi - c \sqrt{d}}{e} , where a,b,c,d,a, b, c, d, and ee are positive integers, gcd(a,b,c,e)=1\text{gcd}(a, b, c, e) = 1 , and dd is not divisible by the square of a prime. What is a+b+c+d+ea+b+c+d+e ?

Log in to save your progress.
Show solution without answering

Key insight

Whether AP beats BP depends on the square's vertical middle line; whether AP beats AB depends on a quarter circle around A. AP is the middle length in two regions.

Solution

The probability is an area. Split the square into regions where APAP is the middle length, and add up their areas.

  1. Set up. Let the square have side 11, with A=(0,0)A = (0, 0), B=(1,0)B = (1, 0), C=(1,1)C = (1, 1), D=(0,1)D = (0, 1), and P=(x,y)P = (x, y) inside it. The triangle APBAPB has sides APAP, BPBP and AB=1AB = 1.

2. What "neither shortest nor longest" means. APAP must be the middle length. That can happen in two ways:
- Case 1: BP<AP<1BP < AP < 1 (the side BPBP is shortest, ABAB is longest);
- Case 2: 1<AP<BP1 < AP < BP (the side ABAB is shortest, BPBP is longest).

3. Draw the two dividing curves. Each comparison splits the square along a curve, so draw both.
- APAP versus BPBP: points that are equally far from AA and BB lie on the vertical line x=12x = \frac12. To the right of it, PP is closer to BB, so BP<APBP < AP. To the left, AP<BPAP < BP.
- APAP versus 11: points at distance 11 from AA lie on the quarter circle with center AA and radius 11, running from BB to DD. Inside it, AP<1AP < 1; outside it (the corner near CC), AP>1AP > 1.

4. Read off the two cases.
- Case 1 is the part of the quarter circle to the right of the line x=12x = \frac12.
- Case 2 is the part of the left half of the square that is outside the quarter circle. This is a thin sliver up near corner DD.

5. One shared piece. Let LL be the area of the part of the quarter circle to the left of the line x=12x = \frac12. The whole quarter circle has area π4\frac{\pi}{4} and the left half of the square has area 12\frac12, so
Case 1=π4−L,Case 2=12−L.\text{Case 1} = \frac{\pi}{4} - L, \qquad \text{Case 2} = \frac12 - L.
Together they give π4+12−2L\dfrac{\pi}{4} + \dfrac12 - 2L.

6. Find LL. The line x=12x = \frac12 meets the quarter circle at (12,32)\left(\frac12, \frac{\sqrt3}{2}\right) (check: 14+34=1\frac14 + \frac34 = 1). The segment from AA to this point has length 11 and its horizontal part is 12\frac12, so it makes a 60∘60^\circ angle with AB‾\overline{AB} (a 3030-6060-9090 triangle). Cut LL along this segment into two pieces:
- a right triangle with corners (0,0)(0, 0), (12,0)\left(\frac12, 0\right), (12,32)\left(\frac12, \frac{\sqrt3}{2}\right), with area 12⋅12⋅32=38\frac12 \cdot \frac12 \cdot \frac{\sqrt3}{2} = \frac{\sqrt3}{8};
- a pie slice of the circle from 60∘60^\circ to 90∘90^\circ. That is 30360=112\frac{30}{360} = \frac{1}{12} of a full circle of area π\pi, so its area is π12\frac{\pi}{12}.

So L=38+π12L = \dfrac{\sqrt3}{8} + \dfrac{\pi}{12}.

7. Put it together.
π4+12−2(38+π12)=π4−π6+12−34=π12+12−34=6+π−3312.\frac{\pi}{4} + \frac12 - 2\left(\frac{\sqrt3}{8} + \frac{\pi}{12}\right) = \frac{\pi}{4} - \frac{\pi}{6} + \frac12 - \frac{\sqrt3}{4} = \frac{\pi}{12} + \frac12 - \frac{\sqrt3}{4} = \frac{6 + \pi - 3\sqrt3}{12}.
The square has area 11, so this is the probability (about 0.330.33).

8. Read off the numbers. a=6a = 6, b=1b = 1, c=3c = 3, d=3d = 3, e=12e = 12. The only number dividing all of 6,1,3,126, 1, 3, 12 is 11, and 33 has no square factor. So
a+b+c+d+e=6+1+3+3+12=25.a + b + c + d + e = 6 + 1 + 3 + 3 + 12 = 25.

The answer is (A) 25\boxed{\textbf{(A)}\ 25}.

Why this works

Putting three lengths in order means comparing them two at a time, and each comparison is a curve in the square: "closer to AA or to BB" is the middle line, and "closer or farther than 11 from AA" is a circle. Two curves cut the square into four regions, and "APAP in the middle" is two of them, one on each side of the line. Every region here is built from triangles and pie slices, so no advanced tools are needed.

Alternative approach

Work out each case on its own. This takes a minute longer, but it shows how small Case 2 is, which is why it is so easy to forget.

  • Case 1: π4−38−π12=π6−38≈0.307\dfrac{\pi}{4} - \dfrac{\sqrt3}{8} - \dfrac{\pi}{12} = \dfrac{\pi}{6} - \dfrac{\sqrt3}{8} \approx 0.307.
  • Case 2: 12−38−π12≈0.022\dfrac12 - \dfrac{\sqrt3}{8} - \dfrac{\pi}{12} \approx 0.022.

Their sum is about 0.3290.329, which matches 6+π−3312\dfrac{6 + \pi - 3\sqrt3}{12}.

Concise solution

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

Take the square to have side 11, with A=(0,0)A = (0,0), B=(1,0)B = (1,0), C=(1,1)C = (1,1), D=(0,1)D = (0,1), and let P=(x,y)P = (x,y) with 0<x,y<10 < x,y < 1. The three sides of △APB\triangle APB are APAP, BPBP and AB=1AB = 1. Since PP is not on line ABAB, the triangle is genuine, and "neither shortest nor longest" simply means APAP is strictly the middle one of the three lengths. So either
Case 1: BP<AP<1,orCase 2: 1<AP<BP.\textbf{Case 1: } BP < AP < 1, \qquad \text{or} \qquad \textbf{Case 2: } 1 < AP < BP.

Two loci do all the work. AP=BPAP = BP is the perpendicular bisector x=12x = \tfrac12, with BP<APBP < AP on the right and AP<BPAP < BP on the left. AP=1AP = 1 is the quarter of the unit circle centred at AA that lies in the square, with AP<1AP < 1 inside it.

So Case 1 is the part of the quarter disc with x>12x > \tfrac12, and Case 2 is the part of the left half of the square lying outside the quarter disc.

Let LL be the area of the piece of the quarter disc with x<12x < \tfrac12. The quarter disc has area π4\tfrac{\pi}{4} and the left half of the square has area 12\tfrac12, so
[Case 1]=π4−L,[Case 2]=12−L,[\text{Case 1}] = \frac{\pi}{4} - L, \qquad [\text{Case 2}] = \frac12 - L,
and the probability sought is π4+12−2L\dfrac{\pi}{4} + \dfrac12 - 2L.

Computing LL. The line x=12x = \tfrac12 meets the unit circle at (12,32)\left(\tfrac12, \tfrac{\sqrt3}{2}\right), a point at angle 60∘60^\circ from AA. Split LL along the radius to that point:

  • the right triangle with vertices (0,0)(0,0), (12,0)\left(\tfrac12, 0\right), (12,32)\left(\tfrac12, \tfrac{\sqrt3}{2}\right), of area 12⋅12⋅32=38\tfrac12 \cdot \tfrac12 \cdot \tfrac{\sqrt3}{2} = \tfrac{\sqrt3}{8};
  • the circular sector from 60∘60^\circ to 90∘90^\circ, of area 30360π=π12\tfrac{30}{360}\pi = \tfrac{\pi}{12}.

Hence L=38+π12L = \dfrac{\sqrt3}{8} + \dfrac{\pi}{12}, and

π4+12−2(38+π12)=π4−π6+12−34=π12+12−34=6+π−3312.\frac{\pi}{4} + \frac12 - 2\left(\frac{\sqrt3}{8} + \frac{\pi}{12}\right) = \frac{\pi}{4} - \frac{\pi}{6} + \frac12 - \frac{\sqrt3}{4} = \frac{\pi}{12} + \frac12 - \frac{\sqrt3}{4} = \frac{6 + \pi - 3\sqrt3}{12}.

The area of the square is 11, so this is the probability; numerically it is about 0.3290.329, which is a plausible size for the region. Reading off a=6a = 6, b=1b = 1, c=3c = 3, d=3d = 3, e=12e = 12 (and gcd⁡(6,1,3,12)=1\gcd(6,1,3,12) = 1, d=3d=3 squarefree),
a+b+c+d+e=6+1+3+3+12=25.a+b+c+d+e = 6+1+3+3+12 = 25.

The answer is (A) 25\boxed{\textbf{(A)}\ 25}.

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.