A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Möbius Function and Möbius Inversion

Graduate Depth 79 in the knowledge graph ☐ I know this ☆ Set as goal
369prerequisites beneath it
See this on the map →
Arithmetic Functions and Multiplicativity→
mobius inversion combinatorics

Core Idea

The Möbius function μ(n) is 0 if n has a squared prime factor, and (-1)k if n is a product of k distinct primes. Möbius inversion states: if g(n) = Σ_{d|n} f(d), then f(n) = Σ_{d|n} μ(n/d)g(d), enabling inversion of divisor sums.

Explainer

From your study of arithmetic functions and multiplicativity, you know that many number-theoretic quantities — like Euler's totient φ(n), the sum of divisors σ(n), and the number of divisors d(n) — are defined via sums over divisors of n. A natural question arises: if you know the divisor sum g(n) = Σ_{d|n} f(d), can you recover f(n)? Möbius inversion answers yes, and the Möbius function μ is the key.

The definition of μ(n) is sharp: μ(1) = 1; μ(n) = 0 if any prime appears squared in n's factorization; μ(n) = (−1)k if n is a product of k distinct primes. In other words, μ detects squarefreeness and assigns a sign based on the number of prime factors. For example: μ(6) = μ(2·3) = (−1)² = 1, μ(30) = μ(2·3·5) = (−1)³ = −1, μ(12) = μ(2²·3) = 0. The function oscillates, but its local averages are controlled.

The Möbius inversion formula says: if g(n) = Σ_{d|n} f(d), then f(n) = Σ_{d|n} μ(n/d) g(d). Think of this as a "Fourier inversion" over the divisibility lattice. The multiplicativity of μ (a consequence of your prerequisite on arithmetic functions) makes this tractable. A key identity underpinning the whole theory is Σ_{d|n} μ(d) = [n=1] — the sum of μ over all divisors equals 1 if n = 1 and 0 otherwise. This is the "orthogonality" that makes inversion possible.

As a concrete application: you can recover φ(n) from the identity n = Σ_{d|n} φ(d) (which sums totient values over divisors). Inverting gives φ(n) = Σ_{d|n} μ(n/d) · d = n Σ_{d|n} μ(d)/d. Similarly, you can invert any multiplicative Dirichlet series using μ as the "inverse" of the constant function 1 in the ring of arithmetic functions under Dirichlet convolution. This algebraic structure — where Dirichlet convolution acts as multiplication and μ * 1 = ε (the identity) — unifies dozens of formulas in number theory and is the true reason Möbius inversion works.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Divisibility and Greatest Common Divisor → The Fundamental Theorem of Arithmetic → Divisibility Theory (Formal Treatment) → Fundamental Theorem of Arithmetic (Rigorous Proof) → Arithmetic Functions and Multiplicativity → Möbius Function and Möbius Inversion

Longest path: 80 steps · 369 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.