Given a siteswap of length L with n objects, what is the maximum possible theoretical global period length?

Prerequisites:

A siteswap of length L is defined here by s= [si] i=0:L1 . A description of siteswap notation can be found here, chapter 2 (Introduction to Siteswap Notation).

The global period length is the number of siteswap beats required to return to the exact same start configuration (same state and the same labels on the same beats).

Beat permutation and orbits.

A vanilla siteswap (asynchronous, one throw per beat) is valid iff the map

π: {0,,L1} {0,,L1}, π(i) i+si (modL).

is a permutation. Its disjoint cycles are the orbits. For convenience, we will list orbits using absolute beat indices (e.g. [0,5] for L=3), not just residues modulo L. As per siteswap convention, whenever an index i lies outside [0,L−1], we interpret si as simodL.

Let  C0, C1, , Cn1 denote the orbits followed by balls  0,,n1 respectively. Define

SCj = iCj si, tj := SCj L .

Since  π(i)i+si(modL), we have  siπ(i)i(modL). Noting also that  iCj (π(i)i) 0(modL) (an orbit concludes when the orbit returns to the same starting position relative to the siteswap length), summing over iCj we obtain:

SCj iCj (π(i)i) 0(modL),

thus  tj1 . Here tj is the number of siteswap lengths (periods) accumulated along the throws on the jth orbit; equivalently, it is the number of periods needed for ball j to return to its starting beat.

Thus, in terms of  t=[tj] j=0:n1 , the global period is

SL = L· lcm ( t0,,tn1 ).

Example ( L=3, s=[5,3,1] ).

We have

π(0)2, π(1)1, π(2)0 (mod3).

The orbits are:  C0 = [0,5] C1 = [1] C2 = [2,3].

Therefore:

SC0 =s0+s5 =5+s2 =5+1=6, SC1 =s1=3, SC2 =s2+s3 =1+s0 =1+5=6.
t0=63=2, t1=33=1, t2=63=2.

In the example,  SL=3· lcm(2,1,2)=6 beats.

Cyclic equivalence (notation).

Two orbits  Cp and  Cq are cyclically equivalent if Cp L Cq .

i.e. their index lists agree modulo L up to cyclic rotation. For vectors u, v in k we write u L v if u and v are congruent mod L after a cyclic rotation of entries. In the example, [0,5] 3 [0,2] 3 [2,3] all represent the same orbit as {0,2}.

Let  Φ select one representative from each cyclic-equivalence class:

Φ = { j  such that  Cj L Ck  for all k>j }.

Define the non-equivalent orbits and sizes by

P = ( P0, , PM1 ) := ( Cj ) jΦ , T = ( T0, , TM1 ) := ( tj ) jΦ.

Then, as before,

SPm = iPm si = Tm·L.

Summing over the M representatives and using i=0 L1 si=nL ,

m=0 M1 SPm = m=0 M1 iPm si = L· m=0 M1 Tm = nL,

so  m=0 M1 Tm=n . (Each Tm is the number of objects carried on that orbit class; balls whose Cj fall in the same equivalence class share the same tj=Tm.)

Maximization problem.

Thus, the problem reduces to:

SLmax = L· maxT { lcm(T) },

with the constraint  m Tm=n . Equivalently, since duplicating equal parts does not change the least common multiple, one may write the objective as lcm(t); the natural sum constraint, however, lives on T via m Tm=n .

Relation to Landau's function and feasibility.

The maximum of lcm(T0,,TM1) over all partitions of n is Landau's function g(n), so

SLmax L·g(n).

with equality whenever a Landau-optimal partition is realisable with L beats. A convenient feasibility model is the standard beat budget: an orbit of size 1 can occupy a single beat (throw L), while an orbit of size >1 can be realized on a 2-beat swap; therefore a partition (T0,,TM1) is feasible if

#{ m: Tm=1 } + 2· #{ m: Tm>1 } L.

Under this budget,  SLmax =L·g(n) whenever a Landau-optimal partition fits the inequality above.

This table presents the pairs (n,L) for which the maximum SL,max can be obtained according to the budget inequality. Shaded cells indicate the feasible cases.

n/L 1 2 3 4 5 6 7 8 9 10
1
2
3
4
5
6
7
8
9
10

Here are some examples for Landau-optimal siteswaps for given n and L pairs:

n L Landau-optimal partition g(n) Siteswap (period  L) Return beats = Lg(n)
1 1 1 1 1 1
2 2 2 2 31 4
3 2 3 3 33 6
4 3 4 4 480 12
5 5 3+2 6 77830 30
6 3 6 6 7b0 18
7 5 4+3 12 c7880 60
8 4 5+3 15 a6a6 60
9 5 5+4 20 c7dd0 100
10 6 5+3+2 30 f99f93 180