Maths Olympiad Prep

Library / /15 of 16

Combinatorics Difficulty 9.0 IMO level Prove it IMO

For any integer n2n \geq 2, we compute the integer h(n)h(n) by applying the following procedure to its decimal representation. Let rr be the rightmost digit of nn.
(1) If r=0r=0, then the decimal representation of h(n)h(n) results from the decimal representation of nn by removing this rightmost digit 00.
(2) If 1r91 \leq r \leq 9 we split the decimal representation of nn into a maximal right part RR that solely consists of digits not less than rr and into a left part LL that either is empty or ends with a digit strictly smaller than rr. Then the decimal representation of h(n)h(n) consists of the decimal representation of LL, followed by two copies of the decimal representation of R1R-1. For instance, for the number n=17,151,345,543n=17,151,345,543, we will have L=17,151L=17,151, R=345,543R=345,543 and h(n)=17,151,345,542,345,542h(n)=17,151,345,542,345,542.
Prove that, starting with an arbitrary integer n2n \geq 2, iterated application of hh produces the integer 11 after finitely many steps.

Solutions — 3

Solution 1

We identify integers n2n \geq 2 with the digit-strings, briefly strings, of their decimal representation and extend the definition of hh to all non-empty strings with digits from 00 to 99. We recursively define ten functions f0,,f9f_{0}, \ldots, f_{9} that map some strings into integers for k=9,8,,1,0k=9,8, \ldots, 1,0. The function f9f_{9} is only defined on strings xx (including the empty string ε\varepsilon) that entirely consist of nines. If xx consists of mm nines, then f9(x)=m+1f_{9}(x)=m+1, m=0,1,m=0,1, \ldots. For k8k \leq 8, the domain of fk(x)f_{k}(x) is the set of all strings consisting only of digits that are k\geq k. We write xx in the form x0kx1kx2kxm1kxmx_{0} k x_{1} k x_{2} k \ldots x_{m-1} k x_{m} where the strings xsx_{s} only consist of digits k+1\geq k+1. Note that some of these strings might equal the empty string ε\varepsilon and that m=0m=0 is possible, i.e. the digit kk does not appear in xx. Then we define
fk(x)=s=0m4fk+1(xs). f_{k}(x)=\sum_{s=0}^{m} 4^{f_{k+1}\left(x_{s}\right)} .
We will use the following obvious fact:
Fact 1. If xx does not contain digits smaller than kk, then fi(x)=4fi+1(x)f_{i}(x)=4^{f_{i+1}(x)} for all i=0,,k1i=0, \ldots, k-1. In particular, fi(ε)=49if_{i}(\varepsilon)=4^{9-i} for all i=0,1,,9i=0,1, \ldots, 9.
Moreover, by induction on k=9,8,,0k=9,8, \ldots, 0 it follows easily:
Fact 2. If the nonempty string xx does not contain digits smaller than kk, then fi(x)>fi(ε)f_{i}(x)>f_{i}(\varepsilon) for all i=0,,ki=0, \ldots, k.
We will show the essential fact:
Fact 3. f0(n)>f0(h(n))f_{0}(n)>f_{0}(h(n)).
Then the empty string will necessarily be reached after a finite number of applications of hh. But starting from a string without leading zeros, ε\varepsilon can only be reached via the strings 1000ε1 \rightarrow 00 \rightarrow 0 \rightarrow \varepsilon. Hence also the number 11 will appear after a finite number of applications of hh.

Proof of Fact 3. If the last digit rr of nn is 00, then we write n=x000xm10εn=x_{0} 0 \ldots 0 x_{m-1} 0 \varepsilon where the xix_{i} do not contain the digit 00. Then h(n)=x000xm1h(n)=x_{0} 0 \ldots 0 x_{m-1} and f0(n)f0(h(n))=f0(ε)>0f_{0}(n)-f_{0}(h(n))=f_{0}(\varepsilon)>0.
So let the last digit rr of nn be at least 11. Let L=ykL=y k and R=zrR=z r be the corresponding left and right parts where yy is some string, kr1k \leq r-1 and the string zz consists only of digits not less than rr. Then n=ykzrn=y k z r and h(n)=ykz(r1)z(r1)h(n)=y k z(r-1) z(r-1). Let d(y)d(y) be the smallest digit of yy. We consider two cases which do not exclude each other.

Case 1. d(y)kd(y) \geq k.
Then
fk(n)fk(h(n))=fk(zr)fk(z(r1)z(r1)). f_{k}(n)-f_{k}(h(n))=f_{k}(z r)-f_{k}(z(r-1) z(r-1)) .
In view of Fact 1 this difference is positive if and only if
fr1(zr)fr1(z(r1)z(r1))>0 f_{r-1}(z r)-f_{r-1}(z(r-1) z(r-1))>0
We have, using Fact 2,
fr1(zr)=4fr(zr)=4fr(z)+4fr+1(ε)44fr(z)>4fr(z)+4fr(z)+4fr(ε)=fr1(z(r1)z(r1)). f_{r-1}(z r)=4^{f_{r}(z r)}=4^{f_{r}(z)+4^{f_{r+1}(\varepsilon)}} \geq 4 \cdot 4^{f_{r}(z)}>4^{f_{r}(z)}+4^{f_{r}(z)}+4^{f_{r}(\varepsilon)}=f_{r-1}(z(r-1) z(r-1)) .
Here we use the additional definition f10(ε)=0f_{10}(\varepsilon)=0 if r=9r=9. Consequently, fk(n)fk(h(n))>0f_{k}(n)-f_{k}(h(n))>0 and according to Fact 1, f0(n)f0(h(n))>0f_{0}(n)-f_{0}(h(n))>0.

Case 2. d(y)kd(y) \leq k.
We prove by induction on d(y)=k,k1,,0d(y)=k, k-1, \ldots, 0 that fi(n)fi(h(n))>0f_{i}(n)-f_{i}(h(n))>0 for all i=0,,d(y)i=0, \ldots, d(y). By Fact 1, it suffices to do so for i=d(y)i=d(y). The initialization d(y)=kd(y)=k was already treated in Case 1. Let t=d(y)<kt=d(y)<k. Write yy in the form utvu t v where vv does not contain digits t\leq t. Then, in view of the induction hypothesis,
ft(n)ft(h(n))=ft(vkzr)ft(vkz(r1)z(r1))=4ft+1(vkzr)4ft+1(vkz(r1)z(r1))>0. f_{t}(n)-f_{t}(h(n))=f_{t}(v k z r)-f_{t}(v k z(r-1) z(r-1))=4^{f_{t+1}(v k z r)}-4^{f_{t+1}(v k z(r-1) z(r-1))}>0 .
Thus the inequality fd(y)(n)fd(y)(h(n))>0f_{d(y)}(n)-f_{d(y)}(h(n))>0 is established and from Fact 1 it follows that f0(n)f0(h(n))>0f_{0}(n)-f_{0}(h(n))>0.

Solution 2

We identify integers n2n \geq 2 with the digit-strings, briefly strings, of their decimal representation and extend the definition of hh to all non-empty strings with digits from 00 to 99. Moreover, let us define that the empty string, ε\varepsilon, is being mapped to the empty string. In the following all functions map the set of strings into the set of strings. For two functions ff and gg let gfg \circ f be defined by (gf)(x)=g(f(x))(g \circ f)(x)=g(f(x)) for all strings xx and let, for non-negative integers nn, fnf^{n} denote the nn-fold application of ff. For any string xx let s(x)s(x) be the smallest digit of xx, and for the empty string let s(ε)=s(\varepsilon)=\infty. We define nine functions g1,,g9g_{1}, \ldots, g_{9} as follows: Let k{1,,9}k \in\{1, \ldots, 9\} and let xx be a string. If x=εx=\varepsilon then gk(x)=εg_{k}(x)=\varepsilon. Otherwise, write xx in the form x=yzrx=y z r where yy is either the empty string or ends with a digit smaller than kk, s(z)ks(z) \geq k and rr is the rightmost digit of xx. Then gk(x)=zrg_{k}(x)=z r.

Lemma 1. We have gkh=gkhgkg_{k} \circ h=g_{k} \circ h \circ g_{k} for all k=1,,9k=1, \ldots, 9.

Proof of Lemma 1. Let x=yzrx=y z r be as in the definition of gkg_{k}. If y=εy=\varepsilon, then gk(x)=xg_{k}(x)=x, whence
gk(h(x))=gk(h(gk(x)) g_{k}(h(x))=g_{k}\left(h\left(g_{k}(x)\right)\right.
So let yεy \neq \varepsilon.

Case 1. zz contains a digit smaller than rr.
Let z=uavz=u a v where a<ra<r and s(v)rs(v) \geq r. Then
h(x)={yuavif r=0yuav(r1)v(r1)if r>0 h(x)= \begin{cases}yuav & \text{if } r=0 \\ yuav(r-1) v(r-1) & \text{if } r>0\end{cases}
and
h(gk(x))=h(zr)=h(uavr)={uavif r=0uav(r1)v(r1)if r>0 h\left(g_{k}(x)\right)=h(z r)=h(u a v r)= \begin{cases}uav & \text{if } r=0 \\ uav(r-1) v(r-1) & \text{if } r>0\end{cases}
Since yy ends with a digit smaller than kk, the equality is obviously true.

Case 2. zz does not contain a digit smaller than rr.
Let y=uvy=u v where uu is either the empty string or ends with a digit smaller than rr and s(v)rs(v) \geq r. We have
h(x)={uvzif r=0uvz(r1)vz(r1)if r>0 h(x)= \begin{cases}u v z & \text{if } r=0 \\ u v z(r-1) v z(r-1) & \text{if } r>0\end{cases}
and
h(gk(x))=h(zr)={zif r=0z(r1)z(r1)if r>0 h\left(g_{k}(x)\right)=h(z r)= \begin{cases}z & \text{if } r=0 \\ z(r-1) z(r-1) & \text{if } r>0\end{cases}
Recall that yy and hence vv ends with a digit smaller than kk, but all digits of vv are at least rr. Now if r>kr>k, then v=εv=\varepsilon, whence the terminal digit of uu is smaller than kk, which entails
gk(h(x))=z(r1)z(r1)=gk(h(gk(x))) g_{k}(h(x))=z(r-1) z(r-1)=g_{k}\left(h\left(g_{k}(x)\right)\right)
If rkr \leq k, then
gk(h(x))=z(r1)=gk(h(gk(x))) g_{k}(h(x))=z(r-1)=g_{k}\left(h\left(g_{k}(x)\right)\right)
so that in both cases the equality is true. Thus Lemma 1 is proved.

Lemma 2. Let k{1,,9}k \in\{1, \ldots, 9\}, let xx be a non-empty string and let nn be a positive integer. If hn(x)=εh^{n}(x)=\varepsilon then (gkh)n(x)=ε\left(g_{k} \circ h\right)^{n}(x)=\varepsilon.

Proof of Lemma 2. We proceed by induction on nn. If n=1n=1 we have
ε=h(x)=gk(h(x))=(gkh)(x) \varepsilon=h(x)=g_{k}(h(x))=\left(g_{k} \circ h\right)(x)
Now consider the step from n1n-1 to nn where n2n \geq 2. Let hn(x)=εh^{n}(x)=\varepsilon and let y=h(x)y=h(x). Then hn1(y)=εh^{n-1}(y)=\varepsilon and by the induction hypothesis (gkh)n1(y)=ε\left(g_{k} \circ h\right)^{n-1}(y)=\varepsilon. In view of Lemma 1,
ε=(gkh)n2((gkh)(y))=(gkh)n2(gk(h(y)))=(gkh)n2(gk(h(gk(y)))=(gkh)n2(gk(h(gk(h(x))))=(gkh)n(x). \begin{aligned} & \varepsilon=\left(g_{k} \circ h\right)^{n-2}\left(\left(g_{k} \circ h\right)(y)\right)=\left(g_{k} \circ h\right)^{n-2}\left(g_{k}(h(y))\right) \\ & \quad=\left(g_{k} \circ h\right)^{n-2}\left(g_{k}\left(h\left(g_{k}(y)\right)\right)=\left(g_{k} \circ h\right)^{n-2}\left(g_{k}\left(h\left(g_{k}(h(x))\right)\right)=\left(g_{k} \circ h\right)^{n}(x) .\right.\right. \end{aligned}
Thus the induction step is complete and Lemma 2 is proved.

We say that the non-empty string xx terminates if hn(x)=εh^{n}(x)=\varepsilon for some non-negative integer nn.

Lemma 3. Let x=yzrx=y z r where s(y)k,s(z)k,ys(y) \geq k, s(z) \geq k, y ends with the digit kk and zz is possibly empty. If yy and zrz r terminate then also xx terminates.

Proof of Lemma 3. Suppose that yy and zrz r terminate. We proceed by induction on kk. Let k=0k=0. Obviously, h(yw)=yh(w)h(y w)=y h(w) for any non-empty string ww. Let hn(zr)=ϵh^{n}(z r)=\epsilon. It follows easily by induction on mm that hm(yzr)=yhm(zr)h^{m}(y z r)=y h^{m}(z r) for m=1,,nm=1, \ldots, n. Consequently, hn(yzr)=yh^{n}(y z r)=y. Since yy terminates, also x=yzrx=y z r terminates.

Now let the assertion be true for all nonnegative integers less than kk and let us prove it for kk where k1k \geq 1. It turns out that it is sufficient to prove that ygk(h(zr))y g_{k}(h(z r)) terminates. Indeed:

Case 1. r=0r=0.
Then h(yzr)=yz=ygk(h(zr))h(y z r)=y z=y g_{k}(h(z r)).

Case 2. 0<rk0<r \leq k.
We have h(zr)=z(r1)z(r1)h(z r)=z(r-1) z(r-1) and gk(h(zr))=z(r1)g_{k}(h(z r))=z(r-1). Then h(yzr)=yz(r1)yz(r1)=ygk(h(zr))ygk(h(zr))h(y z r)=y z(r-1) y z(r-1)=y g_{k}(h(z r)) y g_{k}(h(z r)) and we may apply the induction hypothesis to see that if ygk(h(zr))y g_{k}(h(z r)) terminates, then h(yzr)h(y z r) terminates.

Case 3. r>kr>k.
Then h(yzr)=yh(zr)=ygk(h(zr))h(y z r)=y h(z r)=y g_{k}(h(z r)).
Note that ygk(h(zr))y g_{k}(h(z r)) has the form yzry z^{\prime} r^{\prime} where s(z)ks\left(z^{\prime}\right) \geq k. By the same arguments it is sufficient to prove that ygk(h(zr))=y(gkh)2(zr)y g_{k}\left(h\left(z^{\prime} r^{\prime}\right)\right)=y\left(g_{k} \circ h\right)^{2}(z r) terminates and, by induction, that y(gkh)m(zr)y\left(g_{k} \circ h\right)^{m}(z r) terminates for some positive integer mm. In view of Lemma 2 there is some mm such that (gkh)m(zr)=ϵ(g_{k} \circ h)^{m}(z r)=\epsilon, so x=yzrx=y z r terminates if yy terminates. Thus Lemma 3 is proved.

Now assume that there is some string xx that does not terminate. We choose xx minimal. If x10x \geq 10, we can write xx in the form x=yzrx=y z r of Lemma 3 and by this lemma xx terminates since yy and zrz r are smaller than xx. If x9x \leq 9, then h(x)=(x1)(x1)h(x)=(x-1)(x-1) and h(x)h(x) terminates again by Lemma 3 and the minimal choice of xx.

Solution 3

We commence by introducing some terminology. Instead of integers, we will consider the set SS of all strings consisting of the digits 0,1,,90,1, \ldots, 9, including the empty string ϵ\epsilon. If (a1,a2,,an)\left(a_{1}, a_{2}, \ldots, a_{n}\right) is a nonempty string, we let ρ(a)=an\rho(a)=a_{n} denote the terminal digit of aa and λ(a)\lambda(a) be the string with the last digit removed. We also define λ(ϵ)=ϵ\lambda(\epsilon)=\epsilon and denote the set of non-negative integers by N0\mathbb{N}_{0}.

Now let k{0,1,2,,9}k \in\{0,1,2, \ldots, 9\} denote any digit. We define a function fk:SSf_{k}: S \longrightarrow S on the set of strings: First, if the terminal digit of nn belongs to {0,1,,k}\{0,1, \ldots, k\}, then fk(n)f_{k}(n) is obtained from nn by deleting this terminal digit, i.e fk(n)=λ(n)f_{k}(n)=\lambda(n). Secondly, if the terminal digit of nn belongs to {k+1,,9}\{k+1, \ldots, 9\}, then fk(n)f_{k}(n) is obtained from nn by the process described in the problem. We also define fk(ϵ)=ϵf_{k}(\epsilon)=\epsilon. Note that up to the definition for integers n1n \leq 1, the function f0f_{0} coincides with the function hh in the problem, through interpreting integers as digit strings. The argument will be roughly as follows. We begin by introducing a straightforward generalization of our claim about f0f_{0}. Then it will be easy to see that f9f_{9} has all these stronger properties, which means that is suffices to show for k{0,1,,8}k \in\{0,1, \ldots, 8\} that fkf_{k} possesses these properties provided that fk+1f_{k+1} does.

We continue to use kk to denote any digit. The operation fkf_{k} is said to be separating, if the following holds: Whenever aa is an initial segment of bb, there is some NN0N \in \mathbb{N}_{0} such that fkN(b)=af_{k}^{N}(b)=a. The following two notions only apply to the case where fkf_{k} is indeed separating, otherwise they remain undefined. For every aSa \in S we denote the least NN0N \in \mathbb{N}_{0} for which fkN(a)=ϵf_{k}^{N}(a)=\epsilon occurs by gk(a)g_{k}(a) (because ϵ\epsilon is an initial segment of aa, such an NN exists if fkf_{k} is separating). If for every two strings aa and bb such that aa is a terminal segment of bb one has gk(a)gk(b)g_{k}(a) \leq g_{k}(b), we say that fkf_{k} is coherent. In case that fkf_{k} is separating and coherent we call the digit kk seductive.

As f9(a)=λ(a)f_{9}(a)=\lambda(a) for all aa, it is obvious that 99 is seductive. Hence in order to show that 00 is seductive, which clearly implies the statement of the problem, it suffices to take any k{0,1,,8}k \in\{0,1, \ldots, 8\} such that k+1k+1 is seductive and to prove that kk has to be seductive as well. Note that in doing so, we have the function gk+1g_{k+1} at our disposal. We have to establish two things and we begin with

Step 1. fkf_{k} is separating.

Before embarking on the proof of this, we record a useful observation which is easily proved by induction on MM.

Claim 1. For any strings A,BA, B and any positive integer MM such that fkM1(B)ϵf_{k}^{M-1}(B) \neq \epsilon, we have
fkM(AkB)=AkfkM(B). f_{k}^{M}(A k B)=A k f_{k}^{M}(B) .

Now we call a pair (a,b)(a, b) of strings wicked provided that aa is an initial segment of bb, but there is no NN0N \in \mathbb{N}_{0} such that fkN(b)=af_{k}^{N}(b)=a. We need to show that there are none, so assume that there were such pairs. Choose a wicked pair (a,b)(a, b) for which gk+1(b)g_{k+1}(b) attains its minimal possible value. Obviously bϵb \neq \epsilon for any wicked pair (a,b)(a, b). Let zz denote the terminal digit of bb. Observe that aba \neq b, which means that aa is also an initial segment of λ(b)\lambda(b). To facilitate the construction of the eventual contradiction, we prove

Claim 2. There cannot be an NN0N \in \mathbb{N}_{0} such that
fkN(b)=λ(b) f_{k}^{N}(b)=\lambda(b)

Proof of Claim 2. For suppose that such an NN existed. Because gk+1(λ(b))<gk+1(b)g_{k+1}(\lambda(b))<g_{k+1}(b) in view of the coherency of fk+1f_{k+1}, the pair (a,λ(b))(a, \lambda(b)) is not wicked. But then there is some NN' for which fkN(λ(b))=af_{k}^{N'}(\lambda(b))=a which entails fkN+N(b)=af_{k}^{N+N'}(b)=a, contradiction. Hence Claim 2 is proved.

It follows that zkz \leq k is impossible, for otherwise N=1N=1 violated Claim 2.
Also z>k+1z>k+1 is impossible: Set B=fk(b)B=f_{k}(b). Then also fk+1(b)=Bf_{k+1}(b)=B, but gk+1(B)<gk+1(b)g_{k+1}(B)<g_{k+1}(b) and aa is an initial segment of BB. Thus the pair (a,B)(a, B) is not wicked. Hence there is some NN0N \in \mathbb{N}_{0} with a=fkN(B)a=f_{k}^{N}(B), which, however, entails a=fkN+1(b)a=f_{k}^{N+1}(b).

We are left with the case z=k+1z=k+1. Let LL denote the left part and R=R(k+1)R=R^{*}(k+1) the right part of bb. Then we have symbolically
fk(b)=LRkRk,fk2(b)=LRkRandfk+1(b)=LR. f_{k}(b)=L R^{*} k R^{*} k, \quad f_{k}^{2}(b)=L R^{*} k R^{*} \quad \text{and} \quad f_{k+1}(b)=L R^{*} .
Using that RR^{*} is a terminal segment of LRL R^{*} and the coherency of fk+1f_{k+1}, we infer
gk+1(R)gk+1(LR)<gk+1(b) g_{k+1}\left(R^{*}\right) \leq g_{k+1}\left(L R^{*}\right)<g_{k+1}(b)
Hence the pair (ϵ,R)(\epsilon, R^{*}) is not wicked, so there is some minimal MN0M \in \mathbb{N}_{0} with fkM(R)=ϵf_{k}^{M}\left(R^{*}\right)=\epsilon and by Claim 1 it follows that fk2+M(b)=LRkf_{k}^{2+M}(b)=L R^{*} k. Finally, we infer that λ(b)=LR=fk(LRk)=fk3+M(b)\lambda(b)=L R^{*}=f_{k}\left(L R^{*} k\right)= f_{k}^{3+M}(b), which yields a contradiction to Claim 2.

This final contradiction establishes that fkf_{k} is indeed separating.

Step 2. fkf_{k} is coherent.

To prepare the proof of this, we introduce some further pieces of terminology. A nonempty string (a1,a2,,an)\left(a_{1}, a_{2}, \ldots, a_{n}\right) is called a hypostasis, if an<aia_{n}<a_{i} for all i=1,,n1i=1, \ldots, n-1. Reading an arbitrary string aa backwards, we easily find a, possibly empty, sequence (A1,A2,,Am)(A_{1}, A_{2}, \ldots, A_{m}) of hypostases such that ρ(A1)ρ(A2)ρ(Am)\rho(A_{1}) \leq \rho(A_{2}) \leq \cdots \leq \rho(A_{m}) and, symbolically, a=A1A2Ama=A_{1} A_{2} \ldots A_{m}. The latter sequence is referred to as the decomposition of aa. So, for instance, (20,0,9)(20,0,9) is the decomposition of 20092009 and the string 5050 is a hypostasis. Next we explain when we say about two strings aa and bb that aa is injectible into bb. The definition is by induction on the length of bb. Let (B1,B2,,Bn)(B_{1}, B_{2}, \ldots, B_{n}) be the decomposition of bb into hypostases. Then aa is injectible into bb if for the decomposition (A1,A2,,Am)(A_{1}, A_{2}, \ldots, A_{m}) of aa there is a strictly increasing function H:{1,2,,m}{1,2,,n}H:\{1,2, \ldots, m\} \longrightarrow\{1,2, \ldots, n\} satisfying
ρ(Ai)=ρ(BH(i)) for all i=1,,m; \rho(A_{i})=\rho(B_{H(i)}) \text{ for all } i=1, \ldots, m ;
λ(Ai)\lambda(A_{i}) is injectible into λ(BH(i))\lambda(B_{H(i)}) for all i=1,,mi=1, \ldots, m.
If one can choose HH with H(m)=nH(m)=n, then we say that aa is strongly injectible into bb. Obviously, if aa is a terminal segment of bb, then aa is strongly injectible into bb.

Claim 3. If aa and bb are two nonempty strings such that aa is strongly injectible into bb, then λ(a)\lambda(a) is injectible into λ(b)\lambda(b).

Proof of Claim 3. Let (B1,B2,,Bn)(B_{1}, B_{2}, \ldots, B_{n}) be the decomposition of bb and let (A1,A2,,Am)(A_{1}, A_{2}, \ldots, A_{m}) be the decomposition of aa. Take a function HH exemplifying that aa is strongly injectible into bb. Let (C1,C2,,Cr)(C_{1}, C_{2}, \ldots, C_{r}) be the decomposition of λ(Am)\lambda(A_{m}) and let (D1,D2,,Ds)(D_{1}, D_{2}, \ldots, D_{s}) be the decomposition of λ(Bn)\lambda(B_{n}). Choose a strictly increasing H:{1,2,,r}{1,2,s}H':\{1,2, \ldots, r\} \longrightarrow\{1,2, \ldots s\} witnessing that λ(Am)\lambda(A_{m}) is injectible into λ(Bn)\lambda(B_{n}). Clearly, (A1,A2,,Am1,C1,C2,,Cr)(A_{1}, A_{2}, \ldots, A_{m-1}, C_{1}, C_{2}, \ldots, C_{r}) is the decomposition of λ(a)\lambda(a) and (B1,B2,,Bn1,D1,D2,,Ds)(B_{1}, B_{2}, \ldots, B_{n-1}, D_{1}, D_{2}, \ldots, D_{s}) is the decomposition of λ(b)\lambda(b). Then the function H:{1,2,,m+r1}{1,2,,n+s1}H'':\{1,2, \ldots, m+r-1\} \longrightarrow\{1,2, \ldots, n+s-1\} given by H(i)=H(i)H''(i)=H(i) for i=1,2,,m1i=1,2, \ldots, m-1 and H(m1+i)=n1+H(i)H''(m-1+i)=n-1+H'(i) for i=1,2,,ri=1,2, \ldots, r exemplifies that λ(a)\lambda(a) is injectible into λ(b)\lambda(b), which finishes the proof of the claim.

A pair (a,b)(a, b) of strings is called aggressive if aa is injectible into bb and nevertheless gk(a)>gk(b)g_{k}(a)>g_{k}(b). Observe that if fkf_{k} was incoherent, which we shall assume from now on, then such pairs existed. Now among all aggressive pairs we choose one, say (a,b)(a, b), for which gk(b)g_{k}(b) attains its least possible value. Obviously fk(a)f_{k}(a) cannot be injectible into fk(b)f_{k}(b), for otherwise the pair (fk(a),fk(b))(f_{k}(a), f_{k}(b)) was aggressive and contradicted our choice of (a,b)(a, b). Let (A1,A2,,Am)(A_{1}, A_{2}, \ldots, A_{m}) and (B1,B2,,Bn)(B_{1}, B_{2}, \ldots, B_{n}) be the decompositions of aa and bb and take a function H:{1,2,,m}{1,2,,n}H:\{1,2, \ldots, m\} \longrightarrow\{1,2, \ldots, n\} exemplifying that aa is indeed injectible into bb. If we had H(m)<nH(m)<n, then aa was also injectible into the number bb' whose decomposition is (B1,B2,,Bn1)(B_{1}, B_{2}, \ldots, B_{n-1}) and by separativity of fkf_{k} we obtained gk(b)<gk(b)g_{k}(b')<g_{k}(b), whence the pair (a,b)(a, b') was also aggressive, contrary to the minimality condition imposed on bb. Therefore aa is strongly injectible into bb. In particular, aa and bb have a common terminal digit, say zz. If we had zkz \leq k, then fk(a)=λ(a)f_{k}(a)=\lambda(a) and fk(b)=λ(b)f_{k}(b)=\lambda(b), so that by Claim 3, fk(a)f_{k}(a) was injectible into fk(b)f_{k}(b), which is a contradiction. Hence, zk+1z \geq k+1.

Now let rr be the minimal element of {1,2,,m}\{1,2, \ldots, m\} for which ρ(Ar)=z\rho(A_{r})=z. Then the maximal right part of aa consisting of digits z\geq z is equal to RaR_{a}, the string whose decomposition is (Ar,Ar+1,,Am)(A_{r}, A_{r+1}, \ldots, A_{m}). Then Ra1R_{a}-1 is a hypostasis and (A1,,Ar1,Ra1,Ra1)(A_{1}, \ldots, A_{r-1}, R_{a}-1, R_{a}-1) is the decomposition of fk(a)f_{k}(a). Defining ss and RbR_{b} in a similar fashion with respect to bb, we see that (B1,,Bs1,Rb1,Rb1)(B_{1}, \ldots, B_{s-1}, R_{b}-1, R_{b}-1) is the decomposition of fk(b)f_{k}(b). The definition of injectibility then easily entails that RaR_{a} is strongly injectible into RbR_{b}. It follows from Claim 3 that λ(Ra)=λ(Ra1)\lambda(R_{a})= \lambda(R_{a}-1) is injectible into λ(Rb)=λ(Rb1)\lambda(R_{b})=\lambda(R_{b}-1), whence the function H:{1,2,,r+1}{1,2,,s+1}H':\{1,2, \ldots, r+1\} \longrightarrow \{1,2, \ldots, s+1\}, given by H(i)=H(i)H'(i)=H(i) for i=1,2,,r1i=1,2, \ldots, r-1, H(r)=sH'(r)=s and H(r+1)=s+1H'(r+1)=s+1 exemplifies that fk(a)f_{k}(a) is injectible into fk(b)f_{k}(b), which yields a contradiction as before.

This shows that aggressive pairs cannot exist, whence fkf_{k} is indeed coherent, which finishes the proof of the seductivity of kk, whereby the problem is finally solved.

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.