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 3 of 7: Choosing a large clean prime q forces f(p) = 1
f≠id ⟹ f(p)=1 for every odd prime pf\ne\mathrm{id}\ \Longrightarrow\ f(p)=1\ \text{for every odd prime }p
Detailed analysis

Assume f≠idf\ne\mathrm{id} and let pp be any odd prime; by step 1, f(p)f(p) is a power of pp, say f(p)=pmf(p)=p^m. Since only finitely many primes qq have f(q)>1f(q)>1, choose a prime qq larger than all of them with q≢1(modp)q\not\equiv1\pmod p (such qq exists since infinitely many primes avoid the single residue class 1 mod p1\bmod p), so f(q)=1f(q)=1. Then P(p,q)P(p,q) gives f(p)∣qp−f(q)f(p)=qp−1f(p)\mid q^p-f(q)^{f(p)}=q^p-1. If m≥1m\ge1 then p∣f(p)∣qp−1p\mid f(p)\mid q^p-1, but Fermat's little theorem gives qp≡q(modp)q^p\equiv q\pmod p, so qp−1≡q−1≢0(modp)q^p-1\equiv q-1\not\equiv0\pmod p by the choice of qq, a contradiction. Hence m=0m=0, i.e. f(p)=1f(p)=1.