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.

A319030 Triangle read by rows: T(n,k) is the number of permutations pi of [n] such that pi has k+1 valleys and s(pi) avoids the patterns 132 and 321, where s is West's stack-sorting map (0 <= k <= floor((n-1)/2)).

Original entry on oeis.org

1, 2, 4, 2, 8, 14, 16, 64, 8, 32, 240, 92, 64, 800, 624, 34, 128, 2464, 3248, 534, 256, 7168, 14336, 4736, 144, 512, 19968, 56448, 31200, 2852, 1024, 53760, 204288, 169920, 31120, 604, 2048, 140800, 692736, 808896, 247280, 14412
Offset: 1

Views

Author

Colin Defant, Sep 10 2018

Keywords

Comments

Row sums give A319028.

Examples

			Triangle begins:
    1,
    2,
    4,    2,
    8,   14,
   16,   64,    8,
   32,  240,   92,
   64,  800,  624,  34,
  128, 2464, 3248, 534,
  ...
		

Crossrefs

Programs

  • Mathematica
    DeleteCases[Flatten[CoefficientList[Series[(1 - 2 x - Sqrt[(1 - 2 x)^2 - 4 x^2 y])/(2 x*y) + x^3*y (D[(1 - 2 x - Sqrt[(1 - 2 x)^2 - 4 x^2 y])/(2 x*y), x])^2, {x, 0, 10}], {x, y}]], 0]

Formula

G.f.: G(x,y) + x^3*y*((d/dx)G(x,y))^2, where G(x,y) = (1 - 2x - sqrt((1-2x)^2 - 4x^2*y))/(2x*y) is the generating function of A091894.