[step:Prove the Möbius divisor sum detects the integer $1$]
[claim:Möbius divisor sum identity]
For every $m \in \mathbb{N}$,
\begin{align*}
\sum_{d \mid m}\mu(d)=1 \quad \text{if } m=1,
\end{align*}
and
\begin{align*}
\sum_{d \mid m}\mu(d)=0 \quad \text{if } m>1.
\end{align*}
[/claim]
[proof]
If $m=1$, the only positive divisor of $m$ is $1$, and $\mu(1)=1$, so the sum is $1$.
Now suppose $m>1$. Let $p_1,\dots,p_r$ be the distinct prime divisors of $m$, where $r \in \mathbb{N}$. A divisor $d$ of $m$ contributes nonzero value $\mu(d)$ exactly when $d$ is squarefree. Since every squarefree divisor of $m$ is divisible only by distinct primes among $p_1,\dots,p_r$, and each product of a subset of these primes divides $m$, the contributing divisors are precisely the products of primes indexed by subsets $S \subseteq \{1,\dots,r\}$. For such a subset $S$, define the positive integer
\begin{align*}
d_S=\prod_{i \in S} p_i,
\end{align*}
with the convention $d_{\varnothing}=1$. Then $\mu(d_S)=(-1)^{|S|}$, and hence
\begin{align*}
\sum_{d \mid m}\mu(d)=\sum_{S \subseteq \{1,\dots,r\}}(-1)^{|S|}.
\end{align*}
Grouping subsets by their cardinality gives
\begin{align*}
\sum_{S \subseteq \{1,\dots,r\}}(-1)^{|S|}=\sum_{j=0}^{r}\binom{r}{j}(-1)^j.
\end{align*}
By the [binomial theorem](/theorems/750) applied to $(1-1)^r$, this last sum is $0$. Therefore the divisor sum is $0$ for every $m>1$.
[/proof]
[/step]