Maths Olympiad Prep

Library / /19 of 27

Number theory Difficulty 7.1 National olympiad, round 2 Prove it North Macedonia

Find all infinite sequences a1,a2,a3,a_1, a_2, a_3, \dots of positive integers such that

a) anm=anama_{nm} = a_n a_m, for all positive integers n,mn, m, and

b) there are infinitely many positive integers nn such that {1,2,,n}={a1,a2,,an}\{1, 2, \dots, n\} = \{a_1, a_2, \dots, a_n\}.

Solution

Instead of sequence ana_n, we'll use notation with the function f(n)f(n) with same properties.

There exists only one such function: f(n)=nf(n) = n. We'll solve the problem with many separate facts.

Fact 1: f(1)=1f(1) = 1

Proof. According to a) it holds f(1)=f(1)f(1)=f(1)2f(1) = f(1)f(1) = f(1)^2. Since f(1)f(1) is positive integer, it can't be f(1)=0f(1) = 0, so it must be f(1)=1f(1) = 1.

Fact 2: Function ff is bijective.

Proof. Firstly, we'll show that ff is injective. Let aba \neq b be two arbitrary positive integers and let's assume f(a)=f(b)f(a) = f(b). Since {1,2,...,n}={f(1),f(2),...,f(n)}\{1, 2, ..., n\} = \{f(1), f(2), ..., f(n)\} holds for infinitely any positive integers nn, it holds for some integer greater than aa and bb. Then, since f(a)=f(b)f(a) = f(b), set {f(1),f(2),...,f(n)}\{f(1), f(2), ..., f(n)\} contains n1n-1 or less (different) elements, but according to b), it contains nn elements.

Secondly, we'll show that ff is surjective. Let cc be arbitrary integer and let's assume that f(n)cf(n) \neq c for all positive integers nn. Similarly as in first part of proof, let's take positive integer nn such that {1,2,...,n}={f(1),f(2),...,f(n)}\{1, 2, ..., n\} = \{f(1), f(2), ..., f(n)\} holds. Since c{1,2,...,n}c \in \{1, 2, ..., n\}, cc is also element of the set {f(1),f(2),...,f(n)}\{f(1), f(2), ..., f(n)\}, so there exists positive integer mnm \le n such that f(m)=cf(m) = c.

Fact 3: Positive integer nn is prime if and only if f(n)f(n) is prime.

Proof. Let's assume that nn is prime, but f(n)f(n) isn't. Then it must be f(n)=ab=f(a)f(b)=f(ab)f(n) = a'b' = f(a)f(b) = f(ab), where a,ba', b' are positive integers greater 1, and a,ba, b are unique positive integers such that f(a)=af(a) = a', f(b)=bf(b) = b' (they exist since ff is bijective). Since ff is injective, f(1)=1f(1) = 1 and a,ba', b' are not equal to 1, integers a,ba, b are also not equal to 1. Since ff is injective and f(n)=f(ab)f(n) = f(ab), we have n=abn = ab, so nn is composite.

Let's assume that f(n)f(n) is prime, but nn isn't. Then there exist positive integers a,ba, b greater than one such that n=abn = ab. From there we have f(n)=f(ab)=f(a)f(b)f(n) = f(ab) = f(a)f(b). Again from injectivity of ff and f(1)=1f(1) = 1, we see that f(n)f(n) is product of two integers greater than 1.

Fact 4: If n=p1α1p2α2...pkαkn = p_1^{\alpha_1} p_2^{\alpha_2} ... p_k^{\alpha_k} is unique factorization of positive integer nn, then
f(n)=f(p1)α1f(p2)α2...f(pk)αk f(n) = f(p_1)^{\alpha_1} f(p_2)^{\alpha_2} ... f(p_k)^{\alpha_k}
is unique factorization of positive integer f(n)f(n).

Proof. From multiple use of the condition a) we get identity f(n)=f(p1)α1f(p2)α2...f(pk)αkf(n) = f(p_1)^{\alpha_1} f(p_2)^{\alpha_2} ... f(p_k)^{\alpha_k}. From fact 3, numbers f(pi)f(p_i) are prime. Since ff is injective, none of two numbers f(pi)f(p_i) and f(pj)f(p_j) are equal.

Fact 5: (Technical result) For all positive integers y<xy < x there exist positive integer non_o such that for all positive integers n>non > n_o holds inequality
yn+1<xn. y^{n+1} < x^n.

Proof. It is sufficient to prove the fact only for consecutive integers yy and y+1y+1 (because we'll have y+1<(y+1)nxny+1 < (y+1)^n \le x^n. By binomial theorem we have
(y+1)nyn+nyn1=yn1(y+n). (y+1)^n \ge y^n + n y^{n-1} = y^{n-1}(y+n).
Thus if we define no=y2y+1n_o = y^2 - y + 1, then for all nnon \ge n_o we have
(y+1)nyn1(y+n)yn1(y+no)=yn1(y2+1)>yn+1. (y+1)^n \ge y^{n-1}(y+n) \ge y^{n-1}(y+n_o) = y^{n-1}(y^2+1) > y^{n+1}.
*Another proof.* Inequality is equivalent to
(yx)n>y. \left(\frac{y}{x}\right)^n > y.
The fact follows from the fact that the expression on the left hand side is increasing and it is unbounded, while the right hand side is fixed.

Fact 6: For all prime numbers pp we have f(p)pf(p) \le p.

Proof. Let p1,p2,,pn,p_1, p_2, \dots, p_n, \dots be the increasing sequence 2,3,5,7,2, 3, 5, 7, \dots of all primes. Let's take arbitrary prime number pnp_n. From the Fact 3 we have that f(pn)f(p_n) is also prime. Let's take positive integer n0n_0 as the integer from the Fact 5, for positive integers y=pn<pn+1=xy = p_n < p_{n+1} = x. Since b) holds for infinitely many positive integers, it holds for some positive integer NN such that {1,2,,N}={f(1),f(2),,f(N)}\{1, 2, \dots, N\} = \{f(1), f(2), \dots, f(N)\}, and such that Npnn0N \ge p_n^{n_0}. Let α\alpha be the greatest positive integer such that pnαNp_n^{\alpha} \le N. From definitions of NN and α\alpha we have αn0\alpha \ge n_0.

In set {1,2,,N}\{1, 2, \dots, N\} we'll observe all positive integers which are αth\alpha^{th} power of a prime number. Since NpnαN \ge p_n^{\alpha}, we have that pnαp_n^{\alpha} is in that set. It is easy to see that all numbers p1α,p2α,,pn1αp_1^{\alpha}, p_2^{\alpha}, \dots, p_{n-1}^{\alpha} are also in that set. On the contrary, number pn+1αp_{n+1}^{\alpha} is not in that set, because from the definition of α\alpha and NN respectively we have N<pnα+1pn+1αN < p_n^{\alpha+1} \le p_{n+1}^{\alpha} (remember Fact 5 and αn0\alpha \ge n_0). Similarly, neither of the numbers pmαp_m^{\alpha} (for m>nm > n) is not in the set {1,2,,N}\{1, 2, \dots, N\}.

Let us now observe all positive integers which are αth\alpha^{th} power of a prime and they are in the set {f(1),f(2),,f(N)}\{f(1), f(2), \dots, f(N)\}. According to Fact 4, we have that f(n)f(n) is αth\alpha^{th} power of a prime. From that and from previous paragraph we conclude that only such numbers are f(p1α),f(p2α),,f(pnα)f(p_1^{\alpha}), f(p_2^{\alpha}), \dots, f(p_n^{\alpha}).

Now we have {p1α,p2α,,pnα}={f(p1α),f(p2α),,f(pnα)}\{p_1^{\alpha}, p_2^{\alpha}, \dots, p_n^{\alpha}\} = \{f(p_1^{\alpha}), f(p_2^{\alpha}), \dots, f(p_n^{\alpha})\}. Thus f(pnα){p1α,p2α,,pnα}f(p_n^{\alpha}) \in \{p_1^{\alpha}, p_2^{\alpha}, \dots, p_n^{\alpha}\}, so f(pnα)=piαf(p_n^{\alpha}) = p_i^{\alpha} for some 1in1 \le i \le n, which implies f(pnα)=piαf(p_n^{\alpha}) = p_i^{\alpha} for some 1inf(pn)=pipn1 \le i \le n \Rightarrow f(p_n) = p_i \le p_n, which completes the proof.

Fact 7: For every positive integer we have f(n)=nf(n) = n.

Proof. From Fact 3 we have f(p)f(p) if and only if pp is prime. Let p1,p2,,pn,p_1, p_2, \dots, p_n, \dots be the increasing sequence 2,3,5,7,2, 3, 5, 7, \dots of all prime numbers. From fact 6 we have f(p1)p1f(2)=2f(p_1) \le p_1 \Rightarrow f(2)=2. For n2n \ge 2, inductively and from injectivity of ff we have f(pn)>pn1f(p_n) > p_{n-1} and from Fact 6 we have f(pn)pnf(p_n) \le p_n, thus is must be f(pn)=pnf(p_n) = p_n, for all positive integer nn.

Now for arbitrary positive integer nn from Fact 4 we have
f(n)=f(p1)α1f(p2)α2f(pk)αk=p1α1p2α2pkαk=n f(n) = f(p_1)^{\alpha_1} f(p_2)^{\alpha_2} \dots f(p_k)^{\alpha_k} = p_1^{\alpha_1} p_2^{\alpha_2} \dots p_k^{\alpha_k} = n
which completes our proof.

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 and solution reproduced as published; topic and difficulty added by this site.