8. Midterm 1 and Arithmetic Functions

Möbius Overview, If Included

Möbius Overview in Arithmetic Functions

students, welcome to a key lesson in number theory 📘. This topic sits inside the study of arithmetic functions, especially multiplicative functions and divisor sums. Your main goals today are to understand what the Möbius function is, why it matters, and how it helps us reason about divisors, counting, and inversion. By the end, you should be able to explain the core ideas in clear language, use the function in examples, and see how it fits into the bigger picture of Midterm 1 and arithmetic functions.

The Möbius function may look mysterious at first, but it has a simple definition and powerful uses. It appears in formulas that separate numbers into “square-free” and “not square-free” categories, and it helps undo divisor-sum relationships. That means it is one of the main tools for turning complicated counting problems into cleaner ones ✨.

What the Möbius function is

The Möbius function is written as $\mu(n)$, where $n$ is a positive integer. It is defined by three rules:

$$

$\mu(n)=\begin{cases}$

1 & \text{if } n=1, \\

0 & \text{if } n \text{ is divisible by } p^2 \text{ for some prime } p, \\

(-1)^k & \text{if } n \text{ is the product of } k \text{ distinct primes.}

$\end{cases}$

$$

Let’s unpack that carefully.

  • If $n=1$, then $\mu(1)=1$.
  • If $n$ contains a repeated prime factor, then $\mu(n)=0$.
  • If $n$ is square-free, meaning no prime divides it more than once, then $\mu(n)$ is either $1$ or $-1$ depending on how many distinct prime factors it has.

For example:

  • $\mu(2)=-1$ because $2$ is one prime.
  • $\mu(6)=1$ because $6=2\cdot 3$ has two distinct prime factors.
  • $\mu(12)=0$ because $12=2^2\cdot 3$ has a repeated prime factor.
  • $\mu(30)=-1$ because $30=2\cdot 3\cdot 5$ has three distinct prime factors.

A useful way to remember the rule is: square factors force $\mu(n)=0$, and otherwise the sign alternates with the number of distinct primes. This makes $\mu(n)$ a great detector of square-free numbers.

Why the Möbius function is multiplicative

A function $f$ is called multiplicative if whenever $\gcd(m,n)=1$, we have

$$

$f(mn)=f(m)f(n).$

$$

The Möbius function is multiplicative. This means that if $m$ and $n$ share no prime factors, then the Möbius value of their product is the product of their Möbius values.

Why does this happen? If $m$ and $n$ are coprime, then the primes in $mn$ are just the primes in $m$ together with the primes in $n$. So the total number of distinct primes adds, and the sign $(-1)^k$ behaves exactly like a product of signs. Also, if either part has a repeated prime factor, then the product does too, so the value becomes $0$.

Example:

  • $\mu(2)=-1$ and $\mu(9)=0$.
  • Since $\gcd(2,9)=1$, we have $\mu(18)=\mu(2\cdot 9)=\mu(2)\mu(9)=(-1)(0)=0$.

This multiplicative behavior is important because many arithmetic functions in number theory are built from prime factors, and multiplicativity helps us compute them efficiently.

Divisor sums and the role of $\mu(n)$

A divisor sum is a function made by adding values over all divisors of a number. A classic example is

$$

$\sigma(n)=\sum_{d\mid n} d,$

$$

which adds all positive divisors of $n$. Another common one is

$$

$\tau(n)=\sum_{d\mid n} 1,$

$$

which counts the number of divisors of $n$.

The Möbius function is especially famous because it helps with inversion in divisor sums. Suppose an arithmetic function $F$ is defined by

$$

$F(n)=\sum_{d\mid n} f(d).$

$$

Then the Möbius inversion formula says that we can recover $f$ from $F$ by

$$

$f(n)=\sum_{d\mid n} \mu(d)\,F\left(\frac{n}{d}\right).$

$$

This is a major idea in number theory. It says that if you know a function as a divisor sum, the Möbius function gives you a systematic way to undo that summation.

Think of it like this 🎯: if a formula is “mixed together” by adding information from divisors, Möbius inversion can separate it back into the original pieces.

A simple example of Möbius inversion

Let $F(n)=\sum_{d\mid n} 1$. Then $F(n)=\tau(n)$, the number of divisors of $n$. In this case, the underlying function is $f(n)=1$ for every $n$.

Using Möbius inversion, we get

$$

$1=\sum_{d\mid n} \mu(d)\,\tau\left(\frac{n}{d}\right)$

$$

for every positive integer $n$. This identity is not obvious at first glance, but it is a direct consequence of the inversion principle.

Another important identity is

$$

$\sum_{d\mid n} \mu(d)=$

$\begin{cases}$

1 & \text{if } n=1,\\

0 & \text{if } n>1.

$\end{cases}$

$$

This is one of the most useful facts about the Möbius function. It says that when you sum $\mu(d)$ over all divisors of $n$, the terms cancel out unless $n=1$.

Examples that build intuition

Let’s compute a few values to strengthen your understanding.

Example 1: $\mu(1)$ through $\mu(10)$

  • $\mu(1)=1$
  • $\mu(2)=-1$
  • $\mu(3)=-1$
  • $\mu(4)=0$ because $4=2^2$
  • $\mu(5)=-1$
  • $\mu(6)=1$ because $6=2\cdot 3$
  • $\mu(7)=-1$
  • $\mu(8)=0$ because $8=2^3$
  • $\mu(9)=0$ because $9=3^2$
  • $\mu(10)=1$ because $10=2\cdot 5$

A quick pattern appears: values are $1$, $-1$, or $0$, never anything else.

Example 2: Checking multiplicativity

Take $m=3$ and $n=10$. Since $\gcd(3,10)=1$,

$$

$\mu(30)=\mu(3)\mu(10).$

$$

Now $\mu(3)=-1$ and $\mu(10)=1$, so

$$

$\mu(30)=(-1)(1)=-1.$

$$

Indeed, $30=2\cdot 3\cdot 5$ is square-free with three distinct primes, so $\mu(30)=(-1)^3=-1$.

Example 3: A cancellation identity

List all divisors of $6$: $1,2,3,6. Then

$$

$\mu(1)+\mu(2)+\mu(3)+\mu(6)=1+(-1)+(-1)+1=0.$

$$

This matches the identity

$$

$\sum_{d\mid n}$ $\mu($d)=0 \quad \text{for } n>1.

$$

That cancellation is what makes the Möbius function so useful. It acts like a balance scale that zeros out unwanted contributions ⚖️.

How this fits Midterm 1 and arithmetic functions

In Midterm 1, you are expected to recognize important arithmetic functions and understand their properties. The Möbius function connects directly to several major ideas:

  • Arithmetic functions: $\mu(n)$ is an arithmetic function because it takes a positive integer as input and returns a number.
  • Multiplicative functions: $\mu(n)$ is a standard example of a multiplicative function.
  • Divisor sums: Möbius inversion is built to work with sums over divisors.
  • Counting formulas: the function helps count or separate integers by prime-factor structure.

A good way to study this topic is to practice moving between three viewpoints:

  1. prime factorization of a number,
  2. the value of $\mu(n)$,
  3. divisor-sum identities involving $\mu(n)$.

If you can do that, you are not just memorizing a definition. You are learning a tool that connects several parts of number theory into one framework.

Conclusion

The Möbius function $\mu(n)$ is a compact but powerful arithmetic function. Its definition depends on whether a number is square-free and how many distinct prime factors it has. It is multiplicative, which makes it easier to work with on numbers built from coprime parts. Most importantly, it is the central tool in Möbius inversion, a method for undoing divisor sums and recovering hidden arithmetic information.

students, if you remember only one big idea, remember this: Möbius values create cancellation. That cancellation is what lets number theorists transform difficult divisor-sum problems into cleaner formulas and identities. This makes the Möbius function a major bridge between prime factorization, multiplicative functions, and divisor sums in Midterm 1 and beyond 🚀.

Study Notes

  • $\mu(n)$ is the Möbius function, an arithmetic function on positive integers.
  • $\mu(1)=1$.
  • If $n$ has any repeated prime factor, then $\mu(n)=0$.
  • If $n$ is square-free with $k$ distinct prime factors, then $\mu(n)=(-1)^k$.
  • The Möbius function is multiplicative: if $\gcd(m,n)=1$, then $\mu(mn)=\mu(m)\mu(n)$.
  • A divisor sum has the form $\sum_{d\mid n} f(d)$.
  • Möbius inversion recovers $f$ from $F(n)=\sum_{d\mid n} f(d)$ using $f(n)=\sum_{d\mid n}\mu(d)F\left(\frac{n}{d}\right)$.
  • A key identity is $\sum_{d\mid n}\mu(d)=1$ if $n=1$ and $0$ if $n>1$.
  • The Möbius function is important because it creates cancellation and helps reverse divisor-sum formulas.

Practice Quiz

5 questions to test your understanding