Browse · MathNet
PrintSAUDI ARABIAN MATHEMATICAL COMPETITIONS
Saudi Arabia counting and probability
Problem
All of the numbers are initially colored black. On each move it is possible to choose the number (among the colored numbers) and change the color of and of all of the numbers that are not co-prime with (black into white, white into black). Is it possible to color all of the numbers white?
Solution
The answer is YES. We will prove by induction that the procedure can be applied for any positive integer .
The statement is true for . Suppose that it is also true for , which means there exists a way to change every number not exceeding from black to white, which we call process .
We shall prove the statement for with some cases as follows:
1. If is not a square-free number. Put and with primes. Note that the number of times the color of and are changed are equal (since the set of integers not coprime with them are the same), then can change the color if and only if can. So after making process with the sequence , the number will change color from black to white.
2. If is a square-free number. In case after making process , number changes color, then we are done. Otherwise, put and we consider process to select all divisors other than of . After that, number will be affected times and will change the color.
Denote as some divisor greater than of , and has prime divisors. Take some number which is a multiple of but coprime to . After process , number has color white. And after process , the number of times the color of is changed is which is an even number. This implies that will not change color.
So in all cases, we always can find a process to change the color of all numbers from to from black to white.
Finally, by replacing , the problem is solved.
The statement is true for . Suppose that it is also true for , which means there exists a way to change every number not exceeding from black to white, which we call process .
We shall prove the statement for with some cases as follows:
1. If is not a square-free number. Put and with primes. Note that the number of times the color of and are changed are equal (since the set of integers not coprime with them are the same), then can change the color if and only if can. So after making process with the sequence , the number will change color from black to white.
2. If is a square-free number. In case after making process , number changes color, then we are done. Otherwise, put and we consider process to select all divisors other than of . After that, number will be affected times and will change the color.
Denote as some divisor greater than of , and has prime divisors. Take some number which is a multiple of but coprime to . After process , number has color white. And after process , the number of times the color of is changed is which is an even number. This implies that will not change color.
So in all cases, we always can find a process to change the color of all numbers from to from black to white.
Finally, by replacing , the problem is solved.
Final answer
Yes
Techniques
Invariants / monovariantsInduction / smoothingGreatest common divisors (gcd)Factorization techniques