Find all pairs of functions $f ,g : Z \rightarrow Z $ that satisfy $f (g(x)+y) = g( f (y)+x) $ for all integers $ x,y$ and such that $g(x) = g(y)$ only if $x = y$.
Source: Czech and Slovak Match 1995 P2
Tags: functional equation in Z, algebra
Find all pairs of functions $f ,g : Z \rightarrow Z $ that satisfy $f (g(x)+y) = g( f (y)+x) $ for all integers $ x,y$ and such that $g(x) = g(y)$ only if $x = y$.