Browse · MathNet
PrintJapan Mathematical Olympiad
Japan number theory
Problem
Find the number of tuples of integers between and inclusive that satisfy the following condition: There exists a tuple of integers such that for every integer from to , holds.
Solution
Let the function denote the greatest common divisor of and , with the definition that the greatest common divisor of and a non-negative integer is . Let us also denote that, for conditions , the notation represents the sum under the conditions where all of are satisfied. Unless otherwise stated, the modulus for congruences will be in the following.
Let . Note that is square-free. For any prime , and are equivalent, thus is equivalent to for any integer .
Consider tuples of integers and satisfying For integers from to , take integers from to such that holds. Then, for integers from to , it follows that , and thus holds for integers from to and integers from to . Conversely, for any tuple of integers from to , if we take as , then () holds. Hence it suffices to find the number of tuples of integers from to that satisfy the following condition:
There exists some tuple of integers from to such that holds for any integer from to .
In the following, a tuple of integers from to is called a good tuple, and for simplicity, we write to represent a good tuple . We also define that for any good tuple and any positive integer . Additionally, will represent an integer from to and will denote hereinafter.
If good tuples and satisfy the following condition, is called the parent of and is called a child of , respectively: Furthermore, a good tuple is called the inverse of if they satisfy the following condition: Here, denotes the number of distinct prime factors of , and is defined by .
Lemma 1. satisfies the following two properties. (1) For coprime positive integers and , . (2) For a positive divisor of ,
Proof of Lemma 1. (1) Since and are coprime, . Since and are also coprime, . Therefore, follows. (2) The case of is obvious. Assume . We write with . By property (1), Since , we can take with , which satisfies . Therefore, holds for .
Thus we have Lemma 1.
Next, we prove the following two lemmas.
Lemma 2. The following two properties hold: (1) For any good tuple , there exists exactly one child. (2) For any good tuple , there exists exactly one good tuple whose inverse is .
Proof of Lemma 2. (1) Note that, since there are only finite good tuples, it suffices to show that the number of child for a given good tuple is at most one. To be more precise, we show that if and are the parents of and , respectively, then . Suppose otherwise, i.e., and there exists an such that . Without loss of generality, we can assume that is the smallest among such integers. Since and , it holds for any integer that Therefore, for , and thus by the minimality of . Hence, which contradicts the assumption that .
(2) Similarly to (1), let and be the inverses of and , respectively, and it suffices to show that . Suppose and there exists an such that . Again, we can assume that is the smallest among such integers without loss of generality. Since , if and , then . Since is square-free, we have and thus . Noting that from the maximality of , means Here, implies . Also, implies . Since and are coprime, and mean under the condition . Hence the condition reduces to , which contradicts the assumption that . This concludes the proof of Lemma 2. ■
Lemma 3. Consider good tuples and , with and being their parents respectively, and let be the inverse of . The following two conditions are equivalent: (2) For every , it holds that , where is Euler's totient function.
Proof of Lemma 3. (1) (2): Suppose that (1) holds. By definition of inversion, we have Since , we have Rearranging terms based on the values of , we have where . Thus, the right side can be written as , where is the number of integer pairs satisfying , and . We want to show that holds. Note that and mean that . Hence, we have . This yields for . Also, when , implies and thus . This yields for the case . We now consider the case and , and determine the number of pairs satisfying five conditions above. implies , or . On the other hand, since . Since and are coprime, there exists unique (up to mod ) that satisfies both congruences by the Chinese remainder theorem. Additionally, when is fixed, there is at most one that satisfies and . Hence, for this case. On the other hand, Chinese remainder theorem assures that we can take such that and are satisfied. Moreover, since and , we can take such that and are satisfied. Since , it holds . Together with , we have . Since and , it holds . This implies that we can construct the pair that satisfies all five conditions, and thus . This concludes that for and . Note that is equivalent to , and that is equivalent to , we have In this sum, if we let , varies while satisfying and . This is equivalent to and , thus letting , varies over all positive divisors of , and we have Since is a positive divisor of , and are coprime and thus holds. Since is a divisor of , according to Lemma 1(2), is equal to when (i.e., ), and otherwise. Furthermore, when , we have . Hence On the other hand, since we assume that (1) holds, we have and the coefficient of is the number of pairs of integers satisfying , , , and . This is the number of satisfying , and . Therefore, by the Chinese remainder theorem, the coefficient of is when (i.e., when ), and otherwise (i.e., when ). Hence we have , which concludes this part. be the parent of . Since we have from the above argument, (1) follows from the uniqueness of child. ■
From Lemmas 2 and 3, what we need to find is the number of good tuples such that there exists some good tuple for which holds for every . This number is equal to . Since is a divisor of , is a divisor of .
is equivalent to claim that is a multiple of , , or , hence the number of such is . is equivalent to claim that is a multiple of either or , hence the number of such is . * is equivalent to claim that , hence the number of such is .
Thus, the answer is .
Let . Note that is square-free. For any prime , and are equivalent, thus is equivalent to for any integer .
Consider tuples of integers and satisfying For integers from to , take integers from to such that holds. Then, for integers from to , it follows that , and thus holds for integers from to and integers from to . Conversely, for any tuple of integers from to , if we take as , then () holds. Hence it suffices to find the number of tuples of integers from to that satisfy the following condition:
There exists some tuple of integers from to such that holds for any integer from to .
In the following, a tuple of integers from to is called a good tuple, and for simplicity, we write to represent a good tuple . We also define that for any good tuple and any positive integer . Additionally, will represent an integer from to and will denote hereinafter.
If good tuples and satisfy the following condition, is called the parent of and is called a child of , respectively: Furthermore, a good tuple is called the inverse of if they satisfy the following condition: Here, denotes the number of distinct prime factors of , and is defined by .
Lemma 1. satisfies the following two properties. (1) For coprime positive integers and , . (2) For a positive divisor of ,
Proof of Lemma 1. (1) Since and are coprime, . Since and are also coprime, . Therefore, follows. (2) The case of is obvious. Assume . We write with . By property (1), Since , we can take with , which satisfies . Therefore, holds for .
Thus we have Lemma 1.
Next, we prove the following two lemmas.
Lemma 2. The following two properties hold: (1) For any good tuple , there exists exactly one child. (2) For any good tuple , there exists exactly one good tuple whose inverse is .
Proof of Lemma 2. (1) Note that, since there are only finite good tuples, it suffices to show that the number of child for a given good tuple is at most one. To be more precise, we show that if and are the parents of and , respectively, then . Suppose otherwise, i.e., and there exists an such that . Without loss of generality, we can assume that is the smallest among such integers. Since and , it holds for any integer that Therefore, for , and thus by the minimality of . Hence, which contradicts the assumption that .
(2) Similarly to (1), let and be the inverses of and , respectively, and it suffices to show that . Suppose and there exists an such that . Again, we can assume that is the smallest among such integers without loss of generality. Since , if and , then . Since is square-free, we have and thus . Noting that from the maximality of , means Here, implies . Also, implies . Since and are coprime, and mean under the condition . Hence the condition reduces to , which contradicts the assumption that . This concludes the proof of Lemma 2. ■
Lemma 3. Consider good tuples and , with and being their parents respectively, and let be the inverse of . The following two conditions are equivalent: (2) For every , it holds that , where is Euler's totient function.
Proof of Lemma 3. (1) (2): Suppose that (1) holds. By definition of inversion, we have Since , we have Rearranging terms based on the values of , we have where . Thus, the right side can be written as , where is the number of integer pairs satisfying , and . We want to show that holds. Note that and mean that . Hence, we have . This yields for . Also, when , implies and thus . This yields for the case . We now consider the case and , and determine the number of pairs satisfying five conditions above. implies , or . On the other hand, since . Since and are coprime, there exists unique (up to mod ) that satisfies both congruences by the Chinese remainder theorem. Additionally, when is fixed, there is at most one that satisfies and . Hence, for this case. On the other hand, Chinese remainder theorem assures that we can take such that and are satisfied. Moreover, since and , we can take such that and are satisfied. Since , it holds . Together with , we have . Since and , it holds . This implies that we can construct the pair that satisfies all five conditions, and thus . This concludes that for and . Note that is equivalent to , and that is equivalent to , we have In this sum, if we let , varies while satisfying and . This is equivalent to and , thus letting , varies over all positive divisors of , and we have Since is a positive divisor of , and are coprime and thus holds. Since is a divisor of , according to Lemma 1(2), is equal to when (i.e., ), and otherwise. Furthermore, when , we have . Hence On the other hand, since we assume that (1) holds, we have and the coefficient of is the number of pairs of integers satisfying , , , and . This is the number of satisfying , and . Therefore, by the Chinese remainder theorem, the coefficient of is when (i.e., when ), and otherwise (i.e., when ). Hence we have , which concludes this part. be the parent of . Since we have from the above argument, (1) follows from the uniqueness of child. ■
From Lemmas 2 and 3, what we need to find is the number of good tuples such that there exists some good tuple for which holds for every . This number is equal to . Since is a divisor of , is a divisor of .
is equivalent to claim that is a multiple of , , or , hence the number of such is . is equivalent to claim that is a multiple of either or , hence the number of such is . * is equivalent to claim that , hence the number of such is .
Thus, the answer is .
Final answer
2100^{210}/(2^{164}*3^{30})
Techniques
Chinese remainder theoremφ (Euler's totient)Möbius inversionGreatest common divisors (gcd)