Maths Olympiad Prep

Library / /400 of 520

Combinatorics Difficulty 7.3 National olympiad, round 2 Find the answer

Let N\mathbb N be the set of all positive integers. A subset AA of N\mathbb N is sum-free if, whenever xx and yy are (not necessarily distinct) members of AA, their sum x+yx+y does not belong to AA. Determine all surjective functions f:NNf:\mathbb N\to\mathbb N such that, for each sum-free subset AA of N\mathbb N, the image {f(a):aA}\{f(a):a\in A\} is also sum-free.

*Note: a function f:NNf:\mathbb N\to\mathbb N is surjective if, for every positive integer nn, there exists a positive integer mm such that f(m)=nf(m)=n.*

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

1. Initial Observation: We need to determine all surjective functions f:NN f: \mathbb{N} \to \mathbb{N} such that for any sum-free subset AN A \subseteq \mathbb{N} , the image {f(a)aA} \{f(a) \mid a \in A\} is also sum-free.

2. Identity Function: The function f(x)=x f(x) = x is a candidate. If A A is sum-free, then {f(a)aA}=A \{f(a) \mid a \in A\} = A is also sum-free. We need to show that this is the only function that satisfies the condition.

3. Claim 1: For all xN x \in \mathbb{N} , f(2x)=2f(x) f(2x) = 2f(x) . If f(y)=2f(x) f(y) = 2f(x) , then y=2x y = 2x .

Proof: Suppose f(x)=c f(x) = c . Since f f is surjective, there exists y y such that f(y)=2f(x)=2c f(y) = 2f(x) = 2c . Thus, f(x)+f(x)=f(y) f(x) + f(x) = f(y) . If {x,y} \{x, y\} is sum-free, then {f(a)a{x,y}} \{f(a) \mid a \in \{x, y\}\} must be sum-free, but f(x)+f(x)=f(y) f(x) + f(x) = f(y) contradicts this. Therefore, y=2x y = 2x or 2x=y 2x = y . Assume y=x2 y = \frac{x}{2} . Then f(x2)=2c f\left(\frac{x}{2}\right) = 2c . By surjectivity, there exists y1 y_1 such that f(y1)=4c=2f(x2) f(y_1) = 4c = 2f\left(\frac{x}{2}\right) . By the same logic, y1{2x2,x22}={x,x4} y_1 \in \left\{2 \cdot \frac{x}{2}, \frac{\frac{x}{2}}{2}\right\} = \left\{x, \frac{x}{4}\right\} . Since y1x y_1 \neq x , y1=x4 y_1 = \frac{x}{4} . Continuing this process, we get a sequence yk y_k such that f(yk)=2k+1c f(y_k) = 2^{k+1}c and yk=x2k y_k = \frac{x}{2^k} . This is impossible since ν2(x) \nu_2(x) is finite. Thus, y=2x y = 2x and f(2x)=2f(x) f(2x) = 2f(x) .

4. Claim 2: Let {ci}i1 \{c_i\}_{i \geq 1} be a sequence of naturals such that f(ci)=i f(c_i) = i for all i1 i \geq 1 . Then ci=ic1 c_i = ic_1 for all i1 i \geq 1 .

Proof: The ci c_i are pairwise distinct since if ci=cj c_i = c_j , then i=f(ci)=f(cj)=j i = f(c_i) = f(c_j) = j . We use induction on i i . For i=1 i = 1 , the result is trivially true. For i=2 i = 2 , by Claim 1, f(c2)=2=2f(c1) f(c_2) = 2 = 2f(c_1) , so c2=2c1 c_2 = 2c_1 . For i=3 i = 3 , f(c3)+f(c1)=f(c4) f(c_3) + f(c_1) = f(c_4) , and from Claim 1, f(c4)=2f(c2) f(c_4) = 2f(c_2) , so c4=2c2=4c1 c_4 = 2c_2 = 4c_1 . Thus, {c1,c3,c4}={c1,c3,4c1} \{c_1, c_3, c_4\} = \{c_1, c_3, 4c_1\} is not sum-free. Since {c1,4c1} \{c_1, 4c_1\} is sum-free, c3{c12,2c1,4c12,2(4c1),4c1c1,4c1+c1}={12c1,2c1,3c1,5c1,8c1} c_3 \in \{\frac{c_1}{2}, 2c_1, \frac{4c_1}{2}, 2(4c_1), 4c_1 - c_1, 4c_1 + c_1\} = \{\frac{1}{2}c_1, 2c_1, 3c_1, 5c_1, 8c_1\} . If c3=12c1 c_3 = \frac{1}{2}c_1 , then f(c1)=f(2c3)=2f(c3)=6 f(c_1) = f(2c_3) = 2f(c_3) = 6 , absurd. If c3=2c1 c_3 = 2c_1 , then f(c3)=f(2c1)=2f(c1)=2 f(c_3) = f(2c_1) = 2f(c_1) = 2 , absurd. If c3=8c1 c_3 = 8c_1 , then f(c3)=f(8c1)=2f(4c1)=4f(2c1)=8f(c1)=8 f(c_3) = f(8c_1) = 2f(4c_1) = 4f(2c_1) = 8f(c_1) = 8 , absurd. Thus, c3{3c1,5c1} c_3 \in \{3c_1, 5c_1\} . If c3=5c1 c_3 = 5c_1 , then f(c5)=f(c1)+f(c4)=f(c1)+f(4c1) f(c_5) = f(c_1) + f(c_4) = f(c_1) + f(4c_1) , so {c1,4c1,c5} \{c_1, 4c_1, c_5\} is not sum-free. Thus, c5{c12,2c1,4c12,2(4c1),4c1c1,4c1+c1}={12c1,2c1,3c1,5c1,8c1} c_5 \in \{\frac{c_1}{2}, 2c_1, \frac{4c_1}{2}, 2(4c_1), 4c_1 - c_1, 4c_1 + c_1\} = \{\frac{1}{2}c_1, 2c_1, 3c_1, 5c_1, 8c_1\} . If c5=12c1 c_5 = \frac{1}{2}c_1 , then f(c1)=f(2c5)=2f(c5)=10 f(c_1) = f(2c_5) = 2f(c_5) = 10 , absurd. If c5=2c1 c_5 = 2c_1 , then f(c5)=f(2c1)=2f(c1)=2 f(c_5) = f(2c_1) = 2f(c_1) = 2 , absurd. If c5=8c1 c_5 = 8c_1 , then f(c5)=f(8c1)=8f(c1)=8 f(c_5) = f(8c_1) = 8f(c_1) = 8 , absurd. Thus, c5{3c1,5c1} c_5 \in \{3c_1, 5c_1\} . c5 c_5 cannot be 5c1 5c_1 since we are assuming for the sake of contradiction that c3=5c1 c_3 = 5c_1 , and we know c3c5 c_3 \neq c_5 . Thus, c5=3c1 c_5 = 3c_1 . Now, since c3=5c1 c_3 = 5c_1 , it follows that c6=2c3=10c1 c_6 = 2c_3 = 10c_1 by Claim 1, so f(c1)+f(c5)=f(c1)+f(3c1)=f(10c1)=f(c6) f(c_1) + f(c_5) = f(c_1) + f(3c_1) = f(10c_1) = f(c_6) , but {c1,3c1,10c1} \{c_1, 3c_1, 10c_1\} is sum-free, a contradiction. Thus, c3=3c1 c_3 = 3c_1 .

Now, assume that for some k3 k \geq 3 , we have that for all 1ik 1 \leq i \leq k that ci=ic1 c_i = ic_1 . Then, f(ck+1)=f(c1)+f(ck)=f(c1)+f(kc1) f(c_{k+1}) = f(c_1) + f(c_k) = f(c_1) + f(kc_1) , so {c1,kc1,ck+1} \{c_1, kc_1, c_{k+1}\} is not sum-free. Since k3 k \geq 3 , {c1,kc1} \{c_1, kc_1\} is sum-free, so ck+1{c12,2c1,kc12,2kc1,kc1c1,kc1+c1}={12c1,2c1,k2c1,(k1)c1,(k+1)c1,2kc1} c_{k+1} \in \{\frac{c_1}{2}, 2c_1, \frac{kc_1}{2}, 2kc_1, kc_1 - c_1, kc_1 + c_1\} = \left\{\frac{1}{2}c_1, 2c_1, \frac{k}{2}c_1, (k-1)c_1, (k+1)c_1, 2kc_1\right\} . If ck+1=12c1 c_{k+1} = \frac{1}{2}c_1 , then f(c1)=f(2ck+1)=2f(ck+1)=2k+2 f(c_1) = f(2c_{k+1}) = 2f(c_{k+1}) = 2k+2 , absurd. If ck+1=2c1 c_{k+1} = 2c_1 , then f(ck+1)=f(2c1)=2f(c1)=2 f(c_{k+1}) = f(2c_1) = 2f(c_1) = 2 , absurd. If ck+1=k2c1 c_{k+1} = \frac{k}{2}c_1 , then k=f(ck)=f(kc1)=f(2ck+1)=2f(ck+1)=2k+2 k = f(c_k) = f(kc_1) = f(2c_{k+1}) = 2f(c_{k+1}) = 2k+2 , absurd. If ck+1=2kc1 c_{k+1} = 2kc_1 , then f(ck+1)=f(2kc1)=2f(kc1)=2f(ck)=2k f(c_{k+1}) = f(2kc_1) = 2f(kc_1) = 2f(c_k) = 2k , absurd. If ck+1=(k1)c1 c_{k+1} = (k-1)c_1 , ck+1=(k1)c1=ck1 c_{k+1} = (k-1)c_1 = c_{k-1} , absurd. Thus, ck+1=(k+1)c1 c_{k+1} = (k+1)c_1 , as desired, so our inductive step is complete and so we are done.

5. Conclusion: Since f f is surjective, there exists such a sequence {ci} \{c_i\} , so fix such a sequence. If there existed a d1c1 d_1 \neq c_1 for which f(d1)=1 f(d_1) = 1 , then d1,c2,c3, d_1, c_2, c_3, \cdots is also a valid sequence, so c2=2d1 c_2 = 2d_1 . But c2=2c1 c_2 = 2c_1 , so c1=d1 c_1 = d_1 , a contradiction. So f f is injective at 1 1 . Now, f f is injective at any j>1 j > 1 since if there existed a djcj d_j \neq c_j for which f(dj)=j f(d_j) = j , then c1,c2,,cj1,dj,cj+1, c_1, c_2, \cdots, c_{j-1}, d_j, c_{j+1}, \cdots is also a valid sequence, so dj=jc1 d_j = jc_1 . But cj=jc1 c_j = jc_1 as well, so cj=dj c_j = d_j , a contradiction. Thus, f f is bijective, so there exists an i i for which ci=1 c_i = 1 . Then, 1=ic1 1 = ic_1 , so i1 i \mid 1 , implying i=1 i = 1 . Thus, c1=1 c_1 = 1 , so ci=i c_i = i , and so f(i)=i f(i) = i for all i1 i \geq 1 , as desired.

\blacksquare

The final answer is f(x)=x \boxed{ f(x) = x }

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.