In mathematics, the classic Möbius inversion formula is a relation between pairs of arithmetic functions, each defined from the other by sums over divisors. It was introduced into number theory in 1832 by August Ferdinand Möbius. A large generalization of this formula applies to summation over an arbitrary locally finite partially ordered set, with Möbius' classical formula applying to the set of the natural numbers ordered by divisibility: see incidence algebra. Statement of the formula. The classic version states that if and are arithmetic functions satisfying formula_1 then formula_2 where is the Möbius function and the sums extend over all positive divisors of (indicated by formula_3 in the above formulae). In effect, the original can be determined given by using the inversion formula. The two sequences are said to be Möbius transforms of each other. 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 formula_4 where denotes the Dirichlet convolution, and is the constant function . The second formula is then written as formula_5 Many specific examples are given in the article on multiplicative functions. The theorem follows because is (commutative and) associative, and , where is the identity function for the Dirichlet convolution, taking values , for all . Thus formula_6. Replacing formula_7 by formula_8, we obtain the product version of the Möbius inversion formula: formula_9 Series relations. Let formula_10 so that formula_11 is its transform. The transforms are related by means of series: the Lambert series formula_12 and the Dirichlet series: formula_13 where is the Riemann zeta function. Repeated transformations. Given an arithmetic function, one can generate a bi-infinite sequence of other arithmetic functions by repeatedly applying the first summation. For example, if one starts with Euler's totient function , and repeatedly applies the transformation process, one obtains: If the starting function is the Möbius function itself, the list of functions is: Both of these lists of functions extend infinitely in both directions. The Möbius inversion formula enables these lists to be traversed backwards. As an example the sequence starting with is: formula_15 The generated sequences can perhaps be more easily understood by considering the corresponding Dirichlet series: each repeated application of the transform corresponds to multiplication by the Riemann zeta function. Generalizations. A related inversion formula more useful in combinatorics is as follows: suppose and are complex-valued functions defined on the interval such that formula_16 then formula_17 Here the sums extend over all positive integers which are less than or equal to . This in turn is a special case of a more general form. If is an arithmetic function possessing a Dirichlet inverse , then if one defines formula_18 then formula_19 The previous formula arises in the special case of the constant function , whose Dirichlet inverse is . A particular application of the first of these extensions arises if we have (complex-valued) functions and defined on the positive integers, with formula_20 By defining and , we deduce that formula_21 A simple example of the use of this formula is counting the number of reduced fractions , where and are coprime and . If we let be this number, then is the total number of fractions with , where and are not necessarily coprime. (This is because every fraction with and can be reduced to the fraction with , and vice versa.) Here it is straightforward to determine , but is harder to compute. Another inversion formula is (where we assume that the series involved are absolutely convergent): formula_22 As above, this generalises to the case where is an arithmetic function possessing a Dirichlet inverse : formula_23 For example, there is a well known proof relating the Riemann zeta function to the prime zeta function that uses the series-based form of Möbius inversion in the previous equation when formula_24. Namely, by the Euler product representation of formula_25 for formula_26 formula_27 These identities for alternate forms of Möbius inversion are found in. A more general theory of Möbius inversion formulas partially cited in the next section on incidence algebras is constructed by Rota in. Multiplicative notation. As Möbius inversion applies to any abelian group, it makes no difference whether the group operation is written as addition or as multiplication. This gives rise to the following notational variant of the inversion formula: formula_28 Proofs of generalizations. The first generalization can be proved as follows. We use Iverson's convention that [condition] is the indicator function of the condition, being 1 if the condition is true and 0 if false. We use the result that formula_29 that is, formula_30, where formula_31 is the unit function. We have the following: formula_32 The proof in the more general case where replaces 1 is essentially identical, as is the second generalisation. On posets. For a poset , a set endowed with a partial order relation formula_33, define the Möbius function formula_34 of recursively by formula_35 (Here one assumes the summations are finite.) Then for formula_36, where is a commutative ring, we have formula_37 if and only if formula_38 (See Stanley's "Enumerative Combinatorics", Vol 1, Section 3.7.) The classical arithmetic Mobius function is the special case of the poset "P" of positive integers ordered by divisibility: that is, for positive integers "s, t," we define the partial order formula_39 to mean that "s" is a divisor of "t". On the power set formula_40 of a set formula_41, ordered by formula_42 (set inclusion), the Möbius inversion theorem reproduces the inclusion–exclusion principle, and on the set formula_43 of natural numbers with their standard (total) ordering by formula_33 the theorem coincides with a discrete version of the fundamental theorem of calculus (See Stanley's "Enumerative Combinatorics", Vol 1, Section 3.8). Across the sciences, many measures of interaction can be formulated as Möbius inversions on different posets. Examples include Shapley values in game theory, maximum entropy interactions in statistical mechanics, epistasis in genetics, and the interaction information, total correlation, and partial information decomposition from information theory.