Daily

Random

Practice set

Baltic Way 1998 · Problem 2

Number Theory

A triple of positive integers (a,b,c)(a, b, c) is called quasi-Pythagorean if there exists a triangle with lengths of the sides a,b,ca, b, c and the angle opposite to the side cc equal to 120∘120^{\circ}. Prove that if (a,b,c)(a, b, c) is a quasi-Pythagorean triple then cc has a prime divisor greater than 5 .

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Diophantine equations · GCD and LCM · Divisibility and factorization

Solutions

Solution

Solution:

By the cosine law, a triple of positive integers (a,b,c)(a, b, c) is quasi-Pythagorean if and only if

c2=a2+ab+b2c^{2} = a^{2} + a b + b^{2}

If a triple (a,b,c)(a, b, c) with a common divisor d>1d > 1 satisfies (1), then so does the reduced triple (ad,bd,cd)\left(\frac{a}{d}, \frac{b}{d}, \frac{c}{d}\right). Hence it suffices to prove that in every irreducible quasi-Pythagorean triple the greatest term cc has a prime divisor greater than 5. Actually, we will show that in that case every prime divisor of cc is greater than 5.

Let (a,b,c)(a, b, c) be an irreducible triple satisfying (1). Note that then a,ba, b and cc are pairwise coprime. We have to show that cc is not divisible by 2, 3 or 5.

If cc were even, then aa and bb (coprime to cc) should be odd, and (1) would not hold.

Suppose now that cc is divisible by 3, and rewrite (1) as

4c2=(a+2b)2+3a24 c^{2} = (a + 2b)^{2} + 3 a^{2}

Then a+2ba + 2b must be divisible by 3. Since aa is coprime to cc, the number 3a23 a^{2} is not divisible by 9. This yields a contradiction since the remaining terms in (2) are divisible by 9.

Finally, suppose cc is divisible by 5 (and hence aa is not). Again we get a contradiction with (2) since the square of every integer is congruent to 0, 1 or −1-1 modulo 5; so 4c2−3a2≡±2(mod5)4 c^{2} - 3 a^{2} \equiv \pm 2 \pmod{5} and it cannot be equal to (a+2b)2(a + 2b)^{2}. This completes the proof.

Contest context

Results from Baltic Way 1998

11 teams

Mean score
3.1 / 5
Scores of 4 or 5
6 / 11
Estonia
5 / 5

Score distribution

02
11
21
31
42
54
All team scores
TeamScore
Latvia3 / 5
Estonia5 / 5
Poland4 / 5
Finland5 / 5
St. Petersburg4 / 5
Sweden5 / 5
Denmark2 / 5
Iceland1 / 5
Norway5 / 5
Germany0 / 5
Lithuania0 / 5