This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Counting prime juggling patterns

Esther Banaian College of St. Benedict, Collegeville, MN 56321, USA embanaian@csbsju.edu    Steve Butler Iowa State University, Ames, IA 50011, USA butler@iastate.edu    Christopher Cox Carnegie Mellon University, Pittsburgh, PA 15213, USA cocox@andrew.cmu.edu    Jeffrey Davis University of South Carolina, Columbia, SC 29208, USA davisj56@email.sc.edu    Jacob Landgraf Michigan State University, East Lansing, MI 48824, USA landgr10@msu.edu    Scarlitte Ponce California State University, Monterey Bay, Seaside, CA 93955, USA scponce@csumb.edu
Abstract

Juggling patterns can be described by a closed walk in a (directed) state graph, where each vertex (or state) is a landing pattern for the balls and directed edges connect states that can occur consecutively. The number of such patterns of length nn is well known, but a long-standing problem is to count the number of prime juggling patterns (those juggling patterns corresponding to cycles in the state graph). For the case of b=2b=2 balls we give an expression for the number of prime juggling patterns of length nn by establishing a connection with partitions of nn into distinct parts. From this we show the number of two-ball prime juggling patterns of length nn is (γo(1))2n\big{(}\gamma-o(1)\big{)}2^{n} where γ=1.32963879259\gamma=1.32963879259\ldots. For larger bb we show there are at least bn1b^{n-1} prime cycles of length nn.

1 Introduction

Juggling has many interesting connections with combinatorics (see [1, 2, 6]). There are several ways to describe juggling patterns, and each description gives some information about various properties of the patterns. One of the most useful ways to describe a juggling pattern is with state graphs.

The state graph for bb balls is an infinite directed graph where the vertices (or states) correspond to a schedule of when balls will land and directed edges join states that can occur consecutively. In particular, a state is a 0-11 vector indexed by \mathbb{N} where a 11 in position ii indicates that a ball will land ii “beats” in the future (the number of 11’s in the state vector equals the number of balls bb). Given a state the possible transitions are as follows:

  • If the leading entry in the state is 0, then there is no ball scheduled to land. Moving forward one beat, we delete the first entry, and all other entries shift down by one.

  • If the leading entry in the state is 11, then there is a ball scheduled to land. Moving forward one beat, we delete the first entry, all other entries shift down by one, and then put a 11 somewhere which is currently 0. (That is, the ball goes into the hand, time moves forward one beat, and then we “throw” the ball so that it lands at a time in the future that does not already have a ball scheduled to land.)

In the language of state vectors, if 𝐜=c1,c2,\mathbf{c}=\langle c_{1},c_{2},\ldots\rangle and 𝐝=d1,d2,\mathbf{d}=\langle d_{1},d_{2},\ldots\rangle are states in the graph, then 𝐜𝐝\mathbf{c}\to\mathbf{d} if and only if dici+1d_{i}\geq c_{i+1} for all i1i\geq 1. A portion of the state graph when b=2b=2 is shown in Figure 1. Here we have only included those states where the largest index of a nonzero entry is at most four, and we have truncated the states. We label the edges to indicate the type of “throw” that occurred. A “0” indicates no throw was made; otherwise, “ii” indicates that we moved the leading 11 into the ii-th slot by an appropriate throw.

0,1,0,1\langle 0,1,0,1\rangle1,0,1,0\langle 1,0,1,0\rangle1,1,0,0\langle 1,1,0,0\rangle0,0,1,1\langle 0,0,1,1\rangle1,0,0,1\langle 1,0,0,1\rangle0,1,1,0\langle 0,1,1,0\rangle044113322224404401133
Figure 1: A subgraph of the two-ball state graph. The edge labels correspond to throw heights.

Periodic juggling patterns can be found from the state graph by looking for closed walks. The length of the closed walk, which we denote by nn, indicates the period of the corresponding pattern, i.e. the juggling pattern is formed by continuously repeating the walk so that the throw made at time ii (as indicated by the edge label) is the same as that made at time i+ni+n. The sequence of edge labels for the closed walk corresponds to the siteswap sequence for the juggling pattern. This is denoted by t1t2tnt_{1}t_{2}\ldots t_{n} where each tit_{i} indicates the type of throw made at the ii-th step. Siteswap sequences are commonly used by jugglers when describing juggling patterns. It is known that from the siteswap we can recover the closed walk in the state graph (see [1, 6]).

Some of the closed walks, i.e. juggling patterns, from Figure 1 are given in Table 1. Note that the first five listed have all of the nn states unique, i.e. the closed walks corresponds to cycles, while the last two have at least one state is repeated. We call juggling patterns which correspond to cycles in the state graphs prime juggling patterns (the notion of prime comes from noting every juggling pattern can be formed by appropriately combining prime juggling patterns).

closed walksiteswap1,1,0,01,1,0,021,0,1,00,1,0,11,0,1,0401,1,0,01,0,1,01,1,0,0311,1,0,01,0,0,10,0,1,10,1,1,01,1,0,044001,1,0,01,0,0,11,0,1,00,1,1,01,1,0,041301,1,0,01,0,1,00,1,0,11,0,1,01,1,0,034010,1,0,11,0,1,00,1,1,01,1,0,01,0,1,00,1,0,103034\begin{array}[]{c|c}\text{closed walk}&\text{siteswap}\\ \hline\cr\langle 1,1,0,0\rangle{\to}\langle 1,1,0,0\rangle&2\\ \langle 1,0,1,0\rangle{\to}\langle 0,1,0,1\rangle{\to}\langle 1,0,1,0\rangle&40\\ \langle 1,1,0,0\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 1,1,0,0\rangle&31\\ \langle 1,1,0,0\rangle{\to}\langle 1,0,0,1\rangle{\to}\langle 0,0,1,1\rangle{\to}\langle 0,1,1,0\rangle{\to}\langle 1,1,0,0\rangle&4400\\ \langle 1,1,0,0\rangle{\to}\langle 1,0,0,1\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 0,1,1,0\rangle{\to}\langle 1,1,0,0\rangle&4130\\ \langle 1,1,0,0\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 0,1,0,1\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 1,1,0,0\rangle&3401\\ \langle 0,1,0,1\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 0,1,1,0\rangle{\to}\langle 1,1,0,0\rangle{\to}\langle 1,0,1,0\rangle{\to}\langle 0,1,0,1\rangle&03034\end{array}
Table 1: Some of the juggling patterns from Figure 1.

An exact expression for the number of juggling patterns with bb balls and period nn has been known for decades (see [1]), and is approximately ((b+1)nbn)/n\big{(}(b+1)^{n}-b^{n}\big{)}/n. The number of prime juggling patterns of period nn and bb balls, denoted P(n,b)P(n,b), has never been determined for non-trivial values. A small step towards counting prime juggling patterns was achieved by Chung and Graham [4] (see also [3]) who were able to enumerate primitive juggling patterns, i.e. patterns of period nn which do not repeat a fixed initial state. In this paper we will begin to address the enumeration problem of prime juggling patterns.

In Section 2 we will count the number of two-ball prime juggling patterns of period nn by showing a connection to the partitions of nn into distinct parts. From this we will show in Section 3 that the number of two-ball prime juggling patterns of period nn is (γo(1))2n\big{(}\gamma-o(1)\big{)}2^{n} for a known constant γ=1.3296\gamma=1.3296\ldots. In Section 4 we give a lower bound of bn1b^{n-1} for the number of prime juggling patterns of length nn with bb balls. Finally, we give some concluding remarks in Section 5.

2 Enumeration by ordered partitions

Our approach to counting will be to find a description of two-ball prime juggling patterns that is connected to ordered partitions. The key observation we will use is that we can describe our patterns by how the spacings can occur in the states (i.e. the distance between the 11’s in a state).

2.1 Ternary sequences and spacings

There is a bijection between period nn, two-ball juggling patterns and ternary words of length nn using the letters {0,x,y}\{0,x,y\} with at least one occurrence of an xx. The letters are indicating the action on the nn-th beat, and are interpreted as follows:

  • 0 indicates no ball was thrown at that beat.

  • xx indicates that a ball was thrown and that the next ball thrown will be the other ball.

  • yy indicates that a ball was thrown and that the next ball thrown will be the same ball.

In other words, a throw corresponding to an xx throws the ball so that it will land after the ball already in the air, while a throw corresponding to a yy throws the ball so that it will land before the ball already in the air. We must have at least one xx since otherwise we will only throw at most one ball. (We note that this is related to the card interpretation of juggling patterns which we will visit in Section 4).

From the ternary word, we can reconstruct the sequence of throw heights, i.e. the siteswap. (As noted earlier, once we have the siteswap sequence, we can find the closed walk in the state graph.) Since a yy throw requires that the next ball thrown is the same ball, the throw height is the distance to the subsequent nonzero entry. On the other hand, an xx throw requires the next ball thrown to be different, so this ball will not land until the other ball is thrown by a throw corresponding to another xx. Therefore, the throw height is the distance to the first nonzero entry following the subsequent xx. These words are cyclic, so we wrap around at the ends when counting throw heights.

Example 1.

We illustrate this process for n=11n=11 and the word yx00x0y000xyx00x0y000x. Below we have written the word in the first line, and in the second line we have indicated the throw heights (i.e. siteswap) corresponding to this word.

yy xx 0 0 xx 0 yy 0 0 0 xx
1 5 0 0 7 0 4 0 0 0 5

The next step is to determine when a ternary word corresponds to a prime juggling sequence. We note that two-ball states are of the form ,1,0,,0,1,\langle\ldots,1,0,\ldots,0,1,\ldots\rangle. Since states with a leading 0 will always result in a series of shifts until the first term is a 11, it suffices to determine whether any states of the form

1,0,,0i,1,\langle 1,\underbrace{0,\ldots,0}_{i},1\rangle,

are repeated, where ii is the number of 0 entries between the two entries of 11. For such a pattern, we will set the spacing to be i+1i+1. In other words, the spacing is the difference in the landing times for the two balls. Thus, a two-ball juggling pattern is prime if and only if all the states 1,,1\langle 1,\ldots,1\rangle visited in the pattern have unique spacings. Our next step is to determine the spacings from the word.

Given a ternary word corresponding to a juggling pattern, define an anchor point as the first nonzero entry following an xx. By our convention, an anchor point is always the result of an xx throw, and in particular is the second ball in the state until the immediately preceding xx throw occurs. Therefore, to determine the spacing between the balls throughout the juggling pattern, we count the spacing between each nonzero entry and the subsequent anchor point.

Example 2.

For the ternary word in Example 1, we place an anchor symbol ({*}) above each anchor point, and below each nonzero entry give the spacing to the next anchor point.

{*} {*} {*}
yy xx 0 0 xx 0 yy 0 0 0 xx
44 33 22 55 11

Since these spaces are all distinct, the corresponding juggling pattern is prime.

For each anchor point in a word, we build a set of spacings connected to that anchor point. In Example 2, these sets are {4,3}\{4,3\}, {2}\{2\}, and {5,1}\{5,1\}. Note that the sum of the distances between adjacent anchor points, which is also the sum of the largest entries in each set, is nn. It is also possible to reconstruct our ternary word, and hence juggling pattern, given an ordered collection of sets of spacings.

Lemma 1.

Given S1,S2,,SkS_{1},S_{2},\ldots,S_{k}, where each SiS_{i} is a nonempty set and the sum of the largest entries is nn, then there is a unique cyclic ternary word of length nn so that the sets of spacings are S1,S2,,SkS_{1},S_{2},\ldots,S_{k} and for 1ik11\leq i\leq k-1, if SiS_{i} is associated with a given anchor point, then Si+1S_{i+1} is associated with the following anchor point.

Proof.

We form the ternary word in reverse by applying the following algorithm.

  • Start with a word of length n+1n+1 where the first nn entries are 0 and the last entry is an active point, temporarily marked “?”.

  • For the sets Sk,Sk1,,S1S_{k},S_{k-1},\ldots,S_{1} (in that order) repeat the following action for the set SiS_{i},

    • Suppose that Si={s1,s2,,st}S_{i}=\{s_{1},s_{2},\ldots,s_{t}\} and that s1<s2<<sts_{1}<s_{2}<\cdots<s_{t}. In the entry precisely s1s_{1} entries to the left of the active point, replace the 0 with an “xx”. For j=s2,,stj=s_{2},\ldots,s_{t}, in the entry precisely jj entries to the left of the active point, replace the 0 with a “yy”.

    • Change the active point to be the furthest left nonzero entry (equivalently, the entry formed using element sts_{t} in SiS_{i}).

  • Delete the “?” in the last entry.

Since each set is nonempty and we place an xx immediately to the left of our active point, then the active points used in the construction will give the anchor points of the resulting ternary word. Further, by the construction for each anchor point we will produce spacings that corresponded precisely to the set SiS_{i} used in the placements, and since we worked backwards when constructing the sets of orderings, we will have that SiS_{i} comes immediately before Si+1S_{i+1}. Finally, we note that since the sum of the largest entries in the SiS_{i} is nn, then we will place an anchor point in the first entry, which by wraparound is the same as placing a point in entry n+1n+1. This justifies deleting the “?” at the end. (Note that an anchor point could be either an xx or yy which is why we did not initially specify the entry). ∎

2.2 Ordered partitions

As we have already noted, the largest entries of the sets of spacings form a partition of nn. If we restrict to considering prime juggling patterns, then the spacings are distinct, and the largest entries of the sets of spacings form a partition of nn into distinct parts.

Starting with a partition of nn into distinct parts, we consider the number of ways to form sets of spacings that give a prime juggling pattern (i.e. number of ways to add possible additional elements while ensuring that there are no repeats).

Example 3.

For the partition 2+7+112+7+11 of 2020, we consider the number of ways to form a set of spacings that correspond to a prime juggling pattern with largest parts 22, 77, and 1111. In particular, we consider the Ferrer’s diagram for the partition.

×\times×\times×\times4\varnothing3333\varnothing222\varnothing1234567891011

We have that the numbers 22, 77 and 1111 are the largest elements of the sets, and so it remains to determine what happens with the other values. The number under each column indicates how many options we have for a particular value (i.e. we can include it in any subset whose largest part is greater than the value or we can include it in none of the sets). Since the choices for the values are independent, the number of possible sets of spacings is 434234\cdot 3^{4}\cdot 2^{3}.

Theorem 2.

Let P(n,2)P(n,2) be the number of two-ball prime juggling patterns of period nn. Then

P(n,2)=t(p1>>pt1p1++pt=n1t(t+1)i=1t(i+1i)pi).P(n,2)=\sum_{t}\bigg{(}\sum_{\begin{subarray}{c}p_{1}>\cdots>p_{t}\geq 1\\ p_{1}+\cdots+p_{t}=n\end{subarray}}\frac{1}{t(t+1)}\prod_{i=1}^{t}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}}\bigg{)}.
Proof.

We have already noted that a juggling pattern is prime if and only if no spacings are repeated. We also know that given a set of spacings, together with a relative ordering of the sets, we can form a juggling pattern. So it suffices to count the number of ways to form the sets of spacings with no repeated elements, keeping in mind that we must also keep track of the cyclic orderings of these sets.

In particular, given n=p1+p2++ptn=p_{1}+p_{2}+\cdots+p_{t} with p1>p2>>pt1p_{1}>p_{2}>\cdots>p_{t}\geq 1, i.e. a partition of nn into distinct parts, the number of ways to form a set of spacings where the largest elements come from these parts is

(t+1)pttpt1pt(t1)pt2pt12p1p2(t+1)t(t1)2=i=1t(i+1i)pi(t+1)!.\frac{(t+1)^{p_{t}}t^{p_{t-1}-p_{t}}(t-1)^{p_{t-2}-p_{t-1}}\cdots 2^{p_{1}-p_{2}}}{(t+1)t(t-1)\cdots 2}=\frac{\displaystyle\prod_{i=1}^{t}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}}}{(t+1)!}. (1)

To see this, let pt+1=0p_{t+1}=0 and then for 2it+12\leq i\leq t+1 we have pi1p_{i-1} columns in the partition diagram that have at least i1i-1 elements, and similarly pip_{i} columns in the partition diagram that have at least ii elements. In particular, there are exactly pi1pip_{i-1}-p_{i} columns in the partition diagram that have exactly i1i-1 elements. Each of these columns have ii different options for what happens to that value, except for the value pi1p_{i-1} which is already used as one of the largest elements in the sets of spacings. Therefore these columns contribute ipi1pi1i^{p_{i-1}-p_{i}-1}, giving (1).

We now also need to account for the cyclic orderings of the sets. Given tt sets, there are (t1)!(t-1)! such orderings. We can conclude that, for the given partition, we have

1t(t+1)i=1t(i+1i)pi\frac{1}{t(t+1)}\prod_{i=1}^{t}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}}

different prime juggling patterns. We now sum over all partitions with a fixed number of parts, and similarly sum over all possible number of parts to get the result. ∎

3 Asymptotics

From Theorem 2 we can find the number of prime juggling patterns for any nn. In Table 2 we give these values for n30n\leq 30. By examining the data it appears that we are approximately doubling at each step. In this section we will show that this reflects the behavior of these numbers. In particular, we will establish the following.

Theorem 3.

We have P(n,2)=(γo(1))2nP(n,2)=\big{(}\gamma-o(1)\big{)}2^{n}, where

γ=12+12t2(i=2ti12ii1)=1.3296387925905428331319\gamma=\frac{1}{2}+{1\over 2}\sum_{t\geq 2}\bigg{(}\prod_{i=2}^{t}{i-1\over 2^{i}-i-1}\bigg{)}=1.3296387925905428331319\ldots
nn P(n,2)P(n,2)
11 11
22 22
33 55
44 1010
55 2323
66 4848
77 105105
88 216216
99 467467
1010 958958
nn P(n,2)P(n,2)
1111 20212021
1212 41464146
1313 86318631
1414 1760417604
1515 3637736377
1616 7387673876
1717 151379151379
1818 306822306822
1919 625149625149
2020 12632941263294
nn P(n,2)P(n,2)
2121 25638952563895
2222 51695445169544
2323 1045410510454105
2424 2104680021046800
2525 4245117942451179
2626 8533498285334982
2727 171799853171799853
2828 344952010344952010
2929 693368423693368423
3030 13910499001391049900
Table 2: P(n,2)P(n,2) for 1n301\leq n\leq 30.

3.1 Upper bound

If we let ct(n)c_{t}(n) be the number of ways to place spacings in the partitions of nn into exactly tt distinct parts, then by Theorem 2 we have

ct(n)=p1>>pt1p1++pt=n1t(t+1)i=1t(i+1i)pi.c_{t}(n)=\sum_{\begin{subarray}{c}p_{1}>\cdots>p_{t}\geq 1\\ p_{1}+\cdots+p_{t}=n\end{subarray}}\frac{1}{t(t+1)}\prod_{i=1}^{t}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}}. (2)
Proposition 4.

The values ct(n)c_{t}(n) satisfy the recurrence,

ct(n)=k=1n(t2)t(t1)(t+1)k1ct1(nkt)c_{t}(n)=\sum_{k=1}^{\big{\lfloor}\frac{n-{t\choose 2}}{t}\big{\rfloor}}(t-1)(t+1)^{k-1}c_{t-1}(n-kt)
Proof.

Starting with (2) we have

ct(n)\displaystyle c_{t}(n) =p1>>pt1p1++pt=n1t(t+1)i=1t(i+1i)pi\displaystyle=\sum_{\begin{subarray}{c}p_{1}>\cdots>p_{t}\geq 1\\ p_{1}+\cdots+p_{t}=n\end{subarray}}\frac{1}{t(t+1)}\prod_{i=1}^{t}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}}
=p1>>pt1p1++pt=n(t+1)ptt(t+1)i=1t1(i+1i)pipt\displaystyle=\sum_{\begin{subarray}{c}p_{1}>\cdots>p_{t}\geq 1\\ p_{1}+\cdots+p_{t}=n\end{subarray}}\frac{(t+1)^{p_{t}}}{t(t+1)}\prod_{i=1}^{t-1}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}-p_{t}}
=k=1n(t2)t(t1)(t+1)k1p1>>pt=kp1++pt=n1t(t1)i=1t1(i+1i)pik\displaystyle=\sum_{k=1}^{\big{\lfloor}\frac{n-{t\choose 2}}{t}\big{\rfloor}}(t-1)(t+1)^{k-1}\sum_{\begin{subarray}{c}p_{1}>\cdots>p_{t}=k\\ p_{1}+\cdots+p_{t}=n\end{subarray}}\frac{1}{t(t-1)}\prod_{i=1}^{t-1}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}-k}
=k=1n(t2)t(t1)(t+1)k1p1>>pt11p1++pt1=n1t(t1)i=1t1(i+1i)pi\displaystyle=\sum_{k=1}^{\big{\lfloor}\frac{n-{t\choose 2}}{t}\big{\rfloor}}(t-1)(t+1)^{k-1}\sum_{\begin{subarray}{c}p_{1}^{\prime}>\cdots>p_{t-1}^{\prime}\geq 1\\ p_{1}^{\prime}+\cdots+p_{t-1}^{\prime}=n\end{subarray}}\frac{1}{t(t-1)}\prod_{i=1}^{t-1}\bigg{(}\frac{i+1}{i}\bigg{)}^{p_{i}^{\prime}}
=k=1n(t2)t(t1)(t+1)k1ct1(nkt).\displaystyle=\sum_{k=1}^{\big{\lfloor}\frac{n-{t\choose 2}}{t}\big{\rfloor}}(t-1)(t+1)^{k-1}c_{t-1}(n-kt).

In going from the first to the second line we pull out (t+1)pt(t+1)^{p_{t}} (using that we have a telescoping product). In going from the second line to the third line we group by the size of ptp_{t}, calling this parameter kk, and note that since the parts are distinct we must have that kt+(t2)nkt+{t\choose 2}\leq n (i.e. our partition contains at least a t×kt\times k block and a triangle on the first t1t-1 entries). In going from the third line to the fourth line we drop the size of each part by kk and now have a partition of nktn-kt using t1t-1 parts. Finally, in going from the fourth line to the fifth line we note that we now have the definition of ct1(nkt)c_{t-1}(n-kt) inside of the sum. ∎

Since we have that P(n,2)=tct(n)P(n,2)=\sum_{t}c_{t}(n), we can work on bounding the size of each ct(n)c_{t}(n). This is achieved by the next result.

Proposition 5.

There exist constants qtq_{t} so that ct(n)qt2nc_{t}(n)\leq q_{t}2^{n} where q1=12q_{1}=\frac{1}{2} and for all t2t\geq 2,

qt=(t12tt1)qt1.q_{t}=\bigg{(}{t-1\over 2^{t}-t-1}\bigg{)}q_{t-1}.
Proof.

Putting t=1t=1 into (2) we have c1(n)=122nc_{1}(n)=\frac{1}{2}2^{n}, establishing q1=12q_{1}=\frac{1}{2}. Now assuming by induction we have established that ct1(n)qt12nc_{t-1}(n)\leq q_{t-1}2^{n}, then by Proposition 4 we have

ct(n)\displaystyle c_{t}(n) =k=1n(t2)t(t1)(t+1)k1ct1(nkt)k=1n(t2)t(t1)(t+1)k1qt12nkt\displaystyle=\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}(t-1)(t+1)^{k-1}c_{t-1}(n-kt)\leq\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}(t-1)(t+1)^{k-1}q_{t-1}2^{n-kt}
(t1)2nt+1qt1k1(t+12t)k=(t1)2nt+1qt1t+12t1t+12t\displaystyle\leq\frac{(t-1)2^{n}}{t+1}q_{t-1}\sum_{k\geq 1}\bigg{(}{t+1\over 2^{t}}\bigg{)}^{k}=\frac{(t-1)2^{n}}{t+1}q_{t-1}\frac{{t+1\over 2^{t}}}{1-{t+1\over 2^{t}}}
=(t12tt1)qt1=qt2n.\displaystyle=\underbrace{\bigg{(}\frac{t-1}{2^{t}-t-1}\bigg{)}q_{t-1}}_{=q_{t}}2^{n}.\qed

From the preceding proposition we can conclude for t2t\geq 2 that

qt=12i=2ti12ii1,q_{t}=\frac{1}{2}\prod_{i=2}^{t}\frac{i-1}{2^{i}-i-1},

in particular we have that γ=t1qt\gamma=\sum_{t\geq 1}q_{t}.

We now have everything we need for the upper bound.

Lemma 6.

We have P(n,2)γ2nP(n,2)\leq\gamma 2^{n}.

Proof.

Using Proposition 5 we have

P(n,2)\displaystyle P(n,2) =t1ct(n)t1qt2n=(12+12t2i=2ti12ii1)2n=γ2n.\displaystyle=\sum_{t\geq 1}c_{t}(n)\leq\sum_{t\geq 1}q_{t}2^{n}=\bigg{(}\frac{1}{2}+\frac{1}{2}\sum_{t\geq 2}\prod_{i=2}^{t}\frac{i-1}{2^{i}-i-1}\bigg{)}2^{n}=\gamma 2^{n}.\qed

3.2 Lower Bound

The key in establishing the upper bound is in Proposition 4 to give an upper bound on each individual ct(n)c_{t}(n) in Proposition 5. We will use a similar approach for establishing the lower bound.

Proposition 7.

There exist constants qtq_{t} and rtr_{t} so that ct(n)qt2nrt3nc_{t}(n)\geq q_{t}2^{n}-r_{t}{\sqrt{3}}^{n} where q1=q2=12q_{1}=q_{2}=\frac{1}{2}, r1=0r_{1}=0, r2=439r_{2}=\frac{4\sqrt{3}}{9} and for all t3t\geq 3,

qt=(t12tt1)qt1 and rt=t13tt1rt1+2(2tt+1)(t1)/2qt1.q_{t}=\bigg{(}{t-1\over 2^{t}-t-1}\bigg{)}q_{t-1}\text{ and }r_{t}=\frac{t-1}{\sqrt{3}^{t}-t-1}r_{t-1}+2\bigg{(}{2^{t}\over t+1}\bigg{)}^{(t-1)/2}q_{t-1}.
Proof.

Putting t=1t=1 into (2) we have c1(n)=122nc_{1}(n)=\frac{1}{2}2^{n}, establishing q1=12q_{1}=\frac{1}{2} and r1=0r_{1}=0. Now using Proposition 4 we have

c2(n)\displaystyle c_{2}(n) =k=1n123k1122n2k=162nk=1n12(34)k=162n34(34)n12+1134\displaystyle=\sum_{k=1}^{\lfloor{n-1\over 2}\rfloor}3^{k-1}\frac{1}{2}2^{n-2k}=\frac{1}{6}2^{n}\sum_{k=1}^{\lfloor{n-1\over 2}\rfloor}\bigg{(}\frac{3}{4}\bigg{)}^{k}=\frac{1}{6}2^{n}\cdot\frac{\frac{3}{4}-\big{(}\frac{3}{4}\big{)}^{\lfloor{n-1\over 2}\rfloor+1}}{1-\frac{3}{4}}
=122n232n(34)n12+1122n232n(34)n12=122n4393n,\displaystyle=\frac{1}{2}2^{n}-\frac{2}{3}2^{n}\bigg{(}\frac{3}{4}\bigg{)}^{\lfloor{n-1\over 2}\rfloor+1}\geq\frac{1}{2}2^{n}-\frac{2}{3}2^{n}\bigg{(}\frac{3}{4}\bigg{)}^{{n-1\over 2}}=\frac{1}{2}2^{n}-\frac{4\sqrt{3}}{9}\sqrt{3}^{n},

establishing q2=12q_{2}=\frac{1}{2} and r2=439r_{2}=\frac{4\sqrt{3}}{9} (the inequality follows by noting that if we make the exponent smaller we are subtracting a larger value). Now assuming by induction we have established that ct1(n)qt12nrt13nc_{t-1}(n)\geq q_{t-1}2^{n}-r_{t-1}{\sqrt{3}}^{n} we have

ct(n)\displaystyle c_{t}(n) =k=1n(t2)t(t1)(t+1)k1ct1(nkt)\displaystyle=\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}(t-1)(t+1)^{k-1}c_{t-1}(n-kt)
k=1n(t2)t(t1)(t+1)k1(qt12nktrt13nkt)\displaystyle\geq\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}(t-1)(t+1)^{k-1}\big{(}q_{t-1}2^{n-kt}-r_{t-1}{\sqrt{3}}^{n-kt}\big{)}
=(t1)2nt+1qt1k=1n(t2)t(t+12t)k(t1)3nt+1rt1k=1n(t2)t(t+13t)k.\displaystyle={(t-1)2^{n}\over t+1}q_{t-1}\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}\bigg{(}{t+1\over 2^{t}}\bigg{)}^{k}-{(t-1){\sqrt{3}}^{n}\over t+1}r_{t-1}\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}\bigg{(}{t+1\over{\sqrt{3}}^{t}}\bigg{)}^{k}.

For the second term we have

(t1)3nt+1rt1k=1n(t2)t(t+13t)k\displaystyle{(t-1){\sqrt{3}}^{n}\over t+1}r_{t-1}\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}\bigg{(}{t+1\over{\sqrt{3}}^{t}}\bigg{)}^{k} (t1)3nt+1rt1k1(t+13t)k\displaystyle\leq{(t-1){\sqrt{3}}^{n}\over t+1}r_{t-1}\sum_{k\geq 1}\bigg{(}{t+1\over{\sqrt{3}}^{t}}\bigg{)}^{k}
(t1)3nt+1rt1t+13t1t+13t\displaystyle\leq{(t-1){\sqrt{3}}^{n}\over t+1}r_{t-1}{{t+1\over\sqrt{3}^{t}}\over 1-{t+1\over\sqrt{3}^{t}}}
=t13tt1rt13n.\displaystyle={t-1\over\sqrt{3}^{t}-t-1}r_{t-1}\sqrt{3}^{n}.

For the first term we first sum and split it into two parts, i.e.

(t1)2nt+1qt1k=1n(t2)t(t+12t)k=(t1)2nt+1qt1t+12t(t+12t)n(t2)t+11t+12t=t12tt1qt12n(t1)2t(t+1)(2tt1)qt1(t+12t)n(t2)t+12n.{(t-1)2^{n}\over t+1}q_{t-1}\sum_{k=1}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}}\bigg{(}{t+1\over 2^{t}}\bigg{)}^{k}={(t-1)2^{n}\over t+1}q_{t-1}\cdot\frac{\frac{t+1}{2^{t}}-\big{(}\frac{t+1}{2^{t}}\big{)}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}+1}}{1-\frac{t+1}{2^{t}}}\\ =\frac{t-1}{2^{t}-t-1}q_{t-1}2^{n}-\frac{(t-1)2^{t}}{(t+1)(2^{t}-t-1)}q_{t-1}\bigg{(}\frac{t+1}{2^{t}}\bigg{)}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}+1}2^{n}.

Proceeding similarly as before and using that t3t\geq 3 (so that among other things (t+1)1/t<3(t+1)^{1/t}<\sqrt{3}) we have

(t1)2t(t+1)(2tt1)qt1(t+12t)n(t2)t+12n=t1t+112t2tt12qt1(t+12t)n(t2)t+12n2qt1(t+12t)n(t2)t2n=2qt1(2tt+1)(t1)/2((t+1)1/t)n<2qt1(2tt+1)(t1)/23n.\frac{(t-1)2^{t}}{(t+1)(2^{t}-t-1)}q_{t-1}\bigg{(}\frac{t+1}{2^{t}}\bigg{)}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}+1}2^{n}\\ =\underbrace{\frac{t-1}{t+1}}_{\leq 1}\underbrace{\frac{2^{t}}{2^{t}-t-1}}_{\leq 2}q_{t-1}\bigg{(}\frac{t+1}{2^{t}}\bigg{)}^{\big{\lfloor}{n-{t\choose 2}\over t}\big{\rfloor}+1}2^{n}\leq 2q_{t-1}\bigg{(}\frac{t+1}{2^{t}}\bigg{)}^{{n-{t\choose 2}\over t}}2^{n}\\ =2q_{t-1}\bigg{(}\frac{2^{t}}{t+1}\bigg{)}^{(t-1)/2}\big{(}(t+1)^{1/t}\big{)}^{n}<2q_{t-1}\bigg{(}\frac{2^{t}}{t+1}\bigg{)}^{(t-1)/2}\sqrt{3}^{n}.

Putting this altogether we have

ct(n)t12tt1qt1=qt2n(t13tt1rt1+2(2tt+1)(t1)/2qt1=rt)3n.c_{t}(n)\geq\underbrace{\frac{t-1}{2^{t}-t-1}q_{t-1}}_{=q_{t}}2^{n}-\bigg{(}\underbrace{\frac{t-1}{\sqrt{3}^{t}-t-1}r_{t-1}+2\bigg{(}{2^{t}\over t+1}\bigg{)}^{(t-1)/2}q_{t-1}}_{=r_{t}}\bigg{)}\sqrt{3}^{n}.\qed
Lemma 8.

Given any ε>0\varepsilon>0, for all nn sufficiently large P(n,2)>(γε)2nP(n,2)>(\gamma-\varepsilon)2^{n}.

Proof.

Since γ=t1qt\gamma=\sum_{t\geq 1}q_{t} and qt>0q_{t}>0, there is some mm so that t=1mqt>γ12ε\sum_{t=1}^{m}q_{t}>\gamma-\frac{1}{2}\varepsilon. For this mm we can use Proposition 7 to get

P(n,2)=t1ct(n)t=1mct(n)(t=1mqt)2n(t=1mrt=A)3n>(γ12ε)2nA3n.P(n,2){=}\sum_{t\geq 1}c_{t}(n){\geq}\sum_{t=1}^{m}c_{t}(n)\geq\bigg{(}\sum_{t=1}^{m}q_{t}\bigg{)}2^{n}{-}\bigg{(}\underbrace{\sum_{t=1}^{m}r_{t}}_{=A}\bigg{)}\sqrt{3}^{n}{>}(\gamma-\frac{1}{2}\varepsilon)2^{n}-A\sqrt{3}^{n}.

Since 3<2\sqrt{3}<2 then for nn sufficiently large we have A3n12ε2nA\sqrt{3}^{n}\leq\frac{1}{2}\varepsilon 2^{n}. In particular for such large nn we have P(n,2)(γε)2nP(n,2)\geq(\gamma-\varepsilon)2^{n} establishing the result. ∎

Theorem 3 now follows immediately by combining Lemmas 6 and 8.

4 Lower bound for prime patterns with b2b\geq 2 balls

We can also consider the problem of counting prime juggling patterns for b3b\geq 3 balls. The natural thing is to again consider anchors, though it is unclear whether anchors should be one or more balls. Each grouping of anchors should have some variation of the partition statistics similar to what was presented here, but a key difficulty is finding how to connect the anchors together. In Table 3 we give some data for P(n,b)P(n,b).

P(n,b)b=3b=4b=5n=1111n=2345n=3111929n=43683157n=5127391901n=640516634822n=71409773927447n=8456133812149393n=915559153575836527n=10502946779014610088n=11169537307587925846123n=1255100113586581142296551\begin{array}[]{|l||r|r|r|}\hline\cr P(n,b)&b{=}3&b{=}4&b{=}5\\ \hline\cr\hline\cr n{=}\phantom{1}1&1&1&1\\ \hline\cr n{=}\phantom{1}2&3&4&5\\ \hline\cr n{=}\phantom{1}3&11&19&29\\ \hline\cr n{=}\phantom{1}4&36&83&157\\ \hline\cr n{=}\phantom{1}5&127&391&901\\ \hline\cr n{=}\phantom{1}6&405&1663&4822\\ \hline\cr n{=}\phantom{1}7&1409&7739&27447\\ \hline\cr n{=}\phantom{1}8&4561&33812&149393\\ \hline\cr n{=}\phantom{1}9&15559&153575&836527\\ \hline\cr n{=}10&50294&677901&4610088\\ \hline\cr n{=}11&169537&3075879&25846123\\ \hline\cr n{=}12&551001&13586581&142296551\\ \hline\cr\end{array}

Table 3: Some data for P(n,b)P(n,b).

For b=3,4,5b=3,4,5, the number of patterns appears to grow roughly as an exponential function in bb. We will establish a lower bound which supports this belief.

Proposition 9.

P(n,b)bn1P(n,b)\geq b^{n-1}.

We will use the card interpretation of juggling sequences to help establish this result. For a fixed bb there are b+1b+1 cards, denoted C0C_{0}, C1C_{1}, …, CbC_{b}, which have on the left and right of each card bb slots (corresponding to the balls). These slots are connected by tracks which either go straight across (i.e. C0C_{0}) or have the bottom track drop down and then reposition itself relative to the other tracks. In particular, the cards keep track of the relative order of the balls at any given time. The set of these cards for b=4b=4 is shown in Figure 2.

C0C_{0}
C1C_{1}
C2C_{2}
C3C_{3}
C4C_{4}
Figure 2: The set of juggling cards for b=4b=4.

All siteswap patterns of length nn with bb balls correspond bijectively with nn cards drawn with replacement from {C0,C1,,Cb}\{C_{0},C_{1},\ldots,C_{b}\} placed consecutively in some order with the card CbC_{b} used at least once (see [2, 6]). This can be seen by noting that placing the cards together gives a variant of the juggling diagram (i.e., the diagram that traces out the path of the balls over a time window of period nn) from which the juggling pattern can be recovered.

Proof of Proposition 9.

There are precisely bn1b^{n-1} ways to place nn cards consecutively where the first n1n-1 cards are drawn with replacement from {C0,C1,,Cb1}\{C_{0},C_{1},\ldots,C_{b-1}\} and the nn-th card is CbC_{b}. It suffices to show that these are prime (distinctness comes from the uniqueness of CbC_{b}).

To see that they are prime we note that the cards keep track of the ordering of the balls and because we only use CbC_{b} in the last card it must be the case that the ball which is scheduled to land last among the thrown balls remains in that ordering until the nn-th step. In terms of the states, this says that the last 11 shifts down by 11 at every step. In particular, the location of the last 11 will be different in all of the states, which forces the states to be distinct, i.e., a prime juggling pattern. ∎

5 Concluding remarks

We have looked at what happens when we fix b=2b=2 and let nn get large. Alternatively one could fix nn and let bb get large. This variation was considered by Ron Graham [5] who showed the following.

For b1b\geq 1, P(2,b)=b\displaystyle P(2,b)=b
For b1b\geq 1, P(3,b)=b2+b1\displaystyle P(3,b)=b^{2}+b-1
For b2b\geq 2, P(4,b)=b3+32b212b3\displaystyle P(4,b)=b^{3}+\frac{3}{2}b^{2}-\frac{1}{2}b-3
For b3b\geq 3, P(5,b)=b4+2b3+2b2+b29\displaystyle P(5,b)=b^{4}+2b^{3}+2b^{2}+b-29
For b4b\geq 4, P(6,b)=b5+52b4+103b34b21916b23\displaystyle P(6,b)=b^{5}+\frac{5}{2}b^{4}+\frac{10}{3}b^{3}-4b^{2}-\frac{191}{6}b-23

In particular we note that when nn is fixed and bb gets large that most juggling patterns are prime, while the b=2b=2 case and data in Table 3 indicates that when bb is fixed and nn gets large that most juggling patterns are not prime.


One common restraint for looking at the mathematics of juggling is to assume that we always throw a ball at each beat. In terms of siteswap sequences, this means all of the ti1t_{i}\geq 1. One common approach to this is to first carry out computations with allowing ti0t_{i}\geq 0 and have one less ball, and then increase each tit_{i} by 11 (i.e. adding 11 to every throw height increases the number of balls by 11). We can do this for prime juggling patterns because of the following.

Observation 10.

The siteswap sequence t1t2tnt_{1}t_{2}\ldots t_{n} is prime if and only if the siteswap sequence t1t2tnt_{1}^{\prime}t_{2}^{\prime}\ldots t_{n}^{\prime}, where ti=ti+1t_{i}^{\prime}=t_{i}+1, is prime.

This is a consequence of the following more general result.

Theorem 11.

The state graph with bb balls is isomorphic to the (induced) subgraph of the state graph with b+1b+1 balls consisting of vertices whose state starts with 11.

Proof.

The embedding works by sending a1,a2,\langle a_{1},a_{2},\ldots\rangle in the the state graph for bb balls to 1,a1,a2,\langle 1,a_{1},a_{2},\ldots\rangle in the state graph for b+1b+1 balls.

It remains to show a1,a2,cb1,b2,\langle a_{1},a_{2},\ldots\rangle\stackrel{{\scriptstyle c}}{{\longrightarrow}}\langle b_{1},b_{2},\ldots\rangle in the state graph for bb balls if and only if 1,a1,a2,c+11,b1,b2,\langle 1,a_{1},a_{2},\ldots\rangle\stackrel{{\scriptstyle c+1}}{{\longrightarrow}}\langle 1,b_{1},b_{2},\ldots\rangle. So suppose a1,a2,cb1,b2,\langle a_{1},a_{2},\ldots\rangle\stackrel{{\scriptstyle c}}{{\longrightarrow}}\langle b_{1},b_{2},\ldots\rangle in the state graph for bb balls. We now break into two cases depending on cc.

  • c=0c=0. In this case a1=0a_{1}=0 and bk=ak+1b_{k}=a_{k+1} for all kk. It follows that the edge in the state graph with bb balls is of the form

    0,a2,0a2,a3.\langle 0,a_{2},\ldots\rangle\stackrel{{\scriptstyle 0}}{{\longrightarrow}}\langle a_{2},a_{3}\ldots\rangle.

    While in the state graph for b+1b+1 balls the edge is of the form

    1,0,a2,11,a2,a3.\langle 1,0,a_{2},\ldots\rangle\stackrel{{\scriptstyle 1}}{{\longrightarrow}}\langle 1,a_{2},a_{3}\ldots\rangle.
  • c1c\geq 1. In this case a1=1a_{1}=1, ac+1=0a_{c+1}=0, bc=1b_{c}=1, and bk=ak+1b_{k}=a_{k+1} for all kck\neq c. It follows that the edge in the state graph with bb balls is of the form

    1,a2,,ac,ac+1=0,ac+2,ca2,,ac,bc=1,ac+2,.\langle 1,a_{2},\ldots,a_{c},a_{c+1}=0,a_{c+2},\ldots\rangle\stackrel{{\scriptstyle c}}{{\longrightarrow}}\langle a_{2},\ldots,a_{c},b_{c}=1,a_{c+2},\ldots\rangle.

    While in the state graph for b+1b+1 balls the edge is of the form

    1,1,a2,,ac,ac+1=0,ac+2,c+11,a2,,ac,bc=1,ac+2,.\langle 1,1,a_{2},\ldots,a_{c},a_{c+1}=0,a_{c+2},\ldots\rangle\stackrel{{\scriptstyle c+1}}{{\longrightarrow}}\langle 1,a_{2},\ldots,a_{c},b_{c}=1,a_{c+2},\ldots\rangle.\qed

Therefore, by Theorem 11, we have that the formula provided in Theorem 2 also counts the number of three-ball prime juggling patterns of period nn where a ball is thrown at each beat.


Acknowledgments.  The authors are grateful for many useful comments and discussions with Ron Graham on the mathematics of juggling. The research was conducted at the 2015 REU program held at Iowa State University which was supported by NSF DMS 1457443.

References

  • [1] Joe Buhler and Ron Graham, Juggling patterns, passing, and posets, Mathematical Adventures for Students and Amateurs, Mathematical Association of America, Washington, DC, 2004, 99–116.
  • [2] Steve Butler, Fan Chung, Jay Cummings and Ron Graham, Juggling card sequences, arXiv:1504.01426.
  • [3] Steve Butler and Ron Graham, Enumerating (multiplex) juggling sequences, Annals of Combinatorics 13 (2010), 413–424.
  • [4] Fan Chung and Ron Graham, Primitive juggling sequences, American Mathematical Monthly 115 (2008), 185–194.
  • [5] Ron Graham, personal communication.
  • [6] Burkhard Polster, The Mathematics of Juggling, Springer-Verlag, New York, 2000.