Olympiad Maths Prep

Track / Stage 6 / 363 of 400 #1363 of 2000

Problem 1363

National olympiad, first round
Combinatorics Difficulty 6.8 Prove it

Prove that there is a function F:NN F:\mathbb{N}\longrightarrow\mathbb{N} satisfying (FF)(n)=n2, (F\circ F) (n) =n^2, for all nN. n\in\mathbb{N} .

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. **Define the function g g :**
Consider a function g:NN g: \mathbb{N} \to \mathbb{N} such that g(g(n))=2n g(g(n)) = 2n . This function is known to exist. For instance, one can construct such a function using a pairing function or other combinatorial methods.

2. **Prime factorization of n n :**
Let nN n \in \mathbb{N} have the prime factorization n=p1e1p2e2pkek n = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} , where p1,p2,,pk p_1, p_2, \ldots, p_k are distinct primes and e1,e2,,ek e_1, e_2, \ldots, e_k are their respective exponents.

3. **Define the function F F :**
Define the function F:NN F: \mathbb{N} \to \mathbb{N} as follows:
F(n)=p1g(e1)p2g(e2)pkg(ek) F(n) = p_1^{g(e_1)} p_2^{g(e_2)} \cdots p_k^{g(e_k)}
Note that F(1)=1 F(1) = 1 since the prime factorization of 1 is trivial (no primes).

4. **Verify that (FF)(n)=n2 (F \circ F)(n) = n^2 :**
We need to show that F(F(n))=n2 F(F(n)) = n^2 for all nN n \in \mathbb{N} .

- Consider n=p1e1p2e2pkek n = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} .
- Then, F(n)=p1g(e1)p2g(e2)pkg(ek) F(n) = p_1^{g(e_1)} p_2^{g(e_2)} \cdots p_k^{g(e_k)} .
- Now, apply F F again:
F(F(n))=F(p1g(e1)p2g(e2)pkg(ek))=p1g(g(e1))p2g(g(e2))pkg(g(ek)) F(F(n)) = F(p_1^{g(e_1)} p_2^{g(e_2)} \cdots p_k^{g(e_k)}) = p_1^{g(g(e_1))} p_2^{g(g(e_2))} \cdots p_k^{g(g(e_k))}
- By the definition of g g , we have g(g(ei))=2ei g(g(e_i)) = 2e_i for each i i .
- Therefore,
F(F(n))=p12e1p22e2pk2ek=(p1e1p2e2pkek)2=n2 F(F(n)) = p_1^{2e_1} p_2^{2e_2} \cdots p_k^{2e_k} = (p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k})^2 = n^2

Thus, we have shown that (FF)(n)=n2 (F \circ F)(n) = n^2 for all nN n \in \mathbb{N} .

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.