Let Zn be the ring of residue classes modulo n , and let be the group of its units. 90 years ago, Brauer obtained a formula for the number of representations of c∈Zn as the sum of k units. Recently, Yang and Tang (2015) [6] gave a formula for the number of solutions of the equation with . In this paper, we generalize this result. We find an explicit formula for the number of solutions of the equation with .