OFFSET
0,4
LINKS
Christian Sievers, RFE Dec 2025: Mesh patterns avoiding 321, SeqFan thread.
Murray Tannock, Equivalence classes of mesh patterns with a dominating pattern, MSc Thesis, Reykjavik Univ., May 2016. See Appendix B2.
FORMULA
From Thomas Scheuerle, Dec 18 2025: (Start)
G.f.: -(8*x^8 - 12*x^7 + 12*x^6 - 8*x^5 + 4*x^4 - 4*x^3 + 5*x^2 - 4*x + sqrt(1 - 4*x)*(x - 1)^2*(2*x - 1) + 1)/(2*(x - 1)^2*x*(2*x - 1)).
a(n) = C(n) - 2^(n-1) - n + 7, for n > 4, where C(n) is the Catalan number A000108.
PROG
(PARI) listA(max_n) = my(x='x+O(x^max_n)); Vec(-(8*x^8-12*x^7+12*x^6-8*x^5+4*x^4-4*x^3+5*x^2-4*x+sqrt(1-4*x)*(x-1)^2*(2*x-1)+1)/(2*(x-1)^2*x*(2*x-1))) \\ Thomas Scheuerle, Dec 18 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 08 2017
EXTENSIONS
More terms, name and offset changed by Thomas Scheuerle, Dec 18 2025
STATUS
approved
