Maths Olympiad Prep

Library / /34 of 39

Combinatorics Difficulty 6.6 National Olympiad Prove it Italy

Problem:

There are 4037 light bulbs arranged in a row and numbered from 1 to 4037. Initially each light bulb can be on or off. A move consists of choosing two light bulbs numbered a,ba, b such that a/ba / b or b/ab / a is a prime number and changing the state of both. Prove that in a finite number of moves it is possible to make the light bulbs from 1 to 2019 all on, regardless of the initial configuration.

Solution

Solution:

We directly exhibit a sequence of moves that leads to having all of the first 2019 light bulbs on.

- If the light bulb numbered 2019 is off, we choose a=2019a=2019 and b=673b=673, so that ab=3\frac{a}{b}=3 is a prime number, and we change the state of both light bulbs. Now light bulb 2019 is on.

- If light bulb number 1 is off, we choose a=2a=2 and b=1b=1 and change the state of both. Now light bulb number 1 is on.

- If light bulb number 2 is off, we choose a=4a=4 and b=2b=2 and change the state of both. Now light bulb number 2 is on.

- If light bulb number kk is off, with 1k20181 \leq k \leq 2018, we choose a=2ka=2k and b=kb=k and change the state of both. Now light bulb number kk is on.

- If light bulb number 2018 is off, we choose a=4036a=4036 and b=2018b=2018 and change the state of both. Now light bulb number 2018 is on.

Note that every light bulb that is turned on during a move is then never changed in state again by subsequent moves: indeed, light bulb 2019 is changed in state only on the first turn, because in all subsequent turns light bulbs of the form kk or 2k2k with 1k20181 \leq k \leq 2018 are used and 2019 is odd, while if a light bulb kk with 1k20181 \leq k \leq 2018 has its state changed, in subsequent turns only light bulbs with numbers greater than kk will be considered.

Note: this solution works only if the moves are applied in the order described above, otherwise one risks turning off again a light bulb that had previously been turned on.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.