betaFeedback

WorksMathematics

Unimodality of the number of parking functions with a given maximum displacement

Abstract

We prove that, for every n, the numbers of parking functions of length n in which the maximum displacement of a car from its preferred spot is 0, 1, . . . , n−1 form a unimodal sequence. This confirms a conjecture of Celano, Elder, Hadaway, Harris, Martin, Priestley and Udell. The proof follows, for each value of the maximum displacement, the sign of the difference of two neighbouring terms as n grows. It is computer-assisted: explicit estimates are used when the displacement is large, and exact computations with integers, carried out by computer, when the displacement or the length is small.

Introduction

Parking functions were introduced by Konheim and Weiss [13], who studied a scheme for the storage of records that is now called hashing with linear probing, and who applied their results, at the end of their paper, to a problem of parking cars in a street. Parking functions have since become standard objects of combinatorics: they are equinumerous with the labelled trees on one more vertex, and they occur in the study of noncrossing partitions, of hyperplane arrangements and of the diagonal harmonics; see the survey of Yan [19]. A parking function describes a way in which nn cars can park one after another in a row of nn spots when each car has a preferred spot and takes the first empty spot at or after it. This is the rule of hashing with linear probing, in which items are stored one after another in a table whose cells lie in a row, each item in the first empty cell at or after its hash address: the cars are the items, the spots are the cells, and the number of spots by which a car is pushed beyond the spot it prefers, its displacement, is the distance between the address of an item and its cell.

The displacements measure the cost of storing and of finding an item, and they have been studied in both settings. Their sum, the total displacement, is the cost of building the table. Knuth [12] and Flajolet, Poblete and Viola [8] find its moments, the latter also its limit laws, and Pappe Theorem 3.1 [14] shows that the generating polynomial of the total displacement of parking functions has log-concave coefficients. For the largest of the displacements, the maximum displacement, Petersson [15] determines the limit distribution in the setting of hashing, and formulas for the number of parking functions in which no displacement exceeds a given bound are given in [3] and [5]; we recall these results in § 1.1. The theorem of Pappe is a statement about the shape of the distribution of the total displacement. The present paper is about the shape of the distribution of the maximum displacement: we ask how the numbers of parking functions of a given length whose maximum displacement is 0,1,2,…0,1,2,\ldots compare with one another.

To fix the notation, let n≥1n \ge1 be an integer. The cars are numbered 1,…,n1,\ldots,n in the order in which they arrive, and the spots are numbered 1,…,n1,\ldots,n along the row and are all empty at the start. Car ii prefers a spot ai∈{1,…,n}a_i \in\{1,\ldots,n\} and parks in the first empty spot among ai,ai+1,…,na_i,a_i+1,\ldots,n; if these spots are all occupied, car ii cannot park. The sequence α=(a1,…,an)\alpha= (a_1,\ldots,a_n) is called a preference sequence of length nn, and it is called a parking function if every car parks; we write PFn\mathrm{PF}_n for the set of all parking functions of length nn. For α∈PFn\alpha\in\mathrm{PF}_n the displacement of car ii is di(α)=pos⁡i(α)−ai≥0d_i(\alpha) = \operatorname{pos}_i(\alpha) - a_i \ge0, where pos⁡i(α)\operatorname{pos}_i(\alpha) is the spot in which car ii parks, and the maximum displacement of α\alpha is

M(α)=max⁡1≤i≤ndi(α)∈{0,1,…,n−1}.M(\alpha) = \max_{1 \le i \le n} d_i(\alpha) \in\{0,1,\ldots,n-1\}.

Parking functions with M(α)≤ℓM(\alpha) \le\ell are called ℓ\ell-interval parking functions [5 Definition 2.7], and it is their number that the formulas mentioned above give. They range from the permutations of 1,…,n1,\ldots,n, for ℓ=0\ell= 0, where every car parks in the spot it prefers, to all parking functions of length nn, for ℓ=n−1\ell= n-1. Here and below we cite [5] by the numbers of its second version; the numbers that we cite are the same in the first version except in one place, which is noted in § 1.1.

Sorting the parking functions of length nn by their maximum displacement gives the numbers

bn,ℓ=#{α∈PFn:M(α)=ℓ},0≤ℓ≤n−1.b_{n,\ell} = \#\{\alpha\in\mathrm{PF}_n : M(\alpha) = \ell\}, \qquad0 \le\ell\le n-1.

For ℓ≥1\ell\ge1 this is the number of ℓ\ell-interval parking functions of length nn that are not (ℓ−1)(\ell-1)-interval. The sum of these numbers is the number of all parking functions of length nn, which is (n+1)n−1(n+1)^{n-1} [13 Lemma 2 and Section 6]; a short proof, due to Pollak, is given in [9 Section 2]. The two ends of the sequence have closed forms: bn,0=n!b_{n,0} = n!, the number of permutations, and bn,n−1=nn−2b_{n,n-1} = n^{n-2} for n≥2n \ge2 [5 Example 2.8 and Section 6]. For n≤7n \le7 the numbers are

nbn,0, bn,1, …, bn,n−11122, 136, 7, 3424, 51, 34, 165120, 421, 377, 253, 1256720, 3963, 4594, 3688, 2546, 129675040, 42253, 62145, 57398, 46142, 32359, 16807(1)\begin{array}{c|l} n & b_{n,0},\ b_{n,1},\ \ldots,\ b_{n,n-1} \\ 1 & 1 \\ 2 & 2,\ 1 \\ 3 & 6,\ 7,\ 3 \\ 4 & 24,\ 51,\ 34,\ 16 \\ 5 & 120,\ 421,\ 377,\ 253,\ 125 \\ 6 & 720,\ 3963,\ 4594,\ 3688,\ 2546,\ 1296 \\ 7 & 5040,\ 42253,\ 62145,\ 57398,\ 46142,\ 32359,\ 16807 \tag*{(1)} \end{array}

The sum and the two ends of the sequence (bn,0,…,bn,n−1)(b_{n,0},\ldots,b_{n,n-1}) are thus known in closed form, and the question is how the terms in between are ordered. In (1) each row increases up to some entry and decreases from there on. The largest entry does not stand at a fixed place, however: it is the second entry of the rows n=3,4,5n = 3,4,5 and the third entry of the rows n=6,7n = 6,7. Celano, Elder, Hadaway, Harris, Martin, Priestley and Udell, who tabulate bn,ℓb_{n,\ell} for n≤9n \le9 [5 Table 1], conjecture, among the problems with which their paper closes, that for every n≥1n \ge1 the sequence (bn,0,…,bn,n−1)(b_{n,0},\ldots,b_{n,n-1}) is unimodal [5 Conjecture 6.5]. Here a finite sequence (u0,…,um)(u_0,\ldots,u_m) of real numbers is called unimodal if there is some ℓ∗∈{0,…,m}\ell^* \in\{0,\ldots,m\} such that uℓ−1≤uℓu_{\ell-1} \le u_\ell holds for 1≤ℓ≤ℓ∗1 \le\ell\le\ell^* and uℓ≥uℓ+1u_\ell\ge u_{\ell+1} holds for ℓ∗≤ℓ≤m−1\ell^* \le\ell\le m-1; equality is allowed. Unimodality and log-concavity are known for many sequences that arise in algebra, combinatorics and geometry, and they have been proved by methods of many kinds, which Stanley surveys in [18]. The conjecture asks for the maximum of the displacements what the theorem of Pappe quoted above answers for their sum; that theorem gives log-concavity, which is the stronger property, since a log-concave sequence of positive numbers is unimodal.

In the sentence before their conjecture, the authors of [5] state three inequalities at the two ends of a row, for all n≥1n \ge1 and as consequences of their enumerative results, namely bn,0≤bn,1b_{n,0} \le b_{n,1}, bn,1≤bn,2b_{n,1} \le b_{n,2} and bn,n−2≥bn,n−1b_{n,n-2} \ge b_{n,n-1}, and they add that experimentally the pattern seems to continue [5 Section 6]. As (1) shows, the first of these inequalities fails for n=2n = 2 and the second for n=3,4,5n = 3,4,5; both hold in the later rows of the table. For the terms between the two ends of a row, the support for the conjecture is thus the computed rows. In this paper we prove the conjecture.

Theorem 1.1. For every integer n≥1n \ge1 the sequence (bn,0,bn,1,…,bn,n−1)(b_{n,0}, b_{n,1}, \ldots, b_{n,n-1}) is unimodal.

Theorem 1.1 establishes for every length the shape that is seen in the tabulated rows. Its proof gives more on the left of a row: for n≥17n \ge17 the row is nondecreasing on its left half, i.e. bn,ℓ−1≤bn,ℓb_{n,\ell-1} \le b_{n,\ell} whenever 1≤ℓ≤n/21 \le\ell\le n/2 (Proposition 1.2 below). In small rows this can fail, as b5,1=421>b5,2=377b_{5,1} = 421 > b_{5,2} = 377 shows. Where the maximum of a row lies is determined neither by the theorem nor by its proof; we return to this question at the end of § 1.2.

Our proof is analytic. It constructs no correspondence between the parking functions that are counted by two neighbouring terms, and unimodality is not obtained from a stronger property such as log-concavity: we work directly with the signs of the differences of neighbouring terms. The combinatorics of parking functions enters through a single known relation, the recursion (2) of Aguilar-Fraga et al. [3 Theorem 3.7], which is recalled below. It expresses the number of parking functions of length n+1n + 1 in which no displacement exceeds a bound kk through the same numbers for smaller lengths and the same bound. Such a recursion relates different lengths for one bound, whereas the theorem compares different values of the maximum displacement for one length. We therefore read the table (1.1) by its columns and follow, for a fixed ℓ\ell, the sign of bn,ℓ−bn,ℓ−1b_{n,\ell} - b_{n,\ell-1} as nn grows. The two exceptions to the inequalities of [5] that were noted above are instances of the pattern that the proof follows: in a fixed column the difference is negative for the first lengths and positive for the later ones. The theorem follows when we know that the difference, once it is positive, does not become negative again, and that it does not become positive in one column before it has done so in the column to the left. This is what we prove, for the rows and the columns that the theorem needs.

Several of the tools that we apply to the solutions of this recursion are classical, among them the binomial identity of Abel [1], the bounds of Robbins for the factorial [16] and the theorem of de Bruijn and Erdős on renewal sequences with a log-convex kernel [6]; they are cited where they are used, and the last of them is proved there in the form that we need. The steps on which the argument turns are developed in the paper. They include a linear equation that replaces the recursion, which is quadratic, in a range of rows of each column; a comparison with renewal sequences, by which a column is shown to remain positive; a property that takes the place of convexity where the recursion does not preserve convexity; and a polynomial in a real variable through which two neighbouring columns are compared. Section 1.2 describes them.

Part of the proof is carried out by computer. The estimates are made with explicit constants, and they hold for all columns from an explicit one on, namely from column 82 or from column 265, depending on the statement that is proved.

For the columns before these, and for the rows n≤16n \le16, the proof relies on exact computations with integers. No parking functions are enumerated in them: the numbers that are needed are obtained from recursions, up to row 300, and the integers that occur have up to about 14700 decimal digits. In § 1.2, after the description of the estimates, we say what is computed, why finitely many computed numbers suffice for statements about all rows of a column, and which statements of the paper depend on the computations. The computations themselves are the subject of § 7, which contains the data that are needed to repeat them.

Cumulative counts and related results

We now recall the formulas for the number of ℓ\ell-interval parking functions and the limit theorem for the maximum displacement that were mentioned at the beginning, and we fix the notation for these numbers, the cumulative counts, which is used throughout the paper. For integers n≥0n \ge0 and k≥0k \ge0 let

An,k=#{α∈PFn:M(α)≤k}A_{n,k}=\#\{\alpha\in\mathrm{PF}_n:M(\alpha)\le k\}

be the number of parking functions of length nn in which every car parks at most kk spots beyond the spot it prefers. Here and throughout the paper we admit n=0n=0: the empty sequence is the one parking function of length 0, and its maximum displacement is 0. We also use the definition of bn,ℓb_{n,\ell} for all integers n≥0n \ge0 and ℓ≥0\ell\ge0. Thus b0,0=1b_{0,0}=1, b0,ℓ=0b_{0,\ell}=0 for ℓ≥1\ell\ge1, and bn,ℓ=0b_{n,\ell}=0 for ℓ≥n≥1\ell\ge n \ge1, and we have

An,k=∑ℓ=0kbn,ℓ,bn,0=An,0,bn,ℓ=An,ℓ−An,ℓ−1(ℓ≥1).A_{n,k}=\sum_{\ell=0}^{k}b_{n,\ell},\qquad b_{n,0}=A_{n,0},\qquad b_{n,\ell}=A_{n,\ell}-A_{n,\ell-1}\quad(\ell\ge1).

In particular A0,k=1A_{0,k}=1, while An,kA_{n,k} is nondecreasing in kk and equals (n+1)n−1(n+1)^{n-1} for n≤k+1n\le k+1, where the bound on the displacements is no restriction.

One description of An,kA_{n,k} is a sum over the permutations σ=(σ1,…,σn)\sigma=(\sigma_1,\ldots,\sigma_n) of 1,…,n1,\ldots,n [5 Section 4.1, (6)–(8)]; in the first version of [5] these are the formulas (2)–(4) of Section 3. If λi\lambda_i denotes the length of the longest run of consecutive spots that ends at spot ii, spot ii included, and on which the values of σ\sigma are at most σi\sigma_i, then there are

∏i=1nmin⁡(k+1,λi)\prod_{i=1}^{n}\min(k+1,\lambda_i)

parking functions with maximum displacement at most kk in which car σi\sigma_i parks in spot ii for every ii, and An,kA_{n,k} is the sum of these products over all σ\sigma. Another description is a recursion in nn, obtained by fixing the spot of the car that arrives last [3 Theorem 3.7]. In our notation it reads

References

  1. [1]N. H. Abel, Beweis eines Ausdruckes, von welchem die Binomial-Formel ein einzelner Fall ist, J. Reine Angew. Math. 1 (1828), 159–160.
  2. [2]B. A. Ager-Hart, M. Beerbower, P. E. Harris, J. Jakovleski, and M. McClinton, Counting ℓ-interval Fabini rankings through their parking outcome, Preprint, arXiv:2603.00693, 2026.
  3. [3]T. Aguilar-Fraga, J. Elder, R. E. Garcia, K. P. Hadaway, P. E. Harris, K. J. Harry, I. B. Hogan, J. Johnson, J. Kretschmann, K. Lawson-Chavanu, J. C. Martínez Mori, C. D. Monroe, D. Quiñonez, D. Tolson, III, and D. A. Williams, II, Interval and ℓ-interval rational parking functions, Discrete Math. Theor. Comput. Sci. 26 (2024), no. 1, Paper No. 10, 29 pp.
  4. [4]D. Aldous and J. Pitman, Tree-valued Markov chains derived from Galton-Watson processes, Ann. Inst. H. Poincaré Probab. Statist. 34 (1998), no. 5, 637–686.DOI
  5. [5]K. Celano, J. Elder, K. P. Hadaway, P. E. Harris, J. L. Martin, A. Priestley, and G. Udell, ℓ-Interval parking functions: Foota invariance, statistic generating functions, and ciphers, Preprint, arXiv:2507.07423v2, 2026, listed on arXiv under the title of its first version of 2025, Statistics on ℓ-interval parking functions.
  6. [6]N. G. de Bruijn and P. Erdős, On a recursion formula and on some Tauberian theorems, J. Research Nat. Bur. Standards 50 (1953), no. 3, 161–164.DOI
  7. [7]P. Flajolet, P. J. Grabner, P. Kirschenhofer, and H. Prodinger, On Ramanujan’s Q-function, J. Comput. Appl. Math. 58 (1995), no. 1, 103–116.
  8. [8]P. Flajolet, P. Poblete, and A. Viola, On the analysis of linear probing hashing, Algorithmica 22 (1998), no. 4, 490–515.DOI
  9. [9]D. Foata and J. Riordan, Mappings of acyclic and parking functions, Aequationes Math. 10 (1974), no. 1, 10–22.
  10. [10]C. M. Fortuin, P. W. Kasteleyn, and J. Ginibre, Correlation inequalities on some partially ordered sets, Comm. Math. Phys. 22 (1971), no. 2, 89–103.DOI
  11. [11]S. Janson and N. Petersson, The integral of the supremum process of Brownian motion, J. Appl. Probab. 46 (2009), no. 2, 593–600.arxiv.org/abs/0707.0989
  12. [12]D. E. Knuth, Linear probing and graphs, Algorithmica 22 (1998), no. 4, 561–568.DOI
  13. [13]A. G. Konheim and B. Weiss, An occupancy discipline and applications, SIAM J. Appl. Math. 14 (1966), no. 6, 1266–1274.
  14. [14]J. Pappe, A note on the log-concavity of parking functions, Preprint, arXiv:2412.19783, 2024.arxiv.org/abs/2412.19783
  15. [15]N. Pettersson, The maximum displacement for linear probing hashing, Combin. Probab. Comput. 22 (2013), no. 3, 455–476.
  16. [16]H. Robbins, A remark on Stirling’s formula, Amer. Math. Monthly 62 (1955), no. 1, 26–29.
  17. [17]T. Selig and H. Zhu, Parking functions and Łukasiewicz paths, Discrete Math. Lett. 14 (2024), 77–84.DOI
  18. [18]R. P. Stanley, Log-concave and unimodal sequences in algebra, combinatorics, and geometry, Ann. New York Acad. Sci. 576 (1989), 500–535.DOI
  19. [19]C. H. Yan, Parking functions, Handbook of Enumerative Combinatorics (M. Bóna, ed.), Discrete Math. Appl., CRC Press, Boca Raton, FL, 2015, pp. 835–893.

Paper details

vlnc:W_cbwjuf9w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents