MathLabs

Problem 3

Let N\mathbb{N} denote the set of positive integers. A function f:N→Nf:\mathbb{N}\to\mathbb{N} is said to be bonza if f(a)f(a) divides ba−f(b)f(a)b^a-f(b)^{f(a)} for all positive integers aa and bb. Determine the smallest real constant cc such that f(n)≤cnf(n)\le cn for all bonza functions ff and all positive integers nn.
Step 6 of 7: A construction attaining c = 4 exactly
f(n)={1n odd16n=42n even, n≠4 is bonza and has f(4)=16=4⋅4f(n)=\begin{cases}1 & n\text{ odd}\\16 & n=4\\2 & n\text{ even},\,n\ne4\end{cases}\ \text{is bonza and has}\ f(4)=16=4\cdot4
Detailed analysis

Take f(n)=1f(n)=1 for odd nn, f(4)=16f(4)=16, and f(n)=2f(n)=2 for even n≠4n\ne4. This is bonza: if aa is odd, f(a)=1f(a)=1 divides anything; if a=4a=4, one checks 16∣b4−f(b)1616\mid b^4-f(b)^{16} using that b4≡1(mod16)b^4\equiv1\pmod{16} for odd bb, that 16∣b416\mid b^4 and 16∣21616\mid2^{16} for even b≠4b\ne4, and the case b=4b=4 directly; if aa is even with a≠4a\ne4, one checks 2∣ba−f(b)22\mid b^a-f(b)^2 by parity in each case for bb. Since f(4)=16=4⋅4f(4)=16=4\cdot4, this function shows the bound f(n)≤4nf(n)\le4n cannot be improved, so c=4c=4 is optimal.