Section 1.5

Möbius Inversion

[6/100%]
Show
LaTeX
Problem 1.5.1

The notation ∑d∣n\displaystyle \sum_{d \mid n} denotes the sum over all positive divisors of nn.

Define the Möbius function μ(n)\mu (n) as follows:

μ(n)={1,if n=1;(−1)k,if n is a product of k distinct prime divisors;0,if n is divisible by p2 for some prime number p. \mu (n) = \begin{cases} 1, & \text{if } n=1; \\ (-1)^k, & \text{if }n\text{ is a product of }k\text{ distinct prime divisors;} \\ 0, & \text{if }n\text{ is divisible by }p^2\text{ for some prime number }p\text{.} \end{cases}
?
(1)

∑d∣nμ(d)={1,n=1;0,n≠1.\displaystyle \sum_{d \mid n}\mu (d) = \begin{cases} 1, & n=1; \\ 0, & n \neq 1. \end{cases}

(2)

Find the sum of the values of the Möbius function over exactly those divisors of nn whose canonical factorization contains an even number of prime factors.

(3)

The Möbius inversion formula. Let f:N→Rf: \mathbb {N} \to \mathbb {R} be an arbitrary function, and let g(n)=∑d∣nf(d)g(n) = \displaystyle \sum_{d \mid n}f(d). Then the following formula holds:

f(n)=∑d∣nμ(d)g(nd)=∑d∣nμ(nd)g(d). f(n) = \sum _{d \mid n}\mu (d)g\left(\frac{n}{d}\right) = \sum _{d \mid n}\mu \left(\frac{n}{d}\right)g(d).
Problem 1.5.2

Euler's totient function φ(n)\varphi (n) is defined in Sec.1.2 (Problem 1.2.1).

?
(1)

Find the sum ∑d∣nφ(d)\displaystyle \sum_{d \mid n}\varphi (d).

(2)

∑d∣nμ(d)d=(1−1p1)…(1−1ps)\displaystyle \sum_{d \mid n}\frac{\mu (d)}{d} = \left(1-\frac{1}{p_1}\right)\ldots \left(1-\frac{1}{p_s}\right).

Remark.
?

Note that by applying the Möbius inversion formula (Problem 1.5.1(3)) to the function φ(n)\varphi (n), one can prove the formula for φ(n)\varphi (n) in a slightly different way (see Statement 1.2.1(3)).

Indeed, using Statements 1.5.2(1, 2), we obtain:

φ(n)=∑d∣nμ(d)nd=n⋅∑d∣nμ(d)d=n(1−1p1)…(1−1ps). \varphi (n) = \sum _{d \mid n}\mu (d)\frac{n}{d} = n\cdot \sum _{d \mid n}\frac{\mu (d)}{d} = n\left(1-\frac{1}{p_1}\right)\ldots \left(1-\frac{1}{p_s}\right).
Problem 1.5.3

Denote by Tr(n)T_r(n) the number of ways to color a carousel of nn cars in rr colors, i.e. the number of colorings of the vertices of a regular nn-gon in rr colors, where colorings that coincide after a rotation are considered indistinguishable. Here

  • a coloring need not use all the colors;

  • the colors are distinguishable: for example, the colorings RRRY and YYYR are different.

Let us give a more formal definition. For any coloring of a carousel, one can ``break'' the carousel between any two cars and write down the resulting sequence of colors (a coloring of a train), starting from the break point and going clockwise. For example, the following sequences correspond to the same coloring of a carousel:

RYGB;YGBR;GBRY;BRYG. \text{RYGB;}\quad \text{YGBR;}\quad \text{GBRY;}\quad \text{BRYG.}

On the other hand, from every sequence of colors one can obtain a coloring of a carousel by ``gluing'' its beginning and end in the proper way.

The cyclic shift of a sequence (a1,a2,…,an)(a_1, a_2, \ldots , a_n) is the sequence (a2,a3,…,a1)(a_2, a_3, \ldots , a_1). A coloring of a carousel (or, in more learned terms, a cyclic sequence) is an equivalence class of sequences up to cyclic shift.

Thus, Tr(n)T_r(n) is the number of cyclic sequences of length nn whose elements are the numbers 1,…,r1, \ldots , r.

?
(1)

Find Tr(n)T_r(n) for n=3,4,5,6,9n = 3,4,5,6,9.

(2)

22n−n−1<T2(2n)<22n−n2^{2^n-n-1} < T_2(2^n) < 2^{2^n-n}.

Problem 1.5.4

The period of a sequence is the smallest positive integer dd such that dd cyclic shifts map the sequence to itself. The period of a carousel is defined similarly.

?
(1)

The period of a sequence divides its length.

(2)

If dd divides nn, then the number of sequences of length nn and period dd equals the number of sequences of length dd and period dd.

Problem 1.5.5

Denote by Mr(n)M_r(n) the number of sequences of length nn and period nn whose elements are the numbers 1,…,r1, \ldots , r.

?
(1)

Find ∑d∣nMr(d)\displaystyle \sum_{d \mid n}M_r(d).

(2)

Express Tr(n)T_r(n) in terms of all Mr(d)M_r(d), where d∣nd \mid n.

(3)

Tr(n)=∑l∣n1l∑d∣lμ(d)rl/dT_r(n) = \displaystyle \sum_{l \mid n}\frac{1}{l}\sum_{d \mid l}\mu (d)r^{l/d}.

(4)

Tr(n)=1n∑d∣nφ(d)rn/dT_r(n) = \dfrac {1}{n}\displaystyle \sum_{d \mid n}\varphi (d)r^{n/d}. (A simpler proof of this formula is given in Sec.1.9, Problem 1.9.4(1).)

Problem 1.5.6

Find the number of distinct colorings of a carousel of nn cars in rr colors in which

?
(1)

color ss occurs nsn_s times for each s=1,…,rs = 1, \ldots , r (here a formula with summation over divisors, analogous to 1.5.5(3), is accepted as an answer);

(2)

exactly 4 of the r=5r=5 given colors are present.