Baltic Way 2017 · Problem 16
Number Theory
Is it possible for any group of people to choose a positive integer and assign a positive integer to each person in the group such that the product of two persons' numbers is divisible by if and only if they are friends?
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Divisibility and factorization
Solutions
Solution
Answer: Yes, this is always possible.
Consider a graph with a vertex for each person in the group. For each pair of friends we join the corresponding vertices by a red edge. If a pair are not friends, we join their vertices with a blue edge.
Let us label blue edges with different primes . To a vertex we assign the number , where , and is the product of the primes on all blue edges starting from (for the empty set the product of all its elements equals 1). Now take .
Let us check that all conditions are satisfied. If vertices and are connected by a red edge, then and are coprime, hence and . If vertices and are connected by a blue edge labelled with a prime , then divides neither nor . Hence does not divide .
Contest context
Results from Baltic Way 2017
11 teams
- Mean score
- 3.6 / 5
- Scores of 4 or 5
- 8 / 11
- Estonia
- 5 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| St. Petersburg | 5 / 5 |
| Germany | 5 / 5 |
| Poland | 5 / 5 |
| Denmark | 5 / 5 |
| Estonia | 5 / 5 |
| Lithuania | 0 / 5 |
| Sweden | 5 / 5 |
| Norway | 5 / 5 |
| Finland | 5 / 5 |
| Iceland | 0 / 5 |
| Latvia | 0 / 5 |