Maths Olympiad Prep

Library / /72 of 520

Number theory Difficulty 6.4 National olympiad Find the answer

Find all f:N \longrightarrow N that:
[list][b]a)[/b] f(m)=1m=1f(m)=1 \Longleftrightarrow m=1
[b]b)[/b] d=gcd(m,n)f(mn)=f(m)f(n)f(d)d=gcd(m,n) f(m\cdot n)= \frac{f(m)\cdot f(n)}{f(d)}
[b]c)[/b] f2000(m)=f(m) f^{2000}(m)=f(m) [/list]

A number or a short expression. Spacing and $ signs are ignored.

Solution

To solve the problem, we need to find all functions f:NN f: \mathbb{N} \to \mathbb{N} that satisfy the given conditions:

1. f(m)=1m=1 f(m) = 1 \Longleftrightarrow m = 1
2. d=gcd(m,n)    f(mn)=f(m)f(n)f(d) d = \gcd(m, n) \implies f(m \cdot n) = \frac{f(m) \cdot f(n)}{f(d)}
3. f2000(m)=f(m) f^{2000}(m) = f(m)

Let's analyze each condition step by step.

### Step 1: Analyzing Condition (a)
Condition (a) states that f(m)=1 f(m) = 1 if and only if m=1 m = 1 . This implies that f(1)=1 f(1) = 1 and for any m1 m \neq 1 , f(m)1 f(m) \neq 1 .

### Step 2: Analyzing Condition (b)
Condition (b) involves the greatest common divisor (gcd). Let's rewrite it for clarity:
d=gcd(m,n)    f(mn)=f(m)f(n)f(d) d = \gcd(m, n) \implies f(m \cdot n) = \frac{f(m) \cdot f(n)}{f(d)}

To understand this, consider the prime factorization of m m and n n . Let:
m=p1a1p2a2pkak m = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}
n=p1b1p2b2pkbk n = p_1^{b_1} p_2^{b_2} \cdots p_k^{b_k}

Then:
gcd(m,n)=p1min(a1,b1)p2min(a2,b2)pkmin(ak,bk) \gcd(m, n) = p_1^{\min(a_1, b_1)} p_2^{\min(a_2, b_2)} \cdots p_k^{\min(a_k, b_k)}
mn=p1a1+b1p2a2+b2pkak+bk m \cdot n = p_1^{a_1 + b_1} p_2^{a_2 + b_2} \cdots p_k^{a_k + b_k}

Using condition (b), we get:
f(mn)=f(m)f(n)f(gcd(m,n)) f(m \cdot n) = \frac{f(m) \cdot f(n)}{f(\gcd(m, n))}

### Step 3: Analyzing Condition (c)
Condition (c) states that f2000(m)=f(m) f^{2000}(m) = f(m) . This means that applying the function f f 2000 times returns the original value. This implies that f f is periodic with period dividing 2000.

### Step 4: Combining Conditions
From condition (b), we can infer that f f is multiplicative. Let's assume f f is defined on prime powers. Let p p be a prime and k k be a positive integer. Then:
f(pk)=f(p)f(pk1) f(p^k) = f(p) \cdot f(p^{k-1})

By induction, we can show that:
f(pk)=f(p)k f(p^k) = f(p)^k

### Step 5: Using Condition (c)
Since f f is periodic with period dividing 2000, we need to find f(p) f(p) such that f(p)2000=f(p) f(p)^{2000} = f(p) . This implies:
f(p)1999=1 f(p)^{1999} = 1

The only natural number that satisfies this equation is 1. However, from condition (a), f(p)1 f(p) \neq 1 for any prime p p . Therefore, we need to find another solution.

### Step 6: Conclusion
Given the constraints, the only possible solution that satisfies all conditions is:
f(n)=n f(n) = n

Let's verify:
1. f(1)=1 f(1) = 1 and for m1 m \neq 1 , f(m)1 f(m) \neq 1 .
2. f(mn)=mn=mngcd(m,n)gcd(m,n)=f(m)f(n)f(gcd(m,n)) f(m \cdot n) = m \cdot n = \frac{m \cdot n}{\gcd(m, n)} \cdot \gcd(m, n) = \frac{f(m) \cdot f(n)}{f(\gcd(m, n))} .
3. f2000(m)=m=f(m) f^{2000}(m) = m = f(m) .

Thus, the function f(n)=n f(n) = n satisfies all the given conditions.

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

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.