The Möbius functionμ:N→{−1,0,1} is defined as follows:
μ(n)=1 if n=1 or n is square-free with an even number of distinct prime factors (i.e., ω(n) even),
μ(n)=−1 if n is square-free with an odd number of distinct prime factors (i.e., ω(n) odd),
μ(n)=0 if n has a repeated prime factor (i.e., n is not square-free),
where ω(n) denotes the number of distinct prime factors of n. Equivalently,
μ(n)={(−1)ω(n)0if n is square-free,otherwise.
First, note that μ(1)=1 since 1 is square-free with ω(1)=0 (even).
Now fix coprime m,n≥1 (so gcd(m,n)=1). The prime factors of mn are the disjoint union of those of m and n, so ω(mn)=ω(m)+ω(n). We consider cases based on whether m and n are square-free.
Case 1: At least one of m or n is not square-free.
Without loss of generality, suppose m is not square-free (so μ(m)=0). Then m has some prime power p2∣m with p prime, and since gcd(m,n)=1 we have p∤n, so p2∣mn. Thus mn is not square-free, so μ(mn)=0=μ(m)⋅μ(n).
Case 2: Both m and n are square-free.
Then mn is square-free (no squared primes in m or n, and no shared primes). Moreover,