Browse · MathNet
PrintBxMO Team Selection Test, March 2020
Netherlands 2020 number theory
Problem
For an integer we consider a circle containing vertices. To each vertex we assign a positive integer, and these integers do not necessarily have to be distinct. Such an assignment of integers is called stable if the product of any three adjacent integers is . For how many values of with does there exist a stable assignment?
Solution
Suppose is not a multiple of 3 and that we have a stable assignment of the numbers , in that order on the circle. Then we have for all , where the indices are considered modulo . Hence, which yields (as all numbers are positive). Through induction, we find that for all integers . Because is not a multiple of 3, the numbers for take on all values modulo : indeed, 3 has a multiplicative inverse modulo , hence implies for all . We conclude that all numbers on the circle must equal . Hence, we have , where is a positive integer. Hence, if is not a multiple of 3, then must be a cube.
If is a multiple of 3, then we put the numbers in that order on the circle. In that case, the product of three adjacent numbers always equals . If is a cube, say , then we put the numbers on the circle. In that case, the product of three adjacent numbers always equals .
We conclude that a stable assignment exists if and only if is a multiple of 3, or a cube. Now we have to count the number of such . The multiples of 3 with are ; these are numbers. The cubes with are , because and . These are 11 cubes, of which 4 are divisible by 3, hence there are 7 cubes which are not a multiple of 3. Altogether, there are values of satisfying the conditions.
If is a multiple of 3, then we put the numbers in that order on the circle. In that case, the product of three adjacent numbers always equals . If is a cube, say , then we put the numbers on the circle. In that case, the product of three adjacent numbers always equals .
We conclude that a stable assignment exists if and only if is a multiple of 3, or a cube. Now we have to count the number of such . The multiples of 3 with are ; these are numbers. The cubes with are , because and . These are 11 cubes, of which 4 are divisible by 3, hence there are 7 cubes which are not a multiple of 3. Altogether, there are values of satisfying the conditions.
Final answer
680
Techniques
Inverses mod nIntegers