close
login
A289605
a(n) is the number of permutations of length n that avoid the pattern 321 and the mesh pattern (12, 341).
2
1, 1, 1, 3, 7, 28, 101, 365, 1301, 4604, 16281, 57758, 205959, 738798, 2666241, 9678453, 35324893, 129579244, 477507617, 1767001034, 6563596119, 24465218430, 91480466473, 343055419330, 1289895758699, 4861929624218, 18367319517701, 69533483807120, 263747817532611
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.
a(n) = 2*A289604(n) - A289603(n), for n > 4. (End)
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
Cf. A000108.
Related to mesh patterns: A280891, A289446-A289453, A289587-A289616, A289652-A289654.
Sequence in context: A197960 A197959 A197550 * A361360 A296533 A321719
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