Mobius Function in LaTeX (\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.
\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
- Number of Divisors
d(n) - Sum of Divisors
\sigma(n) - Fractional Part
\{x\} - Integer Part
[x] - Ceiling
\lceil x \rceil - Floor
\lfloor x \rfloor
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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث