betaFeedback

WorksMathematics

Parking Functions inspired by board games

Abstract

We introduce two new parking schemes inspired by the classic board games Monopoly and backgammon. We consider a one-way street with nn parking spots and a queue of nn cars waiting to park. Each car has a preferred parking spot and enters in sequence to park. Under the Monopoly parking scheme, if a car finds its preferred spot occupied, it returns to the start of the street and parks in the first available spot it encounters. Under the backgammon parking scheme, if a car finds its preferred spot occupied, it bumps the already parked car out of that spot and takes its place. The bumped car then returns to the start of the street and parks in the first available spot it encounters. A preference list is a parking function for a given parking scheme if all cars successfully park under that scheme. We prove that all preference lists are parking functions under both the Monopoly and backgammon parking schemes. However, the final parking order differs significantly between the two schemes. For a fixed permutation ππ, we provide a product formula for the number of Monopoly parking functions resulting in the outcome ππ. Analogously, we show that the number of backgammon parking functions with outcome ππ is bounded below by 2n−12^{n-1} and bounded above by the nn-th Catalan number. We also obtain exact formulas involving Motzkin numbers for several families of outcomes. We define the displacement of a car as the absolute difference between the spot where a car ultimately parks and its preferred spot. Displacement multisets encode the displacements for cars with nonzero displacement. We provide formulas for the number of backgammon parking functions with a fixed displacement multiset of cardinality at most 22, as well as for the number of Monopoly parking functions whose displacement multiset is a given singleton set. We conclude with some directions for further research.

Introduction

Consider a one-way street with n∈N={1,2,3,…}n \in\mathbb{N} = \{1,2,3,\ldots\} sequentially numbered parking spots, and a queue of nn cars waiting to park in those spots. Each car has a preferred parking spot, and we collect the preferences in a list α=(a1,a2,…,an)∈[n]n\alpha= (a_1,a_2,\ldots,a_n) \in[n]^n, where aia_i denotes the preferred parking spot of car ii for each i∈[n]={1,2,…,n}i \in[n] = \{1,2,\ldots,n\}. We call the list α\alpha a preference list. The cars proceed to park under the classical parking scheme: Cars enter sequentially, from car 1 through car nn, in that order. Car ii attempts to park in its preferred parking spot aia_i. If the spot is unoccupied, car ii parks there, and then car i+1i+1 enters the street, attempting to park. If car ii finds its preferred parking spot aia_i occupied, then car ii continues down the one-way street and attempts to park in the first available spot it encounters past its preference. If no such spot exists, meaning all of the spots from aia_i to nn are occupied, then car ii exits the street, and parking fails. If under this parking scheme all cars are able to park, then the preference list α\alpha is called a *(classical) parking function of length nn. For example, (1,4,4,3,2,2)(1,4,4,3,2,2) is a parking function of length 6, resulting in the cars parking as illustrated in Figure 1. In contrast, (2,4,4,3,2,5)(2,4,4,3,2,5) is not a parking function since no car prefers parking spot 1 and thus at least one car fails to park.

Figure 1. The parking outcome for the preference list (1, 4, 4, 3, 2, 2) under the classical parking scheme. Hence, O((1,4,4,3,2,2))=154236\mathcal{O}((1, 4, 4, 3, 2, 2)) = 154236.

Given a classical parking function, the order the cars park on the street is a permutation of [n][n]. We let Sn\mathfrak{S}_n denote the set of permutations of [n][n], which we write in one-line notation as π=π1π2⋯πn\pi= \pi_1\pi_2 \cdots\pi_n. Then, for a parking function α=(a1,a2,…,an)∈[n]n\alpha= (a_1,a_2,\ldots,a_n) \in[n]^n, we let O(α)∈Sn\mathcal{O}(\alpha) \in\mathfrak{S}_n be the permutation corresponding to the outcome of α\alpha; that is, we have O(α)=π=π1π2⋯πn∈Sn\mathcal{O}(\alpha) = \pi= \pi_1\pi_2\cdots\pi_n \in\mathfrak{S}_n where πj=k\pi_j = k means that car kk parks in parking spot jj. Note that the outcome of the example in Figure 1 is the permutation π=154236∈S6\pi= 154236 \in\mathfrak{S}_6.

Parking functions were introduced and studied by Konheim and Weiss in their study of hash functions [21]. They showed that, if PFn\mathrm{PF}_n denotes the set of (classical) parking functions of length nn, then ∣PFn∣=(n+1)n−1|\mathrm{PF}_n| = (n+1)^{n-1}. Since their introduction, parking functions have received considerable attention in the literature due to their numerous connections with other areas of mathematics. For example, the study of parking functions is related to hyperplane arrangements, counting facets of the permutohedron, the QuickSort algorithm, Boolean intervals in the weak Bruhat order of the symmetric group, and the Tower of Hanoi game [4, 7, 9, 17, 20, 28]. There are many generalizations of classical parking functions often involving either a change to the cars’ lengths, their preferences, or the parking scheme; see for examples [2, 11, 12, 13, 15, 26]. For more information on parking functions, we recommend the chapter by Yan [30] and for a list of open problems in this area, we refer the interested reader to [8].

In studying parking functions, a question of interest is the following: Supposing that one observes only the final parking outcome and not the preference list, how many distinct preference lists could have resulted in that parking outcome? In the classical parking function scenario, the result [13 Proposition 3.1] is a product of lengths of certain longest contiguous subsequences in the permutation describing the parking outcome. This question has also been considered under other parking schemes including MVP parking functions, kk-cascading parking functions, kk-Naples parking functions, pullback parking functions, and ℓ\ell-interval parking functions [3, 1, 13, 16, 19].

A second area of interest is the study of parking functions with a given displacement multiset, formally defined in Definition 1.11. In the classical setting, the displacement of a car ii is defined as the difference between the spot car ii parks in and the spot it originally preferred. In this paper, we will introduce new parking schemes in which a car may end up parking in a spot earlier than its preferred one, making the aforementioned difference negative. To address this, we henceforth define the displacement did_i of car ii to be the absolute value of the difference between the spot car ii prefers and where it ultimately parks. Note that this definition of displacement agrees with that of displacement under the classical parking scheme, since in that setting the difference between a car’s final parking spot and its preference is always nonnegative.

We define the displacement multiset to be the multiset consisting of the nonzero values did_i, and we denote this by D(α)\mathcal{D}(\alpha). Then, given a (classical) parking function α\alpha, the displacement of α\alpha, denoted D(α)D(\alpha) is the sum of the displacements among all cars. Namely, D(α)=∑i=1ndiD(\alpha) = \sum_{i=1}^{n} d_i, which is equal to the sum of the entries in D(α)\mathcal{D}(\alpha).

A feature of classical parking functions is that a rearrangement of a parking function is again a parking function. This follows from the inequality characterization of classical parking functions: a preference list α=(a1,a2,…,an)∈[n]n\alpha= (a_1, a_2, \ldots, a_n) \in[n]^n is a classical parking function if and only if its weakly increasing rearrangement denoted α′=(a1′,a2′,…,an′)\alpha^\prime= (a_1^\prime, a_2^\prime, \ldots, a_n^\prime), obtained by sorting the entries into weakly increasing order, satisfies ai′≤ia_i^\prime\leq i for all i∈[n]i \in[n]. Moreover, given a classical parking function with displacement kk, every rearrangement of the parking function also has displacement kk. For example, the parking functions (1,1,2)(1, 1, 2), (1,2,1)(1, 2, 1), and (2,1,1)(2, 1, 1) all have displacement 2. However, while the displacement is the same, these displacements arise in different ways: the displacement of (1,1,2)(1,1,2) arises from the sum 0+1+1=20+1+1=2, while the displacements of (1,2,1)(1,2,1) and (2,1,1)(2,1,1) arise from the sum 0+0+2=20+0+2=2.

Classical parking functions with displacement 1 always arise from a single car parking one spot away from its preference. Aguillon, Alvarenga, Harris, Kotapati, Martínez Mori, Monroe, Saylor, Tieu, and Williams II established a bijection between classical parking functions with displacement 1 and ideal states on the Tower of Hanoi game [4]. Unit-interval parking functions are classical parking functions in which all cars have displacement at most 1. Chaves Meyles, Harris, Jordaan, Rojas Kirby, Sehayek, and Spingarn established a bijection between unit-interval parking functions with kk cars having displacement 1 and the set of kk-dimensional facets of the permutohedron [9]. In this case, the displacement multiset is a multiset consisting of kk ones.

The above-referenced work motivates the present study, where we introduce two new versions of parking functions inspired by the board games Monopoly and backgammon, in which cars finding their preferred spot occupied either return to the start of the street or bump the car occupying that spot to the start of the street, respectively. The car that returns to the start of the street then drives forward and parks in the first unoccupied spot it encounters. Next, we give the technical definitions of these parking schemes and present our major results related to the number of preference lists with specified parking outcomes, as well as our results related to displacement multisets.

Monopoly Parking Scheme

In the board game Monopoly [22], there are Community Chest cards that instruct a player to “Advance to Go” which sends the player to the start of the board. Motivated by this feature of the game, we define the Monopoly parking scheme as follows:

  • Cars enter sequentially from car 1 to nn, in that order.

  • Each car attempts to park in their preferred parking spot if available.

  • If a car’s preferred spot is occupied, then the car returns to the start of the street and parks in the first available spot it encounters.

If a preference list α=(a1,a2,…,an)∈[n]n\alpha=(a_1,a_2,\ldots,a_n)\in[n]^n allows all cars to park under the Monopoly parking scheme, then α\alpha is a Monopoly parking function. We denote the parking outcome of a preference list α\alpha under the Monopoly parking scheme by OM(α)=π1π2⋯πnO_M(\alpha)=\pi_1\pi_2\cdots\pi_n, where πj=k\pi_j=k denotes that car kk parks in the jj-th spot. For succinctness, we refer to the outcome of a preference list α\alpha using the Monopoly parking scheme as the Monopoly outcome of α\alpha. For example, using the preference list α=(1,4,4,3,2,2)\alpha=(1,4,4,3,2,2) of length 6, we illustrate the Monopoly outcome of α\alpha in Figure 2.

The parking outcome for the preference list (1, 4, 4, 3, 2, 2) under the Monopoly parking scheme

Figure 2. The parking outcome for the preference list (1,4,4,3,2,2)(1,4,4,3,2,2) under the Monopoly parking scheme. Hence, OM((1,4,4,3,2,2))=134256O_M((1,4,4,3,2,2))=134256.

We let MPFn\mathrm{MPF}_n denote the set of all Monopoly parking functions. It is not difficult to see that every preference list α∈[n]n\alpha\in[n]^n is a Monopoly parking function. We state this formally next, and prove it in Section 2.

Proposition 1.1. If n∈Nn\in\mathbb{N}, then MPFn=[n]n\mathrm{MPF}_n=[n]^n and ∣MPFn∣=nn|\mathrm{MPF}_n|=n^n.

Given that every tuple in [n]n[n]^n is a Monopoly parking function, we now ask: Given a permutation π∈Sn\pi\in\mathfrak{S}_n, what tuples in [n]n[n]^n have Monopoly outcome π\pi? We denote this set

OM−1(π):={α∈[n]n:OM(α)=π}O_M^{-1}(\pi):=\{\alpha\in[n]^n:O_M(\alpha)=\pi\}

and as usual we let ∣OM−1(π)∣|\mathcal{O}^{-1}_{M}(\pi)| denote the cardinality of the set. To determine what is in the set OM−1(π)\mathcal{O}^{-1}_{M}(\pi) and its cardinality, we introduce the following definition.

Definition 1.2. For an outcome π=π1π2⋯πn∈Sn\pi= \pi_1\pi_2 \cdots\pi_n \in\mathcal{S}_n, the set of good indices of π\pi is defined as the set Iπ⊆[n]I_\pi\subseteq[n] satisfying the following condition: i∈Iπi \in I_\pi if and only if πj<πi\pi_j < \pi_i for all j<ij < i.

In other words, the set of good indices of an outcome consists of all parking spots ii such that the car in spot ii is numbered higher than every car parked to its left. Note that 1 is vacuously in the set of good indices for every permutation π\pi, as there are no indices j<1j < 1. As an example, note that the set of good indices for π=532618794\pi= 532618794 is Iπ={1,4,6,8}I_\pi= \{1, 4, 6, 8\}. Then, we have the following result for Monopoly parking functions.

Theorem 1.3. Fix an outcome π=π1π2⋯πn\pi= \pi_1\pi_2 \cdots\pi_n of length nn and let IπI_\pi be the set of good indices of π\pi. Then the number of preference lists α=(a1,a2,…,an)∈[n]n\alpha= (a_1, a_2, \ldots, a_n) \in[n]^n whose Monopoly outcome is π\pi is given by

∣OM−1(π)∣=∏i∈Iππi.|\mathcal{O}^{-1}_{M}(\pi)| = \prod_{i \in I_\pi} \pi_i.

By Theorem 1.3, given that the set of good indices of π=532618794\pi= 532618794 is Iπ={1,4,6,8}I_\pi= \{1, 4, 6, 8\}, we have that the number of preference lists in [n]n[n]^n whose Monopoly outcome is π\pi is given by π1⋅π4⋅π6⋅π8=5⋅6⋅8⋅9=2160\pi_1 \cdot\pi_4 \cdot\pi_6 \cdot\pi_8 = 5 \cdot6 \cdot8 \cdot9 = 2160.

The key idea in the proof of Theorem 1.3 (see § 2) is that each car kk contributes either 1 or kk to the product. Consequently, the maximum possible product is n!n!, achieved by the outcome 12⋯(n−1)n12 \cdots(n - 1)n, while the minimum possible product is nn, achieved by any outcome π=π1π2⋯πn\pi= \pi_1\pi_2 \cdots\pi_n with π1=n\pi_1 = n.

Thus, we readily arrive at the following enumerative results:

Corollary 1.4. Let n≥1n \ge1.

  • If π=123⋯(n−1)n\pi= 123 \cdots(n - 1)n is the identity permutation, then ∣OM−1(123⋯(n−1)n)∣=n!|\mathcal{O}^{-1}_{M}(123 \cdots(n - 1)n)| = n!.

  • If π=π1π2⋯πn\pi= \pi_1\pi_2 \cdots\pi_n is any outcome such that π1=n\pi_1 = n, then ∣OM−1(π)∣=n|\mathcal{O}^{-1}_{M}(\pi)| = n. In particular, ∣OM−1(n(n−1)⋯321)∣=n|\mathcal{O}^{-1}_{M}(n(n - 1) \cdots321)| = n.

Backgammon Parking Scheme

In the game of backgammon [5], checkers are placed on a board. When a checker lands on a space occupied by exactly one of the opponent’s checkers, it sends the opponent’s checker off the board. On the opponent’s next turn, they get a chance to re-enter their checker onto the board.

Inspired by this feature of backgammon, we introduce the backgammon parking scheme:

  • Cars enter sequentially from car 1 to nn, in that order.

  • Cars attempt to park in their preferred parking spot if available.

  • If a car’s preferred spot is occupied, then the car bumps the parked car out of its preferred parking spot. The bumped car returns to the start of the street and parks in the first available spot it encounters.

References

  1. [1]Ben Adenbaum, Néstor F. Díaz Morera, Jennifer Elder, Pamela E. Harris, Molly Lynch, and J. Carlos Martínez Mori. Parking cascades: From the simplest sequence to Motzkin and Catalan, ArXiv, 2026. https://arxiv.org/abs/2608.00735.
  2. [2]A. Adeniran, S. Butler, G. Dorpalen-Barry, P. E. Harris, C. Hettle, Q. Liang, J. L. Martin, and H. Nam. Enumerating parking completions using join and split. The Electronic Journal of Combinatorics, 27(2):#P2.44, 2020.arxiv.org/abs/1912.01688
  3. [3]Tomás Aguilar-Fraga, Jennifer Elder, Rebecca E. Garcia, Kimberly P. Hadaway, Pamela E. Harris, Kimberly J. Harry, Imhotep B. Hogan, Jakeyl Johnson, Jan Kretschmann, Kobe Lawson-Chavanu, J. Carlos Martínez Mori, Casandra D. Monroe, Daniel Quiñonez, Dirk Tolson III, and Dwight Anderson Williams II. Interval and ℓ-interval rational parking functions. Discrete Mathematics & Theoretical Computer Science, vol. 26:1, Permutation Patterns 2023, Nov 2024.
  4. [4]Yasmin Aguillon, Dylan Alvarenga, Pamela E. Harris, Surya Kotapati, J. Carlos Martínez Mori, Casandra D. Monroe, Zia Saylor, Camille Tieu, and Dwight Anderson Williams II. On parking functions and the tower of Hanoi. Amer. Math. Monthly, 2022.DOI
  5. [5]Backgammon wikipedia. https://en.wikipedia.org/wiki/Backgammon. Accessed: 2025-05-23.
  6. [6]Frank R. Bernhart. Catalan, Motzkin, and Riordan numbers. Discrete Mathematics, 204(1):73–112, 1999. Selected papers in honor of Henry W. Gould.DOI
  7. [7]S. Alex Bradt, Jennifer Elder, Pamela E. Harris, Gordon Rojas Kirby, Eva Reutercrona, Yuxuan Wang, and Juliet Whidden. Unit interval parking functions and the r-Fubini numbers. Mathematica, 3(1):370–384, 2024.arxiv.org/abs/2401.06937
  8. [8]Joshua Carlson, Alex Christensen, Pamela E. Harris, Zakiya Jones, and Andrés Ramos Rodríguez. Parking functions: Choose your own adventure. College Math. J., 52(4):254–264, 2021.arxiv.org/abs/2001.04817
  9. [9]Lucas Chaves Meyles, Pamela E. Harris, Richter Agor, Gordon Rojas Kirby, Sam Sehayek, and Ethan Spingarn. Unit-interval parking functions and the permutohedron, ArXiv, 2023. https://arxiv.org/abs/2305.15584.
  10. [10]Yen-Jen Cheng, Sen-Peng Eu, Tung-Shan Fu, and Jyun-Cheng Yao. On q-counting of noncrossing chains and parking functions. SIAM Journal on Discrete Mathematics, 38(1):917–946, 2024.arxiv.org/abs/2312.07351
  11. [11]A. Christensen, P. E. Harris, Z. Jones, M. Loving, A. Ramos Rodríguez, J. Rennie, and G. Rojas Kirby. A generalization of parking functions allowing backward movement. The Electronic Journal of Combinatorics, 27(1):#P1.33, 2020.arxiv.org/abs/1908.07658
  12. [12]Emma Colaric, Ryan DeMuse, Jeremy L. Martin, and Mei Yin. Interval parking functions. Adv. in Appl. Math., 123:Paper No. 102129, 17, 2021.arxiv.org/abs/2006.09321
  13. [13]Laura Correa, Pamela E. Harris, Zakiya Jones, Christo Keller, Andrés Ramos Rodríguez, Eunice Sukarto, and Andrés R. Vindas-Meléndez. Counting k-Knaples parking functions through permutations and the k-Knaples area statistic. Enumer. Comb. Appl., 1(2), (2021) #S2R11.
  14. [14]Robert Donaghey and Louis W. Shapiro. Motzkin numbers. Journal of Combinatorial Theory Series A, 23:291–301, 1977.DOI
  15. [15]Richard Ehrenborg and Alex Happ. Parking cars of different sizes. Amer. Math. Monthly, 123(10):1045–1048, 2016.DOI
  16. [16]Jennifer Elder, Pamela E. Harris, Lybitina Koene, Ilana Lavene, Lucy Martinez, and Molly Oldham. Pullback parking functions. American Journal of Combinatorics, 4(10):1–22, 2025. Research Article.DOI
  17. [17]Jennifer Elder, Pamela E. Harris, Jan Kretschmann, and J. Carlos Martínez Mori. Parking functions, Fubini rankings, and Boolean intervals in the weak order of S̃ₙ. Journal of Combinatorics, 16(1):65–89, 2025.DOI
  18. [18]Ira Gessel and Seungkyung Seo. A refinement of Cayley’s formula for trees. Electron. J. Comb., 11:R27, 08 2005.arxiv.org/abs/math/0507497
  19. [19]Pamela E. Harris, Brian M. Kamau, J. Carlos Martinez Mori, and Roger Tian. On the outcome map of MVP parking functions: permutations avoiding 321 and 3412, and Motzkin paths. Enumer. Comb. Appl., 3(2):Paper No. S2R11, 16, 2023.DOI
  20. [20]Pamela E. Harris, Jan Kretschmann, and J. Carlos Martínez Mori. Lucky cars and the quicksort algorithm. Amer. Math. Monthly, 131(5):417–423, 2024.arxiv.org/abs/2306.13065
  21. [21]Alan G. Konheim and Benjamin Weiss. An occupancy discipline and applications. SIAM. J. Appl. Math., 14:1266–1274, 1966.DOI
  22. [22]Monopoly (game) wikipedia. https://en.wikipedia.org/wiki/Monopoly_(game). Accessed: 2025-05-23.
  23. [23]Th. Motzkin. Relations between hypersurface cross ratios, and a combinatorial formula for partitions of a polygon, for permanent preponderance, and for non-associative products. Bull. Amer. Math. Soc., 54:352–360, 1948.DOI
  24. [24]OEIS Foundation Inc. The On-Line Encyclopedia of Integer Sequences, 2023. Published electronically at http://oeis.org.
  25. [25]P. R. F. Schumacher. Descents in Parking Functions. Journal of Integer Sequences, 21, 2018. https://www.emis.de/journals/JIS/VOL21/Schumacher/schu5.pdf.
  26. [26]Sam Spiro. Subset parking functions. J. Integer Seq., 22(7):Art. 19.7.3, 15, 2019.arxiv.org/abs/1909.10109
  27. [27]Catalan Numbers vs Bell Numbers. https://math.stackexchange.com/questions/1572788/catalan-numbers-vs-bell-numbers. Accessed: 2025-05-24.
  28. [28]Richard P. Stanley. Hyperplane arrangements, interval orders, and trees. Proc. Natl. Acad. Sci. USA, 93:2620–5, 1996.pubmed.ncbi.nlm.nih.gov/11607643
  29. [29]Richard P. Stanley. Catalan numbers. Cambridge University Press, New York, 2015.DOI
  30. [30]Catherine H. Yan. Parking functions. In Handbook of Enumerative Combinatorics, pages 835–894. Chapman and Hall/CRC, 2015.

Paper details

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

views · 4

downloads · 0

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

  • Mathematics

None listed by the authors

View statement
Looking for related papers…
Contents