How many right triangles has integer side lengths and one of its side is 2018?
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.
The general formulae for Pythagorean triplets is a = 2kxy, b = (x^2 - y^2)k, c = k(x^2 + y^2), where a^2 + b^2 = c^2. If k = 1, the solution is called primitive. We have 2 choices; either 2018 is a leg, or 2018 is the hypotenuse. If the former, then 2018 = 2kxy, or kxy =1009, a prime number. Hence k = 1, x = 1009, and y =1. The sides are a = 2xy = 2018, b = x^2 - y^2 = 1018001 - 1 = 1018000, c = x^2 + y^2 = 1018001 + 1. Since k = 1, we go to the other alternative, Where c = 2018. Here, we determine that 2018 = k(x^2 + y^2), k = 2, and x^2 + y^2 = 1009 . A few trials give x=28, y = 15 as the only solution. Then a = 4xy =1680, b = 2(x^2 - y^2) = 450, c = 2(x^2 + y^2)= 2018. Ed Gray
Your triples are incorrect:
In the latter case, your calculation of b is just a bit off: should be 2 ( 2 8 2 − 1 5 2 ) = 1 1 1 8 .
In the former case, there actually is no possible primitive Pythagorean triple with side length 2018. Setting k=1, x=1009, y=1 is not possible, since x and y are both odd (notice that in your proposed primitive triple all three sides are even).
Problem Loading...
Note Loading...
Set Loading...
By Euclid's formula, every primitive Pythagorean Triple can be written as a = m 2 − n 2 , b = 2 m n and c = m 2 + n 2 for some relatively prime m and n not both odd. In this case, a and c are odd and b is even. Thus, if the triple is primitive, 2 0 1 8 = b = 2 m n and m n = 1 0 0 9 . Since 1009 is prime, m and n must be 1009 and 1, a contradiction. Thus, there is no primitive Pythagorean triple containing 2018.
To look for non-primitive Pythagorean triples, we must find a primitive triple with at least one side in the set { 1 , 2 , 1 0 0 9 } . Since there are no primitive triples with side lengths 1 or 2, we need only consider 1009. By the formulae for a , b and c above, we have two possibilities:
There are exactly two Pythagorean triples containing 2018.