Maths Olympiad Prep

Track / Stage 4 / 51 of 340 #311 of 1964

Problem 311

AMC 12 late, AIME early
Number theory Difficulty 4.6 Find the answer

f\mathrm{f} is a function defined on the positive integers with positive integer values. Use fm(n)\mathrm{f}^{\mathrm{m}}(\mathrm{n}) to mean f(f(f(n)))=n\mathrm{f}(\mathrm{f}(\ldots \mathrm{f}(\mathrm{n}) \ldots))=\mathrm{n} where f\mathrm{f} is taken m\mathrm{m} times, so that f2(n)=f(f(n))\mathrm{f}^{2}(\mathrm{n})=\mathrm{f}(\mathrm{f}(\mathrm{n})), for example. Find the largest possible 0<k<10<k<1 such that for some function f\mathrm{f}, we have fm(n)n\mathrm{f}^{\mathrm{m}}(\mathrm{n}) \neq \mathrm{n} for m=1,2,\mathrm{m}=1,2, \ldots, [kn][\mathrm{kn}], but fm(n)=n\mathrm{f}^{\mathrm{m}}(\mathrm{n})=\mathrm{n} for some m\mathrm{m} (which may depend on n)\left.\mathrm{n}\right).

## Answer

we can get k\mathrm{k} arbitrarily close to 1

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

Official solution

The basic idea is to take a block of integers m+1,m+2,,Mm+1, m+2, \ldots, M and to define f(m+1)=m+2f(m+1)=m+2, f(m+2)=m+3,,f(M1)=M,f(M)=m+1f(m+2)=m+3, \ldots, f(M-1)=M, f(M)=m+1. Then for any integer hh in the block we have fn(h)f^{n}(h) h\neq h for n=1,2,,Mm1n=1,2, \ldots, M-m-1 and fMm(h)=hf^{M-m}(h)=h. Note that the ratio (Mm)/h(M-m) / h is worst (smallest) for h=Mh=M.

For example, take the first block to be 1,2,,N1,2, \ldots, N, the second block to be N+1,,N2N+1, \ldots, N^2, the third block, N2+1,,N3N^2+1, \ldots, N^3 and so on. Then for any integer nn we have fm(n)nf^{m}(n) \neq n for m<knm<kn where k=11/Nk=1-1/N.

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