Maths Olympiad Prep

Library / /387 of 397

, 2021

Number theory Difficulty 7.4 National Olympiad, round 2 Prove it Taiwan

Determine all functions ff defined on the set of all positive integers and taking non-negative integer values, satisfying the three conditions:
(1) f(n)0f(n) \neq 0 for at least one nn;
(2) f(xy)=f(x)+f(y)f(xy) = f(x) + f(y) for every positive integers xx and yy;
(3) there are infinitely many positive integers nn such that f(k)=f(nk)f(k) = f(n-k) for all k<nk < n.

Solution

The sought functions are those of the form f(n)=cνp(n)f(n) = c \cdot \nu_p(n), where pp is some prime, cc is a positive integer, and νp(n)\nu_p(n) denotes the exponent of pp in the prime decomposition of nn.

Solution 1. If a number nn is a product of primes, n=p1p2pkn = p_1p_2\cdots p_k, then
f(n)=f(p1)+f(p2)++f(pk), f(n) = f(p_1) + f(p_2) + \cdots + f(p_k),
in particular, f(1)=0f(1) = 0 (since f(1)=f(1)+f(1)f(1) = f(1) + f(1)).
It is also clear that f(n)=0f(n) = 0 implies f(p)=0f(p) = 0 for all primes pp dividing nn.
Let us call a positive integer nn good if f(k)=f(nk)f(k) = f(n-k) for 0<k<n0 < k < n. If nn is good then each its divisor dd is also good; indeed, if n=dmn = dm, then
f(k)=f(mk)f(m)=f(nmk)f(m)=f(m(dk))f(m)=f(dk) f(k) = f(mk) - f(m) = f(n - mk) - f(m) = f(m(d - k)) - f(m) = f(d - k)
for 0<k<d0 < k < d. Thus, good numbers are products of good primes.
It follows immediately from (1) that there exists a prime pp such that f(p)0f(p) \neq 0; let pp be the smallest such prime. Then f(r)=0f(r) = 0 for all r<pr < p (since all prime divisors of r<pr < p are less than pp). Now every good number n>pn > p must be divisible by pp. Indeed, if n=pk+rn = pk + r is a good number, k>0k > 0, 0<r<p0 < r < p, then f(p)f(pk)=f(npk)=f(r)=0f(p) \le f(pk) = f(n - pk) = f(r) = 0, a contradiction. Since any divisor of a good number is also good, this means that if a divisor rr of a good number is not divisible by pp, it is less than pp. Thus all good numbers have the form rpkr \cdot p^k with r<pr < p. The condition (3) implies that kk can be arbitrarily large, consequently all powers of pp are good.

If qpq \neq p is a prime, pq11p^{q-1}-1 is divisible by qq and pq1p^{q-1} is good. Then f(q)f(pq11)=f(1)=0f(q) \le f(p^{q-1}-1) = f(1) = 0, that is, f(q)=0f(q) = 0.
Now, we see that f(n)=νp(n)cf(n) = \nu_p(n) \cdot c, where c=f(p)c = f(p). The conditions (1) and (2) for all such functions with c0c \neq 0 are obvious; the condition (3) holds for all n=pmn = p^m, since νp(pmk)=νp(k)\nu_p(p^m - k) = \nu_p(k) when 0<k<pm0 < k < p^m.

Solution 2. We use the notion of a good number from the previous solution. As above, we also denote by νp(n)\nu_p(n) the exponent of a prime pp in the prime decomposition of nn.
Say that a positive integer kk is big if f(k)>0f(k) > 0. Let B\mathcal{B} be the set of big primes, and let p1<p2<p_1 < p_2 < \dots list the elements of B\mathcal{B} (this set might be either finite or infinite). By the problem conditions, we have
f(n)=iνpi(n)f(pi);(B1) f(n) = \sum_{i} \nu_{p_i}(n) f(p_i); \qquad (B1)
thus, the big numbers are those divisible by at least one big prime.
For a positive integer kk, define its essence e(k)e(k) to be the largest product ee of (not necessarily different) big primes such that eke \mid k. In other words,
e(n)=piBpiνpi(n). e(n) = \prod_{p_i \in \mathcal{B}} p_i^{\nu_{p_i}(n)}.
This yields that k/e(k)k/e(k) is not big, so f(k)=f(e(k))+f(k/e(k))=f(e(k))f(k) = f(e(k)) + f(k/e(k)) = f(e(k)).
Lemma. Assume that nn is a good number. Then e(k)=e(nk)e(k) = e(n-k) for all 0<k<n0 < k < n.
Proof. Arguing indirectly, choose a minimal kk for which the claim of the lemma is violated. Clearly, kk is big, as otherwise f(k)=f(nk)=0f(k) = f(n-k) = 0 and hence e(k)=e(nk)=1e(k) = e(n-k) = 1.
There are t=k/e(k)t = k/e(k) multiples of e(k)e(k) in each of the segments [1,k][1, k] and [nk,n1][n-k, n-1]. On the other hand, there are t1t-1 such multiples on [1,k1][1, k-1] — and, by minimality of kk, on [nk+1,n1][n-k+1, n-1] as well. This yields that nkn-k is a multiple of e(k)e(k). Therefore,
f(e(k))=f(k)=f(nk)=f(e(k))+f(nke(k)), f(e(k)) = f(k) = f(n-k) = f(e(k)) + f\left(\frac{n-k}{e(k)}\right),
so the last summand vanishes, hence nke(k)\frac{n-k}{e(k)} has no big prime divisors, that is, e(nk)=e(k)e(n-k) = e(k). This contradicts to our choice. □
Back to the problem, assume that B2|\mathcal{B}| \ge 2. Take any good number n>p1p2n > p_1p_2, and let p1αp_1^\alpha be the largest power of p1p_1 smaller than nn, so that np1α+1<p1αp2n \le p_1^{\alpha+1} < p_1^\alpha p_2. By the lemma, e(np1α)=e(p1α)=p1αe(n-p_1^\alpha) = e(p_1^\alpha) = p_1^\alpha, which yields p1αnp_1^\alpha | n. Similarly, p2np_2 | n, so that np1αp2n \ge p_1^\alpha p_2. This contradiction shows that B1|\mathcal{B}| \le 1, which by (B1) yields that ff is listed in the answer.

Solution 3. We have f(piαi)=αif(pi)f(\prod p_i^{\alpha_i}) = \sum \alpha_i f(p_i). Note that
f(n1)+f(n2)++f(nk)f(1)+f(2)+f(k) f(n-1) + f(n-2) + \dots + f(n-k) \ge f(1) + f(2) + \dots f(k)
for all k=1,2,,n1k = 1, 2, \dots, n-1, since the difference LHS - RHS is just f((n1k))f\left(\binom{n-1}{k}\right). Assume that f(p)>0f(p) > 0. If f(k)=f(nk)f(k) = f(n-k) for all kk, it implies that (n1k)\binom{n-1}{k} is not divisible by pp for k=1,2,,n2k = 1, 2, \dots, n-2. It is well known that it implies n=apsn = a \cdot p^s, a<pa < p. If there are two primes p,qp, q such that f(p)>0f(p) > 0, f(q)>0f(q) > 0, there exist only finitely many nn which are equal both to apsa \cdot p^s, a<pa < p, and bqtb \cdot q^t, b<qb < q. So there exists at most one such pp, and therefore f(n)=Cνp(n)f(n) = C \cdot \nu_p(n) for some constant CC.

Solution 4. We call a function f:NN0f : \mathbb{N} \to \mathbb{N}_0 satisfying (2) additive. We call a pair (f,n)(f, n), where ff is an additive function and nNn \in \mathbb{N}, good, if for all k<nk < n it holds f(k)=f(nk)f(k) = f(n-k). For an additive function ff and a prime number pp the number f(p)lnp\frac{f(p)}{\ln p} is denoted by g(f,p)g(f, p).
Let (f,n)(f, n) be a good pair such that f(p)>0f(p) > 0 for at least two primes less than nn. Let p0p_0 be the prime with maximal g(f,p)g(f, p) among all primes p<np < n. Let a0a_0 be the maximal exponent such that p0a0<np_0^{a_0} < n. Then f(k)<f(p0a0)f(k) < f(p_0^{a_0}) for all k<p0a0k < p_0^{a_0}. Indeed, if k=p1a1pmam<p0a0k = p_1^{a_1} \cdots p_m^{a_m} < p_0^{a_0}, then
f(k)=a1f(p1)++amf(pm)=g(f,p1)a1lnp1++g(f,pm)amlnam<g(f,p0)a0lnp0=f(p0a0). \begin{align*} f(k) &= a_1 f(p_1) + \dots + a_m f(p_m) \\ &= g(f, p_1) a_1 \ln p_1 + \dots + g(f, p_m) a_m \ln a_m \\ &< g(f, p_0) a_0 \ln p_0 = f(p_0^{a_0}). \end{align*}

Let n=bp0a0+rn = bp_0^{a_0} + r, where 0<r<p0a00 < r < p_0^{a_0}. Then f(r)=f(bp0a0)f(p0a0)f(r) = f(bp_0^{a_0}) \ge f(p_0^{a_0}). This contradiction shows that p0a0np_0^{a_0} | n. Then n=p0νp0(n)nn = p_0^{\nu_{p_0}(n)}n', where np0n' \le p_0.
The function f1(m):=f(p0)νp0(m)f_1(m) := f(p_0)\nu_{p_0}(m) and f2:=ff1f_2 := f - f_1 are additive (obviously f(m)f(p0νp0(m))=f1(m)f(m) \ge f(p_0^{\nu_{p_0}(m)}) = f_1(m), since p0νp0(m)p_0^{\nu_{p_0}(m)} divides mm). For k<nk < n, νp(k)=νp(nk)\nu_p(k) = \nu_p(n-k). Hence the pair (f2,n)(f_2, n) is also good. Note that f2(p0)=0f_2(p_0) = 0.
Choose among all primes p<np < n the prime q0q_0 with maximal g(f2,p)g(f_2, p). As above we can prove that n=q0νq0(n)nn = q_0^{\nu_{q_0}(n)}n'' with n<q0n'' < q_0. Since p0q0p_0 \ne q_0, we get a contradiction. Thus f(n)=f(p)νp(n)f(n) = f(p) \cdot \nu_p(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: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.