Problem

Source: Already posted

Tags: function



Find all functions from positive integers to itself such that $f(a+b)=f(a)+f(b)+f(c)+f(d)$ for all $c^2+d^2=2ab$