Green's-function solution for a special class of master equations.