Maths Olympiad Prep

Library / USAJMO /24 of 29

USAJMO

Algebra Difficulty 7.4 National Olympiad, round 2 Find the answer

Let Z\mathbb Z be the set of all integers. Find all pairs of integers (a,b)(a,b) for which there exist functions f:Z→Zf:\mathbb Z\rightarrow\mathbb Z and g:Z→Zg:\mathbb Z\rightarrow\mathbb Z satisfying f(g(x))=x+aandg(f(x))=x+bf(g(x))=x+a\quad\text{and}\quad g(f(x))=x+b for all integers xx .

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

Solution

We claim that the answer is ∣a∣=∣b∣|a|=|b| .
Proof: ff and gg are surjective because x+ax+a and x+bx+b can take on any integral value, and by evaluating the parentheses in different order, we find f(g(f(x)))=f(x+b)=f(x)+af(g(f(x)))=f(x+b)=f(x)+a and g(f(g(x)))=g(x+a)=g(x)+bg(f(g(x)))=g(x+a)=g(x)+b . We see that if a=0a=0 then g(x)=g(x)+bg(x)=g(x)+b to b=0b=0 as well, so similarly if b=0b=0 then a=0a=0 , so now assume a,b≠0a, b\ne 0 .
We see that if x=∣b∣nx=|b|n then f(x)≡f(0)(mod∣a∣)f(x)\equiv f(0) \pmod{|a|} , if x=∣b∣n+1x=|b|n+1 then f(x)≡f(1)(mod∣a∣)f(x)\equiv f(1)\pmod{|a|} , if x=∣b∣n+2x=|b|n+2 then f(x)≡f(2)(mod∣a∣)f(x)\equiv f(2)\pmod{|a|} ... if x=∣b∣(n+1)−1x=|b|(n+1)-1 then f(x)≡f(∣b∣−1)(mod∣a∣)f(x)\equiv f(|b|-1)\pmod{|a|} . This means that the bb -element collection {f(0),f(1),f(2),...,f(∣b∣−1)}\left\{f(0), f(1), f(2), ... ,f(|b|-1)\right\} contains all ∣a∣|a| residues mod ∣a∣|a| since ff is surjective, so ∣b∣≥∣a∣|b|\ge |a| . Doing the same to gg yields that ∣a∣≥∣b∣|a|\ge |b| , so this means that only ∣a∣=∣b∣|a|=|b| can work.
For a=ba=b let f(x)=xf(x)=x and g(x)=x+ag(x)=x+a , and for a=−ba=-b let f(x)=−xf(x)=-x and g(x)=−x−ag(x)=-x-a , so ∣a∣=∣b∣|a|=|b| does work and are the only solutions, as desired.
-Stormersyle

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.