It’s Not 3-4-5?

Geometry Level 5

The right triangle with the smallest possible sum of its area and its perimeter, where both area and perimeter are integers, has a hypotenuse of p q \frac{p}{q} , where p p and q q are relatively prime positive integers. Find p + q p + q .


The answer is 31.

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.

2 solutions

Let A A , P P be the area and the perimeter of the right triangle A B C \triangle ABC and a a , b b , c c its hypotenuse and legs.
Then A = b c 2 c = 2 A b A=\dfrac{bc}{2}\Rightarrow c=\dfrac{2A}{b} , A 1 A\ge 1 .

P = b + c + a = b + 2 A b + b 2 + 4 A 2 b 2 P=b+c+a=b+\dfrac{2A}{b}+\sqrt{{{b}^{2}}+\dfrac{4{{A}^{2}}}{{{b}^{2}}}}

The sum we want to minimise is S = A + P = A + b + 2 A b + b 2 + 4 A 2 b 2 S=A+P=A+b+\dfrac{2A}{b}+\sqrt{{{b}^{2}}+\dfrac{4{{A}^{2}}}{{{b}^{2}}}} .
For any fixed value of the area A A , the sum becomes a function of b b and S ( b ) = ( b 2 2 A ) [ b 4 + 4 A 2 + b 2 + 2 A ] b 2 b 4 + 4 A 2 {S}'\left( b \right)=\dfrac{\left( {{b}^{2}}-2A \right)\left[ \sqrt{{{b}^{4}}+4{{A}^{2}}}+{{b}^{2}}+2A \right]}{{{b}^{2}}\sqrt{{{b}^{4}}+4{{A}^{2}}}} .
Thus, S ( b ) = 0 b 2 2 A = 0 b > 0 b = 2 A {S}'\left( b \right)=0\Leftrightarrow {{b}^{2}}-2A=0\overset{b>0}{\mathop{\Leftrightarrow }}\,b=\sqrt{2A} .

This means that, for any constant value of A A , the sum is minimised when S ( b ) = 0 b 2 2 A = 0 b > 0 b = 2 A {S}'\left( b \right)=0\Leftrightarrow {{b}^{2}}-2A=0\overset{b>0}{\mathop{\Leftrightarrow }}\,b=\sqrt{2A} .
The minimum value is S ( 2 A ) = = A + 2 ( 2 + 1 ) A S\left( \sqrt{2A} \right)=\ldots =A+2\left( \sqrt{2}+1 \right)\sqrt{A} .

In terms of A A , the function y = A + 2 ( 2 + 1 ) A y=A+2\left( \sqrt{2}+1 \right)\sqrt{A} is increasing, thus, for A 1 A\ge 1 , it gives its minimum when A = 1 A=1 .
Then S S becomes S min = S ( 1 ) = 2 2 + 3 5.828 {{S}_{\min }}=S\left( 1 \right)=2\sqrt{2}+3\approx 5.828 .

We conclude that the minimum possible integer value of S S can be 6.
In this case, we have: S = 6 A = 1 1 + b + 2 b + b 2 + 4 b 2 = 6 b 4 + 4 = b 2 + 5 b + 20 b = 29 ± 41 20 \begin{aligned} S=6& \overset{A=1}{\mathop{\Leftrightarrow }}\,1+b+\dfrac{2}{b}+\sqrt{{{b}^{2}}+\dfrac{4}{{{b}^{2}}}}=6 \\ & \Leftrightarrow \sqrt{{{b}^{4}}+4}=-{{b}^{2}}+5b+20 \\ & \Leftrightarrow \ldots \\ & \Leftrightarrow b=\dfrac{29\pm \sqrt{41}}{20} \\ \end{aligned}

With this value, we get:
c = 2 b = 29 41 20 c=\dfrac{2}{b}=\dfrac{29\mp \sqrt{41}}{20} and hypotenuse b 2 + 4 b 2 = 21 10 . \sqrt{{{b}^{2}}+\dfrac{4}{{{b}^{2}}}}=\dfrac{21}{10}.

Summing up the elements of our triangle:

b = 29 ± 41 20 b=\dfrac{29\pm \sqrt{41}}{20} , c = 29 41 20 c=\dfrac{29\mp \sqrt{41}}{20} , a = 21 10 a=\dfrac{21}{10} , A = 1 A=1 and P = 5 P=5 .

For the answer, p = 21 p=21 , q = 10 q=10 , so p + q = 31 p+q=\boxed{31} .

Chris Lewis
Jul 23, 2020

Let the area of the triangle be A A and its perimeter P P .

Over all right-angled triangles, the ratio P 2 A \frac{P^2}{A} is minimised by the right-angled isosceles triangle, in which it is 2 ( 2 + 2 ) 2 23.31 2(2+\sqrt2)^2 \approx 23.31 . (This is a fairly intuitive result but also a nice thing to prove as a side-problem.)

We're interested in minimising A + P A+P for positive integers A , P A,P subject to P 2 A 2 ( 2 + 2 ) 2 \frac{P^2}{A}\ge 2(2+\sqrt2)^2 ; the pair we're after is A = 1 , P = 5 A=1,P=5 .

To find the triangle with these properties, say the triangle has legs x , y x,y and hypotenuse z z , so x 2 + y 2 = z 2 x^2+y^2=z^2 . Also A = x y 2 A=\frac{xy}{2} and P = x + y + z P=x+y+z .

We have z = P x y z=P-x-y and y = 2 A x y=\frac{2A}{x} . Putting these together, x 2 + 4 A 2 x 2 = ( P x 2 A x ) 2 x 2 + 4 A 2 x 2 = P 2 + x 2 + 4 A 2 x 2 2 P x 4 A P x + 4 A 0 = P 2 2 P x 4 A P x + 4 A 2 P x 2 ( 4 A + P 2 ) x + 4 A P = 0 \begin{aligned} x^2+\frac{4A^2}{x^2} &= \left(P-x-\frac{2A}{x} \right)^2 \\ x^2+\frac{4A^2}{x^2} &= P^2+x^2+\frac{4A^2}{x^2}-2Px-\frac{4AP}{x}+4A \\ 0 &= P^2-2Px-\frac{4AP}{x}+4A \\ 2Px^2-(4A+P^2)x+4AP &=0 \end{aligned}

We can substitute in and solve here, but it's neater to note that the two roots of this quadratic are just the two legs of the triangle; so - by Vieta - x + y = 4 A + P 2 2 P x+y=\frac{4A+P^2}{2P} and z = P x y z=P-x-y so that z = P 2 4 A 2 P z=\frac{P^2-4A}{2P}

Plugging in A = 1 , P = 5 A=1,P=5 we get z = 21 10 z=\frac{21}{10} so the answer is 31 \boxed{31} .

Note that in this case the legs x , y x,y are not rational; in fact x , y = 29 ± 41 20 x,y=\frac{29\pm \sqrt{41}}{20} .

What is this triangle, by the way?! Does it have any other nice properties? (One of its angles is very close to 1 1 radian, but not close enough to count as "nice"!)

Chris Lewis - 10 months, 3 weeks ago

Log in to reply

I'm not sure. I had wondered what right triangle had the smallest possible area and perimeter sum where both were integers, even if the sides weren't integers, and I came up with this.

David Vreken - 10 months, 3 weeks ago

Log in to reply

Somehow it feels unusual to find an unfamiliar triangle, even though - obviously - almost all of them are.

I spent quite a while down a rabbit-hole of x = 2 u v , y = u 2 v 2 , z = u 2 + v 2 x=2uv,y=u^2-v^2,z=u^2+v^2 with this one - I wonder if others did too?

Chris Lewis - 10 months, 3 weeks ago

Log in to reply

@Chris Lewis Yeah, I also spent a lot of time with Pythagorean triples. I thought all the sides must be rational. After some fruitless calculations, I posited my assumption was wrong.

Atomsky Jahid - 10 months, 3 weeks ago

I did it pretty much the same way, except I found P 2 A 2 ( 2 + 2 ) 2 \frac{P^2}{A} \geq 2(2 + \sqrt{2})^2 by setting the discriminant of 2 P x 2 ( 4 A + P 2 ) x + 4 A P 2Px^2 - (4A + P^2)x + 4AP greater or equal to 0 0 .

David Vreken - 10 months, 3 weeks ago

Log in to reply

Nice. I wound up discovering several impossible triangles before realising I needed this condition.

Chris Lewis - 10 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...