close
login
A289608
a(n) is the number of permutations of length n that avoid the pattern 321 and the mesh pattern (12, 313) or the same sequence for the mesh pattern (12, 403).
2
1, 1, 1, 1, 8, 28, 108, 387, 1354, 4720, 16524, 58256, 206968, 740830, 2670320, 9686627, 35341258, 129611992, 477573132, 1767132084, 6563858240, 24465742694, 91481515024, 343057516456, 1289899952976, 4861938012798, 18367336294888, 69533517361522, 263747884641444
OFFSET
0,5
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.: -(-16*x^8 + 40*x^7 - 32*x^6 + 20*x^5 - 8*x^3 + 10*x^2 - 8*x + 2*sqrt(1 - 4*x)*(x - 1)^2*(2*x - 1) + 2)/(4*(x - 1)^2*x*(2*x - 1)).
a(n) = C(n) - 2^(n-2) - 2*n + 4, for n > 4, where C(n) is the Catalan number A000108.
a(n) = A289609(n) - 1, for n > 4. (End)
PROG
(PARI) listA(max_n) = my(x='x+O(x^max_n)); Vec(-(-16*x^8+40*x^7-32*x^6+20*x^5-8*x^3+10*x^2-8*x+2*sqrt(1-4*x)*(x-1)^2*(2*x-1)+2)/(4*(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: A316879 A220710 A260935 * A317607 A306545 A358285
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 09 2017
EXTENSIONS
More terms, name and offset changed by Thomas Scheuerle, Dec 18 2025
STATUS
approved