Problem

Source: Romanian IMO TST 2006, day 4, problem 1

Tags: function, LaTeX, algebra proposed, algebra



Let $r$ and $s$ be two rational numbers. Find all functions $f: \mathbb Q \to \mathbb Q$ such that for all $x,y\in\mathbb Q$ we have \[ f(x+f(y)) = f(x+r)+y+s. \]