HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A carpenter has a straight piece of length 24 cm for one leg of a right triangle…
HardMathematicsHigh School (11–12)Number TheoryNumericalOlympiad

A carpenter has a straight piece of length 24 cm for one leg of a right triangle…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A carpenter has a straight piece of length 242424 cm for one leg of a right triangle. The other leg and the hypotenuse must also be whole numbers of centimetres. Find every such triangle by factoring 242=(c−b)(c+b)24^2 = (c - b)(c + b)242=(c−b)(c+b) into two factors of the same parity. Give the number of triangles, the number of them that are primitive and the longest possible hypotenuse.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

cm
Need a reminder? The key ideaShowHide

Every primitive triple is m2−n2m^2 - n^2m2−n2, 2mn2mn2mn, m2+n2m^2 + n^2m2+n2 with m>nm > nm>n coprime and of opposite parity. A triple with leg aaa comes from a factor pair

a2=(c−b)(c+b),\displaystyle a^2 = (c - b)(c + b),a2=(c−b)(c+b),

with both factors of the same parity.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Given. A leg a=24a = 24a=24 cm and a2=576=(c−b)(c+b)a^2 = 576 = (c - b)(c + b)a2=576=(c−b)(c+b).

Step 1. Halve the factors. Both factors are even, so write c−b=2uc - b = 2uc−b=2u, c+b=2vc + b = 2vc+b=2v with uv=144uv = 144uv=144 and u<vu < vu<v.

Step 2. Pairs. 144144144 has 151515 divisors, so there are 777 pairs with u<vu < vu<v: (1,144)(1, 144)(1,144), (2,72)(2, 72)(2,72), (3,48)(3, 48)(3,48), (4,36)(4, 36)(4,36), (6,24)(6, 24)(6,24), (8,18)(8, 18)(8,18), (9,16)(9, 16)(9,16).

Step 3. The triangles. b=v−ub = v - ub=v−u and c=u+vc = u + vc=u+v give the other leg and hypotenuse: (143,145)(143, 145)(143,145), (70,74)(70, 74)(70,74), (45,51)(45, 51)(45,51), (32,40)(32, 40)(32,40), (18,30)(18, 30)(18,30), (10,26)(10, 26)(10,26), (7,25)(7, 25)(7,25), all in cm.

Step 4. Primitive ones. (24,143,145)(24, 143, 145)(24,143,145) and (7,24,25)(7, 24, 25)(7,24,25) share no factor. The others are multiples: for example (24,45,51)=3×(8,15,17)(24, 45, 51) = 3 \times (8, 15, 17)(24,45,51)=3×(8,15,17). So 222 are primitive.

Check. 242+1432=576+20 449=21 025=145224^2 + 143^2 = 576 + 20\,449 = 21\,025 = 145^2242+1432=576+20449=21025=1452.

Answer: 777 triangles, 222 primitive, and the longest hypotenuse is 145145145 cm.

Log in to save this for later
← All Problems
← A gardener spends exactly 345 units on plants: shrubs at 13 units each and herbs at 8 units each…Prove that the product abc of the three sides of every Pythagorean triple is a multiple of 60… →
More onNumber Theory

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2…Advanced
  2. Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…Advanced
  3. Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…Advanced
  4. Find all pairs of positive integers (x, y) with x² - y² = 945…Hard
  5. A teacher wants a list of every primitive Pythagorean triple whose hypotenuse is less than 100…Advanced
All problems on this topic →