Olympiad Maths Prep

Track / Stage 7 / 122 of 300 #1522 of 2000

Problem 1522

National olympiad second round; IMO P1/P4
Geometry Difficulty 7.2 Prove it

Let dd be a real number such that d2=r2+s2d^2=r^2+s^2, where rr and ss are rational numbers. Prove that we can color all points of the plane with rational coordinates with two different colors such that the points with distance dd have different colors.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Lemma: Let nN n \in \mathbb{N} be an even number, and let ai,biQ a_i, b_i \in \mathbb{Q} for i=1,2,,n i=1,2,\ldots, n . Suppose ai2+bi2=r a_i^2 + b_i^2 = r for i=1,2,,n i=1,2,\ldots,n . Then (i=1nai)2+(i=1nbi)2r\left(\sum_{i=1}^{n} a_i \right)^2 + \left(\sum_{i=1}^{n} b_i \right)^2 \neq r .

2. Proof of Lemma: Assume ai,biN a_i, b_i \in \mathbb{N} (we can multiply by the least common multiple of all denominators of ai a_i and bi b_i if necessary). Suppose, for contradiction, that r=(i=1nai)2+(i=1nbi)2 r = \left(\sum_{i=1}^{n} a_i \right)^2 + \left(\sum_{i=1}^{n} b_i \right)^2 . Then:
r=(i=1nai)2+(i=1nbi)2=i=1n(ai2+bi2)+2i<j(aiaj+bibj) r = \left(\sum_{i=1}^{n} a_i \right)^2 + \left(\sum_{i=1}^{n} b_i \right)^2 = \sum_{i=1}^n (a_i^2 + b_i^2) + 2\sum_{i<j} (a_i a_j + b_i b_j)
This implies:
r=nr+2i<j(aiaj+bibj) r = nr + 2\sum_{i<j} (a_i a_j + b_i b_j)
Rearranging, we get:
(n1)r=2i<j(aiaj+bibj) -(n-1)r = 2\sum_{i<j} (a_i a_j + b_i b_j)
Notice that there are three possible residues of rmod4 r \mod 4 : 0,1,2 0, 1, 2 .

3. Case Analysis:
- If ai2+bi20mod4 a_i^2 + b_i^2 \equiv 0 \mod 4 , then 2ai 2 \mid a_i and 2bi 2 \mid b_i . We can divide all ai a_i and bi b_i by 2 until 4 does not divide r r .
- If ai2+bi21mod4 a_i^2 + b_i^2 \equiv 1 \mod 4 , this is impossible because the left-hand side (LHS) of the equation would be odd, but the right-hand side (RHS) is even.
- If ai2+bi22mod4 a_i^2 + b_i^2 \equiv 2 \mod 4 , this is also impossible because 4 divides the RHS but does not divide the LHS.

Therefore, the assumption that r=(i=1nai)2+(i=1nbi)2 r = \left(\sum_{i=1}^{n} a_i \right)^2 + \left(\sum_{i=1}^{n} b_i \right)^2 must be false. This completes the proof of the lemma. \blacksquare

4. Application of Lemma: If A1,A2,,An A_1, A_2, \ldots, A_n are points in the plane with rational coordinates such that A1A2=A2A3==An1An=AnA1 |A_1A_2| = |A_2A_3| = \ldots = |A_{n-1}A_n| = |A_nA_1| , then n n must be even.

5. Graph Construction: Enumerate all points in the plane with rational coordinates as A1,A2, A_1, A_2, \ldots . Construct an infinite graph G G by connecting Ai A_i to Aj A_j if and only if AiAj=d |A_iA_j| = d .

6. Graph Properties: Notice that there is no finite cycle in this graph with an odd length. This implies that the graph is bipartite.

7. Coloring the Graph: We can consecutively add Ai A_i to two sets M M and N N such that if Ai,AjM A_i, A_j \in M or Ai,AjN A_i, A_j \in N , then Ai A_i and Aj A_j are not connected. This is possible because the graph is bipartite.

8. Final Coloring: Color all points in M M with one color and all points in N N with the other color. This ensures that any two points with distance d d have different colors.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.