Let Q' denote the set of all positive rational numbers. If f:Q'→Q' satisfies
(In reply to one solution
f(x)=0 works likewise. Whoops! 0 is not positive - so nothing maps into Q'. Nevermind.
Edited on November 1, 2019, 11:30 am