Chapter 21 Average Number of Cycles in a Permutation
Let \(A(n)\) be the average number of cycles in an \(n\)-permutation. The goal of this activity is to prove that
Here, \(\displaystyle{H(n) = \sum_{i=1}^n \frac{1}{i}}\) is the \(n\)th Harmonic number, which is another very important sequence in mathematics.
Let \(c(n)\) denote the total number of cycles in all \(n\)-permutations. we
Exercises Practice Problems
1. Cycles in a permutation.
Prove that \(\displaystyle{c(n) = \sum_{k=1}^n k \cdot c(n,k)}\text{.}\)
Prove that \(\displaystyle{A(n) = \frac{c(n)}{n!}}\text{.}\)
2. The Harmonic Numbers.
Use a graph to explain why \(H(n)\) is a pretty good approximation for \(\int_1^n \frac{1}{x} dx\text{.}\) What function does this integral represent?
Interpret the meaning of \(A(n) = \sum_{i=1}^n \frac{1}{i}\) using your approximate function.
3. A recurrence for \(c(n)\).
We will prove the recurrence
As usual, we will treat element \(n\) as special. Given an \(n\)-permutation \(f \in S_n\text{,}\) what happens when we remove element \(n\text{?}\) There are two cases
Suppose that \(n\) was in a cycle by itself. Prove that the total number of cycles in such permutations is \(c(n-1) + (n-1)!\text{.}\)
Suppose that \(n\) was not in a cycle by itself. Prove that the total number of cycles in such permutations is \((n-1) \cdot c(n-1)\text{.}\)
Putting together the answers from questions 2 and 3, we find that
as claimed at the start of the problem.
4. The main result.
Starting with the formula in problem 1(b) and the recurrence in problem 2, prove that