 The formula is also correct if and are functions from the positive integers into some abelian group (viewed as a -module).In the language of Dirichlet convolutions, the first formula may be written as

where denotes the Dirichlet convolution, and is the constant function .The second formula is then written as

Many specific examples are given in the article on multiplicative functions.