OFFSET
0,3
COMMENTS
A shallow permutation is a permutation that satisfies the lower bound of the Diaconis-Graham inequality (i.e., so that the total displacement is equal to the sum of the length and reflection length).
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..2151
Kassie Archer, Aaron Geary, and Robert P. Laudone, Pattern-avoiding shallow permutations, arXiV:2412.11999 [math.CO], 2024
Index entries for linear recurrences with constant coefficients, signature (4,-4,2,1,1).
FORMULA
G.f: (1-3*x+2*x^2-x^3-x^4-x^5)/(1-4*x+4*x^2-2*x^3-x^4-x^5).
MATHEMATICA
CoefficientList[Series[(1 - 3*x + 2*x^2 - x^3 - x^4 - x^5)/(1 - 4*x + 4*x^2 - 2*x^3 -x^4 - x^5), {x, 0, 29}], x] (* Michael De Vlieger, Apr 01 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kassie Archer, Mar 31 2025
STATUS
approved
