Möbius Function Calculator

μ(n) = (−1)ᵏ or 0

CalculatorsFreeNo Signup
4.9(158 reviews)
All Tools

Loading tool...

About Möbius Function Calculator

A Möbius function calculator computing μ(n): 1 if n=1, 0 if n has a squared factor, (−1)ᵏ if n is product of k distinct primes. Shows prime factorization and Möbius inversion. All calculations are client-side.

Möbius Function Calculator Features

  • μ(n)
  • Factorization
  • Squarefree check
  • Table
  • Mertens function
Möbius function μ(n): μ(1)=1, μ(n)=0 if n has a squared prime factor, μ(n)=(−1)ᵏ if n = p₁p₂...pₖ (distinct primes). Key in Möbius inversion: if g(n)=Σd|n f(d) then f(n)=Σd|n μ(d)g(n/d). Connected to ζ(s): Σμ(n)/nˢ = 1/ζ(s).

How to Use

Enter n:

  • μ(n): −1, 0, or 1
  • Factors: Prime factorization
  • Squarefree: No repeated factors?

Möbius Inversion

If g(n) = Σ_{d|n} f(d), then f(n) = Σ_{d|n} μ(d)·g(n/d). This recovers f from its summatory function. Example: φ(n) = Σ_{d|n} μ(d)·(n/d).

Mertens Function

M(n) = Σₖ₌₁ⁿ μ(k). The Mertens conjecture |M(n)| < √n was disproved by Odlyzko & te Riele (1985). The Riemann Hypothesis is equivalent to M(n) = O(n^(1/2+ε)).

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Get μ(n).
  3. 3View factorization.
  4. 4Check squarefree.
  5. 5See Mertens M(n).

Möbius Function Calculator — Frequently Asked Questions

Why is μ(n)=0 for non-squarefree numbers?+

Möbius inversion requires μ to be the Dirichlet inverse of the constant function 1. The inclusion-exclusion principle on prime factors naturally gives 0 when a prime appears twice or more, since overcounting and undercounting cancel exactly.

What is the Mertens function?+

M(n) = Σμ(k) for k=1 to n. It measures the 'running total' of Möbius values. M(n)/√n is bounded (assuming RH). The disproved Mertens conjecture claimed |M(n)| < √n always, but counterexamples exist (though astronomically large).

How does μ relate to the Riemann zeta function?+

1/ζ(s) = Σμ(n)/nˢ. This means the Möbius function encodes information about the zeros of ζ(s). The Riemann Hypothesis is equivalent to saying Σμ(n) for n≤x is O(x^(1/2+ε)) for all ε>0.

Share this tool: