cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A342646 Maximal number of 4213 patterns in a permutation of 1,2,...,n.

Original entry on oeis.org

0, 0, 0, 0, 1, 3, 6, 13, 24, 40, 62, 96, 138, 192, 264, 354
Offset: 0

Views

Author

Peter Kagey, Mar 20 2021

Keywords

Comments

Equivalently the maximal number of 1342, 2431, and 3124 patterns.

Examples

			For n = 7, a(7) = 13 because the permutation 7532146 has 13 instances of the pattern 4213, namely: 7536, 7526, 7516, 7546, 7324, 7326, 7314, 7316, 7214, 7216, 5324, 5314, and 5214.
Moreover, all other permutations in S_7 have 13 or fewer instances of this pattern.
		

Crossrefs

Analogous for other patterns: A000292 (123), A000332 (1234), A061061 (132), A100354 (1432).

Extensions

a(10)-a(12) from Rob Pratt
a(13)-a(15) from Bert Dobbelaere, Mar 26 2021