Mobius Function in LaTeX (\mu(n))

μ(n)\mu(n)
LaTeX command
\mu(n)
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Möbius function: 0 if a squared prime divides n, otherwise (-1)^k for k prime factors.

Its main role is Möbius inversion: if g(n) = \sum_{d \mid n} f(d), then f(n) = \sum_{d \mid n} \mu(d)\, g(n/d). It also satisfies \sum_{d \mid n} \mu(d) = 0 for n > 1, and its Dirichlet series is the reciprocal of the zeta function, \frac{1}{\zeta(s)} = \sum_{n \ge 1} \frac{\mu(n)}{n^s}. The letter \mu is heavily overloaded, meaning a mean in statistics and a measure in analysis, so introduce it explicitly. In math mode, use the Greek \mu, never a Latin u as a lookalike.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

1ζ(s)=∑n=1∞μ(n)ns\frac{1}{\zeta(s)} = \sum_{n=1}^{\infty} \frac{\mu(n)}{n^s}
\documentclass{article}
\begin{document}
Mobius Function: $\mu(n)$

\[ \frac{1}{\zeta(s)} = \sum_{n=1}^{\infty} \frac{\mu(n)}{n^s} \]
\end{document}

Related symbols

All 数論 →

Frequently asked questions

How do I write Mobius Function in LaTeX?
Type \mu(n) in math mode, for example $\frac{1}{\zeta(s)} = \sum_{n=1}^{\infty} \frac{\mu(n)}{n^s}$. It works in plain LaTeX without loading any package.
Which package do I need for \mu(n)?
None. \mu(n) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \mu(n) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mu(n)$ in running text.
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得