For a prime and a positive integer , denote by the exponent of in the prime factorization of . Given a positive integer and a finite set of primes. Show that there are infinitely many positive integers such that for all .
Problem 1851
Official solutions — 2
Solution 1
For arbitrary prime and positive integer , denote by the exponent of in . Thus,
Lemma. Let be a prime number, be a positive integer, and be positive integers such that . Then .
Proof. We claim that for all . Actually, if then , so is divisible by , but only the first term is divisible by ; hence the sum is not.
Using this claim, we obtain
For any integer , denote by its residue modulo . The addition of residues will also be performed modulo , i.e. . For any positive integer , let , where .
Define the sequence . We claim that
for any . (The addition of -tuples is componentwise.) The base case is trivial.
Suppose that . By the construction of the sequence, divides ; clearly, for all . Therefore the Lemma can be applied for and to obtain
and hence
by the induction hypothesis.
Now consider the values There exist finitely many possible values of . Hence, there exists an infinite sequence of indices such that . and thus
for all . We have found infinitely many suitable numbers.
Solution 2
We use the same Lemma and definition of the function .
Let . Obviously, set is finite. For every choose the minimal such that . Denote . Moreover, let be an integer such that for each . Let .
We claim that
for every positive integer . In particular, since , it follows that for an arbitrary there exists such that . So there are infinitely many suitable numbers.
To prove (1), let . Consider all numbers of the form with (clearly, all belong to ). Since and , we can apply the Lemma for the values to obtain
hence for distinct we have .
Thus, the function attains at least distinct values in . Since all these values belong to should attain all possible values in .