MathsReadCompetitive mathematics
Pattern recognition · integer answermedium15 min

Consecutive Pythagorean legs

Pythagorean Patterns

A Pythagorean triple consists of positive integers a < b < c with a²+b²=c². Find the smallest c for which b=a+1 and a>50. Earlier consecutive-leg triples include (3,4,5) and (20,21,29), but these do not meet a>50. Submit c as one integer.

Learning goal: Find and justify the first admissible consecutive-leg Pythagorean triple.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

Write a²+(a+1)²=c².

Hint 2

Look for consecutive-leg triples larger than (20,21,29).

Hint 3

The next such triple is (119,120,169); check that the smaller leg exceeds 50 and that no earlier one does.

Common mistake to avoid

Using a non-primitive multiple or a pair of legs that are not consecutive.

How to approach this problem

Substitute the consecutive-leg relation into the squared hypotenuse formula. Test whether the result is a perfect square, scanning the shorter leg in order.

Worked example with different values

For shorter leg 6, 6²+7²=85 is between 9² and 10², so it does not form an integer triple.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →