2008 AMC 10B Problem 15
How many right triangles have integer leg lengths and and a hypotenuse of length , where ?
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 and together. Expanding it shows that alone decides .
1. The hypotenuse is , so
2. Subtract from both sides:
3. is odd, so is odd, so is odd. And for every odd , is even, so comes out a whole number.
4. List the odd values of and the each one gives:
- gives , which is not a triangle, so drop it.
- gives , which is too big. Larger make even bigger.
- That leaves : six triangles, such as -- and --.
The answer is .
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, --, --, --, 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 , so
Thus is odd, so is odd, and is automatically an integer for odd . Each odd therefore yields exactly one triangle, provided is a positive integer below .
Positivity: gives , which is not a triangle, so .
Bound: means , so , giving . The odd values are , with .
That is triangles. The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 7: Algebra With Integers
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Geometry, Chapter 4: Perimeter and Area (§4.2)
- Introduction to Algebra, Chapter 11: Special Factorizations
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.