On the solvability of a functional equation