Skip to main content
OlympiadHQ

Browse · MathNet

Print

BMO 2022 shortlist

2022 counting and probability

Problem

There are 100 positive integer numbers written on a board. At each step, Alex composes 50 fractions using each number written on the board exactly once, brings these fractions to their irreducible form, and then replaces the 100 numbers on the board with the new numerators and denominators to create 100 new numbers. Find the smallest positive integer such that regardless of the values of the initial 100 numbers, after steps Alex can arrange to have on the board only pairwise coprime numbers.
Solution
Equivalently, we have a graph on 100 vertices and a positive integer written on each vertex. At each step we pick a perfect matching (i.e. a set of disjoint edges covering all vertices) and for each edge of the matching we divide the numbers in its endpoints with their highest common divisor.

If initially the numbers on the vertices are and , where are distinct prime numbers, then we need at least 99 steps. This is because the vertex having the number needs to be matched with every other vertex and we need 99 steps for this.

We show that 99 steps are enough. For this it is enough to show that has a 1-factorisation. I.e. we can decompose the edges of the complete graph on 100 vertices into 99 perfect matchings. In general it is a known fact that has a 1-factorisation. For one way to achieve this, write for the vertices, and for the -th matching () consider all edges of the form with and together with the edge where .
Final answer
99

Techniques

Matchings, Marriage Lemma, Tutte's theoremGreatest common divisors (gcd)Prime numbers