Abstract
We provide a combinatorial proof for the fact that the numbers of derangements of length n form a log-convex sequence for . A minor modification of our proof yields the same result for permutations of length that have exactly one fixed point. We explain why these statements do not generalize for permutations with exactly k fixed points where .
MSC:
05A05; 05A15
1. Introduction
A derangement is a permutation with no 1-cycles. Derangments are well-studied objects; see Chapter 6 of [1] or Chapter 3 of [2] for basic facts about derangements. Let be the number of derangements of length n. Our first goal in this paper is to provide a combinatorial proof of the fact that the infinite sequence is log-convex, that is, for all . (The sequence is called log-convex if for all n where those numbers are defined.) A computational proof was given by Lily L. Liu and Yi Wang in [3].
As derangements are defined using the fact that permutations are products of cycles, it is perhaps surprising that they are equinumerous to another class of permutations that are defined using the fact that permutations are also linear orders. This is surprising because the two definitions look unrelated at first sight, yet the classes of the two permutations they define prove to be closely related. This surprising fact turns these permutations called desarrangements into our main tool in this paper. If is a permutation written in the one-line notation, then i is called an ascent of p if . Let be the smallest of all the ascents of p, if p has any ascents, and let otherwise, that is, when p is the decreasing permutation. A desarrangement is a permutation for which is even. In other words, the decreasing permutation is a desarrangment if and only if n is even. For example, 213, 54, 312, and 21 are desarrangements. Jacques Désarménien introduced desarrangements in [4]. (See [5] for a source in English.) Let be the number of desarrangements of length n. It is straightforward to prove computationally that
for all positive integers n. See [4] or [5] for a bijective proof.
Because of (1), proving that sequence of the numbers is log-convex is equivalent to proving that the sequence of the numbers is log-convex. This is our goal in Section 2.
Let be the number of permutations of length n that have exactly one fixed point. It is well-known that for all positive integers n, the equality
holds. This fact is straightforward to prove computationally. A combinatorial proof is not obvious, but Herb Wilf gave one in [6]. In Section 3, we will use (2) and a minor modification of the notion of desarrangements to obtain a combinatorial proof of the log-convexity of the sequence .
We then study permutations in which there are exactly k fixed points for some , from the perspective of log-convexity. This shows that the results that we prove for and do not generalize for for every n, but they do hold for n if n is large enough.
2. Desarrangements
Let , and let be the set of all desarrangements of length n. We are going to define a map
We will then prove that this map is injective, which will imply that the sequence is log-convex.
Here is how we define , where .
- If n is odd, simply move the last entry of p to the end of q, increasing each entry of q that is at least as large as by 1. Decrease all entries of p larger than by 1. An example is shown below.Note that if , then never ends in .
- If n is even, and p is not the decreasing permutation, proceed in the same way as in the preceding paragraph. Again, will not end in .
- If n is even, and p is the decreasing permutation, then we have to proceed slightly differently because we cannot remove the last entry of p without destroying the desarrangement property. In this case, we set , and we set to be q with attached to the end. Therefore, in this case, always ends with .
Also note that in Rules 1 and 2, as shown above, removing the last entry of p never destroys the desarrangement property of p. Indeed, the only case in which that removal influences the leftmost ascent of p is when n is odd and the leftmost descent is in position , but then the removal of results in a decreasing permutation of even length, and that is a desarrangement. The addition of a new entry at the end of q also does not destroy the desarrangement property.
Theorem 1.
The map defined above is an injection. Therefore, sequence is log-convex.
Proof.
If n is odd, then we can recover the unique preimage (if it exists) as follows. If the last entry of is , the preimage does not exist. Otherwise, remove that last entry , and decrease all entries of less than that entry by 1 to obtain q. In order to obtain p, insert to the end of p, increasing all entries of p that are larger than or equal to by 1.
If n is even, then the procedure is the same if . If , and we also have , then p is the decreasing permutation of length n, and is recovered by removing the last entry of . Finally, if , and , then the preimage of does not exist.
As is an injection, it follows that the size of its domain is at most as large as the size of the set of its images, that is, , which shows that the sequence is log-convex. □
3. Permutations with One Fixed Point
Recall from the introduction that denotes the number of permutations of length n that have exactly one fixed point, and that for all positive integers n, the equality holds. It is therefore easy to modify the definition of desarrangements to suit our purposes. Let be the set of permutations of length n whose first ascent is in an even position. If p is the decreasing permutation, then let if and only if p is odd. It follows from this definition, (1) and (2) that
Therefore, proving that sequence of the numbers is log-convex (for ) is equivalent to proving that the sequence of the numbers is log-convex.
Let . We define a map
We will now prove that this map is injective, and therefore, the sequence is log-convex.
The definition of is similar to that of in the last section, but there are some differences. Let .
- 1.
- If n is even, simply move the last entry of p to the end of q, increasing each entry of q that is at least as large as by 1. Decrease all entries of p larger than by 1. The obtained pair is . Note that does not end in .
- 2.
- If n is odd, and p is not the decreasing permutation, and the leftmost ascent of p is not in position , proceed as in the preceding paragraph. Again, the last entry of is not .
- 3.
- If n is odd, and p is the decreasing permutation, then we set , and we set to be q, with attached to the end. So in this case, always ends with .
- 4.
- If n is odd, and the leftmost descent of is in position ,
- 4.a
- and the rightmost entry of p is not n, then remove (note that, necessarily, ), and then simply reverse to obtain . Simply add to the end of q to obtain . For example,
- 4.b
- If the rightmost entry of p is n, that is, if , then let be the decreasing permutation of length . Simply add to the end of q to obtain . So again ends in . Note that this is the only case in which ends in and is the decreasing permutation.
Theorem 2.
The map defined above is an injection. Therefore, the sequence is log-convex.
Proof.
Let . If does not end in , then we can recover the unique preimage in the proof of Theorem 1.
If ends in , and n is even, then does not exist. If n is odd, then we look at .
- (3)
- If , then Rule 3 was used, so , and q is obtained by removing the last entry of .
- (4.a)
- If , then Rule 4.a was used, so p is obtained by reversing and prepending it with n. As in the previous case, q is by removing the last entry of .
- (4.b)
- If is the decreasing permutation, then Rule 4.b was used, so , and q is obtained by removing the last entry of .
□
4. Permutations with Fixed Points
The following theorem of Désarménien and Wachs [5] generalizes the connection between derangements and desarrangements.
Theorem 3.
Let be the number of n-permutations with k fixed points. Let be the number of n-permutations with the following properties:
- The chain of inequalities holds;
- The string is a desarrangement.
Then, the equality holds.
Remark 1.
It would be tempting to think that Theorem 3 can be used to prove that for any fixed k, the sequence is log-convex, but that log-convexity does not hold in general. Indeed, for , we obtain a counterexample at , since
Similarly, we obtain a counterexample for at .
The injective maps of the preceding two sections do not generalize, because in the case when is even, the string may be decreasing, and it can have many (exactly to be precise) different underlying sets. In the case of being odd, the inequalities defining log-convexity still hold, as is proved by the first step of the relevant maps (just move the last entry of p to the end of q).
This leaves the question of what happens for . The answer is that the sequence is log-convex, as can be proved computationally using the formula , and the approximation that is the integer closest to .
The phenomenon that we have seen—that for a fixed k, the sequence is log-convex if , , or , but not for larger k—can be explained as follows. It is well-known that is the integer closest to , and that the sequence is log-convex. It is routine to prove that for a large n, the number is approximately , so, for a large n, the log-convex condition will hold. However, for large values of k, the error terms can be significant for small values of n, and that leads to our counterexamples. Also note that while (for fixed k), the sequence is log-convex, the sequence is log-concave, and it takes time for log-convexity to prevail in the product of the two sequences.
Funding
The author was partially supported by Simons Collaboration Grant 940024.
Data Availability Statement
No new data was generated by this project.
Conflicts of Interest
The author has no conflict of interest.
References
- Bóna, M. A Walk Through Combinatorics, 5th ed.; World Scientific: Singapore, 2023. [Google Scholar]
- Bóna, M. Combinatorics of Permutations, 3rd ed.; CRC Press—Chapman Hall: Boca Raton, FL, USA, 2022. [Google Scholar]
- Liu, L.L.; Wang, Y. On the log-convexity of combinatorial sequences. Adv. App. Math. 2007, 39, 453–476. [Google Scholar] [CrossRef] [Scilit]
- Désarménien, J. Une autre interprétation du nombre de dérangements. Sém. Lotharing. Combin. 1984, 19, 11–16. [Google Scholar]
- Désarménien, J.; Wachs, M. Descent classes on permutations. J. Combin. Theory A 1993, 64, 311–328. [Google Scholar] [CrossRef] [Scilit]
- Wilf, H.S. A bijection in the theory of derangements. Math. Mag. 1984, 57, 37–40. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.