OFFSET
0,5
REFERENCES
H. Eriksson, K. Ericcson and J. Sjostrand, Expected inversion number after k adjacent transpositions, in Formal Power Series and Algebraic Combinatorics, ed. D. Krob et al., Springer, 2000, pp. 677-685.
LINKS
N. Eriksen, Expected number of inversions after a sequence of random adjacent transpositions - an exact expression, Discr. Math., 298 (2005), 155-168.
FORMULA
See Maple code for formula (found by N. Eriksen).
MAPLE
A081616 := proc(n) local b, s, l; b := binomial; (1/2)*add( b(n-1, s-1)*(-1)^(s-1)*4^(n-s)*b(2*floor(s/2), floor(s/2))* add( l*b(2*ceil(s/2)-1, ceil(s/2)+l ), l=0..floor((s-1)/2) ), s=3..n); end;
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 23 2003
STATUS
approved