Maths Olympiad Prep

Library / /4 of 4

Algebra Difficulty 8.9 Shortlist Prove it Taiwan

Suppose function f:NNf: \mathbb{N} \to \mathbb{N} satisfies
fbf(a)(a+1)=(a+1)f(b) f^{bf(a)}(a+1) = (a+1)f(b)
for all positive integers a,bNa, b \in \mathbb{N}, where fk(n)=f(f(f(n)))f^k(n) = f(f(\cdots f(n)\cdots)) denotes the composition of ff with itself kk times. Prove that f(n)=n+1f(n) = n+1 for all nNn \in \mathbb{N}.

Solutions — 2

Solution 1

**Step 1. (ff is injective)
Claim 1.** For any a2a \ge 2, the set {fn(a)nZ0}\{f^n(a) \mid n \in \mathbb{Z}_{\ge 0}\} is infinite.
Proof. First, we have ff(a)(a+1)=P(a,1)(a+1)f(1)f^{f(a)}(a+1) \stackrel{P(a,1)}{=} (a+1)f(1). Varying aa, we see that f(Z0)f(\mathbb{Z}_{\ge 0}) is infinite. Next, we have fbf(a1)(a)=P(a1,b)af(b)f^{bf(a-1)}(a) \stackrel{P(a-1,b)}{=} af(b). So, varying bb, fbf(a1)(a)f^{bf(a-1)}(a) takes infinitely many values. \square
Claim 2. For any a2a \ge 2 and nZ0n \in \mathbb{Z}_{\ge 0}, we have fn(a)af^n(a) \ne a.
Proof. Otherwise, we would get a contradiction with Claim 1. \square
Assume f(b)=f(c)f(b) = f(c) for some b<cb < c. Then we have
(a+1)f(c)=P(a,c)fcf(a)(a+1)=f(cb)f(a)(fbf(a)(a+1))=P(a,b)f(cb)f(a)((a+1)f(b))=f(cb)f(a)((a+1)f(c)), \begin{align*} (a+1)f(c) &\stackrel{P(a,c)}{=} f^{cf(a)}(a+1) \\ &= f^{(c-b)f(a)}(f^{bf(a)}(a+1)) \\ &\stackrel{P(a,b)}{=} f^{(c-b)f(a)}((a+1)f(b)) \\ &= f^{(c-b)f(a)}((a+1)f(c)), \end{align*}
which contradicts Claim 2. So, ff is injective.

Step 2. (f(Z>0)=Z2f(\mathbb{Z}_{>0}) = \mathbb{Z}_{\ge 2})
Claim 3. 11 is not in the range of ff.
Proof. If f(b)=1f(b) = 1, then ff(a)(a+1)=a+1f^{f(a)}(a+1) = a+1 by P(a,1)P(a, 1), which contradicts Claim 2. \square
We say that aa is a descendant of bb if fn(b)=af^n(b) = a for some nZ>0n \in \mathbb{Z}_{>0}.
Claim 4 For any a,b1a, b \ge 1, both of the following cannot happen at the same time:
- aa is a descendant of bb;
- bb is a descendant of aa.
Proof. If both of the above hold, then a=fm(b)a = f^m(b) and b=fn(a)b = f^n(a) for some m,nZ>0m, n \in \mathbb{Z}_{>0}. Then a=fm+n(a)a = f^{m+n}(a), which contradicts Claim 2. \square
Claim 5 For any a,b2a, b \ge 2, exactly one of the following holds:
- aa is a descendant of bb;
- bb is a descendant of aa;
- a=ba = b.
Proof. For any c2c \ge 2, taking m=fcf(a1)1(a)m = f^{cf(a-1)-1}(a) and n=fcf(b1)1(b)n = f^{cf(b-1)-1}(b), we have
f(m)=fcf(a1)1(a)=P(a1,c)af(c)andf(n)=fcf(b1)1(b)=P(b1,c)bf(c). f(m) = f^{cf(a-1)-1}(a) \stackrel{P(a-1,c)}{=} af(c) \quad \text{and} \quad f(n) = f^{cf(b-1)-1}(b) \stackrel{P(b-1,c)}{=} bf(c).
Hence
fnf(a1)(a)=P(a1,n)af(n)=abf(c)=bf(m)=P(a1,m)fmf(b1)(b). f^{nf(a-1)}(a) \stackrel{P(a-1,n)}{=} af(n) = abf(c) = bf(m) \stackrel{P(a-1,m)}{=} f^{mf(b-1)}(b).
The assertion then follows from the injectivity of ff and Claim 2. \square
Now, we show that any a2a \ge 2 is in the range of ff. Let b=f(1)b = f(1). If a=ba = b, then aa is in the range of ff. If aba \ne b, either aa is a descendant of bb, or bb is a descendant of aa by Claim 5. If bb is a descendant of aa, then b=fn(a)b = f^n(a) for some nZ>0n \in \mathbb{Z}_{>0}, so 1=fn1(a)1 = f^{n-1}(a). Then, by Claim 3, we have n=1n = 1, so 1=a1 = a, which is absurd. So, aa is a descendant of bb. In particular, aa is in the range of ff. Thus, f(Z>0)=Z2f(\mathbb{Z}_{>0}) = \mathbb{Z}_{\ge 2}.

Step 3. (f(1)=2f(1) = 2)
Claim 6 Let a,n2a, n \ge 2, then nana is a descendant of aa.
Proof. We write n=f(m)n = f(m) by Step 2. We have na=f(m)a=P(a1,m)fmf(a1)(a)na = f(m)a \stackrel{P(a-1,m)}{=} f^{mf(a-1)}(a), which shows nana is a descendant of aa. \square
By Claim 6, all even integers 4\ge 4 are descendants of 2. Hence 2=f(2k+1)2 = f(2k + 1) for some k0k \ge 0. Next, we show f(2k+1)f(1)f(2k+1) \ge f(1), which implies f(1)=2f(1) = 2. It trivially holds if k=0k = 0. If k1k \ge 1, let nn be the integer such that fn(2)=2k+2f^n(2) = 2k + 2. For any b>n/f(1)b > n/f(1), we have
fbf(1)n(2k+2)=fbf(1)(2)=P(1,b)2f(b)andfbf(2k+1)(2k+2)=P(2k+1,b)(2k+2)f(b). f^{bf(1)-n}(2k+2) = f^{bf(1)}(2) \stackrel{P(1,b)}{=} 2f(b) \quad \text{and} \quad f^{bf(2k+1)}(2k+2) \stackrel{P(2k+1,b)}{=} (2k+2)f(b).
By Claim 6, (2k+2)f(b)(2k+2)f(b) is a descendant of 2f(b)2f(b). By Claim 2, we have b(2k+1)>bf(1)nb(2k+1) > bf(1) - n. By taking bb large enough, we conclude f(2k+1)f(1)f(2k+1) \ge f(1).

Step 4. (f(2)=3f(2) = 3 and f(3)=4f(3) = 4)
From f(1)=2f(1) = 2 and P(1,b)P(1,b), we have f2b(2)=2f(b)f^{2b}(2) = 2f(b). So taking b=1b=1, we obtain f2(2)=2f(1)=4f^2(2) = 2f(1) = 4; and taking b=f(2)b = f(2), we have f2f(2)(2)=2f2(2)=8f^{2f(2)}(2) = 2f^2(2) = 8. Hence, f2f(2)2(4)=f2f(2)(2)=8f^{2f(2)-2}(4) = f^{2f(2)}(2) = 8 and f3(4)=P(3,1)8f^3(4) \stackrel{P(3,1)}{=} 8 give f(3)=2f(2)2f(3) = 2f(2) - 2.
Claim 7 For any m,nZ>0m, n \in \mathbb{Z}_{>0}, if f(m)f(m) divides f(n)f(n), then mnm \le n.
Proof. If f(m)=f(n)f(m) = f(n), the assertion follows from the injectivity of ff. If f(m)<f(n)f(m) < f(n), by P(a,m)P(a,m), P(a,n)P(a,n) and Claim 6, we have that fnf(a)(a+1)f^{nf(a)}(a+1) is a descendant of fmf(a)(a+1)f^{mf(a)}(a+1) for any aZ>0a \in \mathbb{Z}_{>0}. So mf(a)<nf(a)mf(a) < nf(a), and m<nm < n. \square
By Claim 7, every possible divisor of f(2)f(2) is in {1,f(1)=2,f(2)}\{1, f(1) = 2, f(2)\}. Thus f(2)f(2) is an odd prime or f(2)=4f(2) = 4. Since f2(2)=4f^2(2) = 4, we have f(2)4f(2) \ne 4, and hence f(2)f(2) is an odd prime. We set p=f(2)p = f(2).
Now, f(3)=2f(2)2=2(p1)f(3) = 2f(2) - 2 = 2(p-1). Since p1p-1 divides f(3)f(3), we have p1{1,f(1)=2,f(2)=p}p-1 \in \{1, f(1) = 2, f(2) = p\} by Claim 7, so p1=2p-1 = 2. Thus, f(2)=p=3f(2) = p = 3 and f(3)=2(p1)=4f(3) = 2(p-1) = 4.

Step 5. (f(n)=n+1f(n) = n + 1)
Claim 8 For any b1b \ge 1, f(2f(b)1)=2b+2f(2f(b) - 1) = 2b + 2.
Proof. Since f2(2)=4f^2(2) = 4, we have f2b2(4)=f2b(2)=2f(b)f^{2b-2}(4) = f^{2b}(2) = 2f(b), so
ff(2f(b)1)+2b2(4)=ff(2f(b)1)(2f(b))=P(2f(b)1,1)4f(b)=P(3,b)f4b(4), f^{f(2f(b)-1)+2b-2}(4) = f^{f(2f(b)-1)}(2f(b)) \stackrel{P(2f(b)-1,1)}{=} 4f(b) \stackrel{P(3,b)}{=} f^{4b}(4),
which gives us f(2f(b)1)=2b+2f(2f(b) - 1) = 2b + 2. \square
Finally, we prove f(n)=n+1f(n) = n + 1 by induction on nn. Suppose f(n)=n+1f(n) = n + 1 for all 1n2b+11 \le n \le 2b + 1. Replace bb by b+1b + 1 in f(2f(b)1)=2b+2f(2f(b) - 1) = 2b + 2 to get
f(2b+3)=f(2f(b+1)1)=2(b+1)+2=2b+4. f(2b + 3) = f(2f(b + 1) - 1) = 2(b + 1) + 2 = 2b + 4.
By induction hypothesis, we have fb(b+2)=2b+2f^b(b + 2) = 2b + 2. Hence
f(f(2b+2))=fb+2(b+2)=ff(b+1)(b+2)=P(b+1,1)2(b+2)=f(2b+3). f(f(2b + 2)) = f^{b+2}(b + 2) = f^{f(b+1)}(b + 2) \stackrel{P(b+1,1)}{=} 2(b + 2) = f(2b + 3).
By injectivity, f(2b+2)=2b+3f(2b + 2) = 2b + 3. Then f(n)=n+1f(n) = n + 1 for all nZ0n \in \mathbb{Z}_{\ge 0}, which is indeed a solution.

Solution 2

In the same way as Steps 1-2 of Solution 1, we have that ff is injective and f(Z>0)=Z2f(\mathbb{Z}_{>0}) = \mathbb{Z}_{\ge 2}.
We first note that Claim 2 in Solution 1 is also true for a=1a = 1.
Claim 2' For any a,nZ>0a, n \in \mathbb{Z}_{>0}, we have fn(a)af^n(a) \ne a.
Proof. If a2a \ge 2, the assertion was proved in Claim 2 in Solution 1. If a=1a = 1, we have that 1 is not in the range of ff by Claim 3 in Solution 1. So, fn(1)1f^n(1) \ne 1 for every nZ0n \in \mathbb{Z}_{\ge 0}. \square
For any a,bZ>0a, b \in \mathbb{Z}_{>0}, we have
fbf(f(a)1)+1(a)=fbf(f(a)1)+1(f(a))=P(f(a)1,b)f(a)f(b). f^{bf(f(a)-1)+1}(a) = f^{bf(f(a)-1)+1}(f(a)) \stackrel{P(f(a)-1,b)}{=} f(a)f(b).
Since the right-hand side is symmetric in a,ba, b, we have
fbf(f(a)1)+1(a)=f(a)f(b)=faf(f(b)1)+1(b) f^{bf(f(a)-1)+1}(a) = f(a)f(b) = f^{af(f(b)-1)+1}(b)
Since ff is injective, we have fbf(f(a)1)(a)=f(a)f(b)=faf(f(b)1)(b)f^{bf(f(a)-1)}(a) = f(a)f(b) = f^{af(f(b)-1)}(b). We set g(n)=f(f(n)1)g(n) = f(f(n) - 1). Then we have fbg(a)(a)=fag(b)(b)f^{bg(a)}(a) = f^{ag(b)}(b) for any a,bZ0a, b \in \mathbb{Z}_{\ge 0}. We set na,b=bg(a)ag(b)n_{a,b} = bg(a) - ag(b). Then, for sufficiently large nn, we have fn+na,b(a)=fn(b)f^{n+n_{a,b}}(a) = f^n(b). For any a,b,cZ>0a, b, c \in \mathbb{Z}_{>0} and sufficiently large nn, we have
fn+na,b+nb,c+nc,a(a)=fn(a). f^{n+n_{a,b}+n_{b,c}+n_{c,a}}(a) = f^n(a).
By Claim 2' above, we have na,b+nb,c+nc,a=0n_{a,b} + n_{b,c} + n_{c,a} = 0, so
(ab)g(c)+(bc)g(a)+(ca)g(b)=0. (a - b)g(c) + (b - c)g(a) + (c - a)g(b) = 0.
Taking (a,b,c)=(n,n+1,n+2)(a, b, c) = (n, n+1, n+2), we have g(n+1)g(n)=g(n+2)g(n+1)g(n+1) - g(n) = g(n+2) - g(n+1). So, {g(n)}n1\{g(n)\}_{n \ge 1} is an arithmetic progression.
There exist C,DZC, D \in \mathbb{Z} such that g(n)=f(f(n)1)=Cn+Dg(n) = f(f(n) - 1) = Cn + D for all nZ>0n \in \mathbb{Z}_{>0}. By Step 2 of Solution 1, we have f(Z>0)=Z2f(\mathbb{Z}_{>0}) = \mathbb{Z}_{\ge 2}, So C=1C = 1. Since 2=minnZ>0{f(f(n)1)}2 = \min_{n \in \mathbb{Z}_{>0}} \{f(f(n) - 1)\}, we have D=1D = 1.
Thus, g(n)=f(f(n)1)=n+1g(n) = f(f(n) - 1) = n + 1 for all n1n \ge 1. For any a,bZ>0a, b \in \mathbb{Z}_{>0} taking (a,b)=(1,n)(a, b) = (1, n), we have fn(1)=f(n)f^n(1) = f(n), fn1(1)=nf^{n-1}(1) = n again by the injectivity of ff. For any n1n \ge 1, we have f(n)=f(fn1(1))=fn(1)=n+1f(n) = f(f^{n-1}(1)) = f^n(1) = n + 1.

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 translated into English from en; metadata (topic, difficulty) added by this project.