Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 1998 / Problems / Day 2, P10

IMC 1998 · Day 2 · P10

combinatoricsworth 20 pts

Let An={1,2,,n}A_n = \{1, 2, \dots, n\}, where n3n \ge 3. Let FF be the family of all non-constant functions f:AnAnf : A_n \to A_n satisfying the following conditions:

(1) f(k)f(k+1)f(k) \le f(k+1) for k=1,2,,n1k = 1, 2, \dots, n-1,

(2) f(k)=f(f(k+1))f(k) = f(f(k+1)) for k=1,2,,n1k = 1, 2, \dots, n-1.

Find the number of functions in FF.

Solution (official)

It is clear that id:AnAnid : A_n \longrightarrow A_n, given by id(x)=xid(x) = x, does not verify condition (2). Since idid is the only increasing injection on AnA_n, FF does not contain injections. Let us take any fFf \in F and suppose that #(f1(k))2\#(f^{-1}(k)) \ge 2. Since ff is increasing, there exists iAni \in A_n such that f(i)=f(i+1)=kf(i) = f(i+1) = k. In view of (2), f(k)=f(f(i+1))=f(i)=kf(k) = f(f(i+1)) = f(i) = k. If {i<k:f(i)<k}=\{i < k : f(i) < k\} = \emptyset, then taking j=max{i<k:f(i)<k}j = \max\{i < k : f(i) < k\} we get f(j)<f(j+1)=k=f(f(j+1))f(j) < f(j+1) = k = f(f(j+1)), a contradiction. Hence f(i)=kf(i) = k for iki \le k. If #(f1({l}))2\#(f^{-1}(\{l\})) \ge 2 for some lkl \ge k, then the similar consideration shows that f(i)=l=kf(i) = l = k for iki \le k. Hence #(f1{i})=0\#(f^{-1}\{i\}) = 0 or 1 for every i>ki > k. Therefore f(i)if(i) \le i for i>ki > k. If f(l)=lf(l) = l, then taking j=max{i<l:f(i)<l}j = \max\{i < l : f(i) < l\} we get f(j)<f(j+1)=l=f(f(j+1))f(j) < f(j+1) = l = f(f(j+1)), a contradiction. Thus, f(i)i1f(i) \le i - 1 for i>ki > k. Let m=max{i:f(i)=k}m = \max\{i : f(i) = k\}. Since ff is non-constant mn1m \le n-1. Since k=f(m)=f(f(m+1))k = f(m) = f(f(m+1)), f(m+1)[k+1,m]f(m+1) \in [k+1, m]. If f(l)>l1f(l) > l-1 for some l>m+1l > m+1, then l1l-1 and f(l)f(l) belong to f1(f(l))f^{-1}(f(l)) and this contradicts the facts above. Hence f(i)=i1f(i) = i-1 for i>m+1i > m+1. Thus we show that every function ff in FF is defined by natural numbers kk, ll, mm, where 1k<l=f(m+1)mn11 \le k < l = f(m+1) \le m \le n-1. f(i)={kif imlif i=m+1i1if i>m+1.f(i) = \begin{cases} k & \text{if } i \le m \\ l & \text{if } i = m+1 \\ i-1 & \text{if } i > m+1. \end{cases} Then #(F)=(n3).\#(F) = \binom{n}{3}.

Similar problems

IMC 1999 · Day 1 · P2mediumavg 5.4/10 · solved 47% · near-0 39% · disc 0.64
IMC 1999 · Day 1 · P5mediumavg 5.5/10 · solved 48% · near-0 33% · disc 0.58