Identifier
Identifier
Values
[1] generating graphics... => 0
[2] generating graphics... => 1
[1,1] generating graphics... => 0
[3] generating graphics... => 2
[2,1] generating graphics... => 1
[1,1,1] generating graphics... => 0
[4] generating graphics... => 3
[3,1] generating graphics... => 2
[2,2] generating graphics... => 1
[2,1,1] generating graphics... => 1
[1,1,1,1] generating graphics... => 0
[5] generating graphics... => 4
[4,1] generating graphics... => 3
[3,2] generating graphics... => 2
[3,1,1] generating graphics... => 2
[2,2,1] generating graphics... => 1
[2,1,1,1] generating graphics... => 1
[1,1,1,1,1] generating graphics... => 0
[6] generating graphics... => 5
[5,1] generating graphics... => 4
[4,2] generating graphics... => 3
[4,1,1] generating graphics... => 3
[3,3] generating graphics... => 3
[3,2,1] generating graphics... => 2
[3,1,1,1] generating graphics... => 2
[2,2,2] generating graphics... => 1
[2,2,1,1] generating graphics... => 1
[2,1,1,1,1] generating graphics... => 1
[1,1,1,1,1,1] generating graphics... => 0
[7] generating graphics... => 6
[6,1] generating graphics... => 5
[5,2] generating graphics... => 4
[5,1,1] generating graphics... => 4
[4,3] generating graphics... => 4
[4,2,1] generating graphics... => 3
[4,1,1,1] generating graphics... => 3
[3,3,1] generating graphics... => 3
[3,2,2] generating graphics... => 2
[3,2,1,1] generating graphics... => 2
[3,1,1,1,1] generating graphics... => 2
[2,2,2,1] generating graphics... => 1
[2,2,1,1,1] generating graphics... => 1
[2,1,1,1,1,1] generating graphics... => 1
[1,1,1,1,1,1,1] generating graphics... => 0
[8] generating graphics... => 7
[7,1] generating graphics... => 6
[6,2] generating graphics... => 5
[6,1,1] generating graphics... => 5
[5,3] generating graphics... => 5
[5,2,1] generating graphics... => 4
[5,1,1,1] generating graphics... => 4
[4,4] generating graphics... => 5
[4,3,1] generating graphics... => 4
[4,2,2] generating graphics... => 3
[4,2,1,1] generating graphics... => 3
[4,1,1,1,1] generating graphics... => 3
[3,3,2] generating graphics... => 3
[3,3,1,1] generating graphics... => 3
[3,2,2,1] generating graphics... => 2
[3,2,1,1,1] generating graphics... => 2
[3,1,1,1,1,1] generating graphics... => 2
[2,2,2,2] generating graphics... => 1
[2,2,2,1,1] generating graphics... => 1
[2,2,1,1,1,1] generating graphics... => 1
[2,1,1,1,1,1,1] generating graphics... => 1
[1,1,1,1,1,1,1,1] generating graphics... => 0
[9] generating graphics... => 8
[8,1] generating graphics... => 7
[7,2] generating graphics... => 6
[7,1,1] generating graphics... => 6
[6,3] generating graphics... => 6
[6,2,1] generating graphics... => 5
[6,1,1,1] generating graphics... => 5
[5,4] generating graphics... => 6
[5,3,1] generating graphics... => 5
[5,2,2] generating graphics... => 4
[5,2,1,1] generating graphics... => 4
[5,1,1,1,1] generating graphics... => 4
[4,4,1] generating graphics... => 5
[4,3,2] generating graphics... => 4
[4,3,1,1] generating graphics... => 4
[4,2,2,1] generating graphics... => 3
[4,2,1,1,1] generating graphics... => 3
[4,1,1,1,1,1] generating graphics... => 3
[3,3,3] generating graphics... => 3
[3,3,2,1] generating graphics... => 3
[3,3,1,1,1] generating graphics... => 3
[3,2,2,2] generating graphics... => 2
[3,2,2,1,1] generating graphics... => 2
[3,2,1,1,1,1] generating graphics... => 2
[3,1,1,1,1,1,1] generating graphics... => 2
[2,2,2,2,1] generating graphics... => 1
[2,2,2,1,1,1] generating graphics... => 1
[2,2,1,1,1,1,1] generating graphics... => 1
[2,1,1,1,1,1,1,1] generating graphics... => 1
[1,1,1,1,1,1,1,1,1] generating graphics... => 0
[10] generating graphics... => 9
[9,1] generating graphics... => 8
[8,2] generating graphics... => 7
[8,1,1] generating graphics... => 7
[7,3] generating graphics... => 7
[7,2,1] generating graphics... => 6
[7,1,1,1] generating graphics... => 6
[6,4] generating graphics... => 7
[6,3,1] generating graphics... => 6
[6,2,2] generating graphics... => 5
[6,2,1,1] generating graphics... => 5
[6,1,1,1,1] generating graphics... => 5
[5,5] generating graphics... => 7
[5,4,1] generating graphics... => 6
[5,3,2] generating graphics... => 5
[5,3,1,1] generating graphics... => 5
[5,2,2,1] generating graphics... => 4
[5,2,1,1,1] generating graphics... => 4
[5,1,1,1,1,1] generating graphics... => 4
[4,4,2] generating graphics... => 5
[4,4,1,1] generating graphics... => 5
[4,3,3] generating graphics... => 4
[4,3,2,1] generating graphics... => 4
[4,3,1,1,1] generating graphics... => 4
[4,2,2,2] generating graphics... => 3
[4,2,2,1,1] generating graphics... => 3
[4,2,1,1,1,1] generating graphics... => 3
[4,1,1,1,1,1,1] generating graphics... => 3
[3,3,3,1] generating graphics... => 3
[3,3,2,2] generating graphics... => 3
[3,3,2,1,1] generating graphics... => 3
[3,3,1,1,1,1] generating graphics... => 3
[3,2,2,2,1] generating graphics... => 2
[3,2,2,1,1,1] generating graphics... => 2
[3,2,1,1,1,1,1] generating graphics... => 2
[3,1,1,1,1,1,1,1] generating graphics... => 2
[2,2,2,2,2] generating graphics... => 1
[2,2,2,2,1,1] generating graphics... => 1
[2,2,2,1,1,1,1] generating graphics... => 1
[2,2,1,1,1,1,1,1] generating graphics... => 1
[2,1,1,1,1,1,1,1,1] generating graphics... => 1
[1,1,1,1,1,1,1,1,1,1] generating graphics... => 0
click to show generating function       
Description
The spin of an integer partition.
The Ferrers shape of an integer partition $\lambda$ can be decomposed into border strips. The spin is then defined to be the total number of crossings of border strips of $\lambda$ with the vertical lines in the Ferrers shape.
The following example is taken from Appendix B in [1]: Let $\lambda = (5,5,4,4,2,1)$. Removing the border strips successively yields the sequence of partitions
$$(5,5,4,4,2,1), (4,3,3,1), (2,2), (1), ().$$
The first strip $(5,5,4,4,2,1) \setminus (4,3,3,1)$ crosses $4$ times, the second strip $(4,3,3,1) \setminus (2,2)$ crosses $3$ times, the strip $(2,2) \setminus (1)$ crosses $1$ time, and the remaining strip $(1) \setminus ()$ does not cross.
This yields the spin of $(5,5,4,4,2,1)$ to be $4+3+1 = 8$.
References
[1] , Loehr, N. A., Warrington, G. S. Nested quantum Dyck paths and $\nabla (s_\lambda )$ MathSciNet:2418288 arXiv:0705.4608
[2] Haglund, J. The $q$,$t$-Catalan numbers and the space of diagonal harmonics MathSciNet:2371044
Code
def remove_border_strip(L):
    return Partition( part-1 for part in L[1:] if part > 1 )

def border_strip_decomposition(L):
    decomp = []
    while len(L) > 0:
        decomp.append(L)
        L = remove_border_strip(L)
    return decomp

def border_strip_crossing_number(L):
    L = list(L)+[1]
    return sum( L[i-1]-L[i] for i in range(1,len(L)) )

def statistic(L):
    return sum( border_strip_crossing_number(X) for X in border_strip_decomposition(L) )
Created
Dec 08, 2015 at 17:15 by Christian Stump
Updated
Dec 17, 2015 at 11:19 by Christian Stump