AMC 10 Step by Step

2008 AMC 10B Problem 15

P11-15~3 minPrint

How many right triangles have integer leg lengths aa and bb and a hypotenuse of length b+1b+1 , where b<100b<100 ?

Log in to save your progress.
Show solution without answering

Key insight

The Pythagorean theorem simplifies to a squared equals 2b plus 1. So a is odd, and b stays below 100 only up to a = 13.

Solution

The Pythagorean theorem ties aa and bb together. Expanding it shows that aa alone decides bb.

1. The hypotenuse is b+1b + 1, so
a2+b2=(b+1)2=b2+2b+1.a^2 + b^2 = (b + 1)^2 = b^2 + 2b + 1.
2. Subtract b2b^2 from both sides:
a2=2b+1,sob=a2−12.a^2 = 2b + 1, \qquad\text{so}\qquad b = \frac{a^2 - 1}{2}.
3. 2b+12b + 1 is odd, so a2a^2 is odd, so aa is odd. And for every odd aa, a2−1a^2 - 1 is even, so bb comes out a whole number.
4. List the odd values of aa and the bb each one gives:

aa1133557799111113131515
bb004412122424404060608484112112
  1. a=1a = 1 gives b=0b = 0, which is not a triangle, so drop it.
  2. a=15a = 15 gives b=112b = 112, which is too big. Larger aa make bb even bigger.
  3. That leaves a=3,5,7,9,11,13a = 3, 5, 7, 9, 11, 13: six triangles, such as 33-44-55 and 55-1212-1313.

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

Why this works

When two sides differ by a fixed amount, write one in terms of the other and expand. The squares cancel and leave a simple equation. Then an odd/even check tells you which values work, and the size limit tells you when to stop. The triangles found here, 33-44-55, 55-1212-1313, 77-2424-2525, are a well-known family where the hypotenuse is one more than a leg.

Concise solution

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

The Pythagorean theorem gives a2+b2=(b+1)2=b2+2b+1a^2 + b^2 = (b + 1)^2 = b^2 + 2b + 1, so
a2=2b+1.a^2 = 2b + 1.
Thus a2a^2 is odd, so aa is odd, and b=a2−12b = \dfrac{a^2 - 1}{2} is automatically an integer for odd aa. Each odd aa therefore yields exactly one triangle, provided bb is a positive integer below 100100.

Positivity: a=1a = 1 gives b=0b = 0, which is not a triangle, so a≥3a \ge 3.

Bound: b<100b < 100 means a2−1<200a^2 - 1 < 200, so a2<201a^2 < 201, giving a≤14a \le 14. The odd values are a=3,5,7,9,11,13a = 3, 5, 7, 9, 11, 13, with b=4,12,24,40,60,84b = 4, 12, 24, 40, 60, 84.

That is 66 triangles. The answer is (A) 6\boxed{\textbf{(A)}\ 6}.

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.