Duplication coefficients via generating functions