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.

A100354 Maximal number of 1432 patterns in a permutation of 1,2,...,n.

Original entry on oeis.org

0, 0, 0, 1, 4, 10, 20, 40, 70, 112, 168, 252, 360, 495, 661, 881, 1145, 1457, 1824, 2279, 2804, 3404, 4090, 4906, 5824, 6850, 8000, 9330, 10800, 12417, 14208, 16232, 18440, 20840, 23470, 26395, 29554, 32956, 36652, 40712, 45062, 49712, 54728, 60184
Offset: 1

Views

Author

Vincent Vatter, Nov 18 2004

Keywords

Examples

			a(20) = 2279; the 20-permutation with the most copies of 1432 is 1, 5, 4, 3, 2, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6.
		

References

  • W. Stromquist, Packing layered posets into posets, manuscript.

Crossrefs

Formula

a(n) = max(a(k) + k*choose(n-k, 3), 1 <= k < n)