Out of all the right triangles with all integer sides less than 1 0 1 0 , give the perimeter of the one that has an angle closest to 4 5 ° .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Great solution!
A right triangle with all integer sides can’t have an angle that is exactly 4 5 ° , because then its legs a and b would be equal, and by the Pythagorean Theorem its hypotenuse would be c = 2 a , a non-integer.
The next best scenario would be if the legs had a difference of 1 and with a is as large as possible, so that b = a + 1 . Then by the Pythagorean Theorem, a 2 + ( a + 1 ) 2 = c 2 , which rearranges ( 2 a + 1 ) 2 − 2 c 2 = − 1 , a negative Pell equation where c can be expressed recursively by the equation c n = 6 c n − 1 − c n − 2 , with c 0 = 1 and c 1 = 5 , and whose next few terms can be calculated as 2 9 , 1 6 9 , 9 8 5 , 5 7 4 1 , 3 3 4 6 1 , 1 9 5 0 2 5 , 1 1 3 6 6 8 9 , 6 6 2 5 1 0 9 , 3 8 6 1 3 9 6 5 , 2 2 5 0 5 8 6 8 1 , 1 3 1 1 7 3 8 1 2 1 , and 7 6 4 5 3 7 0 0 4 5 for c n < 1 0 1 0 (see sequence A001653 ). Using the largest c n value that is less than 1 0 1 0 , c = 7 6 4 5 3 7 0 0 4 5 , and a and b calculate to a = 5 4 0 6 0 9 3 0 0 3 and b = 5 4 0 6 0 9 3 0 0 4 .
Finally, we need to show that the ratio of legs b a = 5 4 0 6 0 9 3 0 0 4 5 4 0 6 0 9 3 0 0 3 is the closest to 1 for any other integer leg difference k ≥ 2 . Let’s say there is an integer leg difference k ≥ 2 such that a ′ + k a ′ > 5 4 0 6 0 9 3 0 0 4 5 4 0 6 0 9 3 0 0 3 . Then after some rearranging, a ′ > k ⋅ 5 4 0 6 0 9 3 0 0 3 > 1 0 1 0 , which is not allowed.
Therefore, the perimeter of the right triangle with all integer sides less than 1 0 1 0 with an angle closest to 4 5 ° is a + b + c = 1 8 4 5 7 5 5 6 0 5 2 .
Problem Loading...
Note Loading...
Set Loading...
We'll try to make the triangle as close to isosceles as possible by looking for right-angled triangles whose shorter sides differ by 1 . Clearly the sides of such a triangle will not share any factors, so we're looking for primitive Pythagorean triples a , b , c and we can put a = x 2 − y 2 and b = 2 x y (and c = x 2 + y 2 ). There are two cases to consider; either a − b = 1 or b − a = 1 ; but, as we'll see, they lead to the same equation to solve.
Start with a − b = 1 : x 2 − y 2 − 2 x y = 1
Writing u = x − y and v = y , this is Pell's equation : u 2 − 2 v 2 = 1
Now consider b − a = 1 : 2 x y − x 2 + y 2 = 1
This time, put u = x + y and v = x . Once again, we get u 2 − 2 v 2 = 1
so this is the only equation we have to solve.
To find solutions to Pell's equation, we need a fundamental solution ( u 1 , v 1 ) . It's easy to see that ( 3 , 2 ) works. All further solutions (see the linked article on Pell above) are then found using u n + 1 = u n u 1 + 2 v n v 1 v n + 1 = u n v 1 + u 1 v n
and these can be used to generate the triangle's sides. Per the two cases outlined above, each pair ( u n , v n ) generates two solution triangles. For example, from ( u 1 , v 1 ) = ( 3 , 2 ) we get
Case a − b = 1 : x − y = 3 , y = 2 so that x = 5 ; ( a , b , c ) = ( 2 1 , 2 0 , 2 9 )
Case b − a = 1 : x + y = 3 , x = 2 so that y = 1 ; ( a , b , c ) = ( 3 , 4 , 5 )
We then calculate ( u 2 , v 2 ) = ( 1 7 , 1 2 ) giving the triples ( 6 9 7 , 6 9 6 , 9 8 5 and ( 1 1 9 , 1 2 0 , 1 6 9 ) , and so on, until we find the triangle with the longest sides possible less than 1 0 1 0 .
This is the triple ( 5 4 0 6 0 9 3 0 0 3 , 5 4 0 6 0 9 3 0 0 4 , 7 6 4 5 3 7 0 0 4 5 ) which has perimeter 1 8 4 5 7 5 5 6 0 5 2 .
At the beginning, we assumed the best approach was to look for triangles whose shorter sides differed by just 1 . But could there be a better solution whose shorter sides differed by some other integer? Well, in this case, no: say there were a better solution (ie a triangle with angles closer to 4 5 ∘ with sides differing by d > 1 . Then, considering the tangent of this angle, we would need a ′ a ′ + d − 1 < a a + 1 − 1 where a = 5 4 0 6 0 9 3 0 0 3 from above and a ′ is the shortest side of the new triangle. Simplifying, a ′ d < a 1 But now note that since a ′ < 1 0 1 0 and a > 2 1 ⋅ 1 0 1 0 , this is impossible.