Question 146
Let $Z$ be the set of all integers. Determine all functions $f : Z \to Z$ satisfying
$$
f(f(m) + n) + f(m) = f(n) + f(3m) + 2014 \text{ for all integers } m \text{ and } n.
$$
$$
f(f(m) + n) + f(m) = f(n) + f(3m) + 2014 \text{ for all integers } m \text{ and } n.
$$