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.

Showing 1-3 of 3 results.

A130477 T(n,k) is the number of permutations of [n] with maximum descent k, T(n,k) for n >= 0 and 0 <= k <= n, triangle read by rows.

Original entry on oeis.org

1, 1, 1, 1, 2, 3, 1, 3, 8, 12, 1, 4, 15, 40, 60, 1, 5, 24, 90, 240, 360, 1, 6, 35, 168, 630, 1680, 2520, 1, 7, 48, 280, 1344, 5040, 13440, 20160, 1, 8, 63, 432, 2520, 12096, 45360, 120960, 181440, 1, 9, 80, 630, 4320, 25200, 120960, 453600, 1209600, 1814400, 1, 10, 99, 880, 6930, 47520, 277200, 1330560, 4989600, 13305600, 19958400
Offset: 0

Views

Author

Gary W. Adamson, May 28 2007

Keywords

Comments

Previous name was: Triangle generated from finite differences of A130461.
Decomposition of the permutations.
From Liam Solus, Aug 23 2018: (Start)
For k>0, T(n,k) equals the number of permutations p of [n] such that the largest index i for which p(i)>p(i+1) is k; i.e., T(n,k) is the number of permutations of [n] with maximum descent being k. See Lemma 3.4 of the paper by L. Solus below.
When T(n,k) is taken as the weight of coordinate x_k for k = 0,...,n-1 in an (n-1)-dimensional weighted projective space, the result is the toric variety defined by an n-dimensional simplex whose Ehrhart h^*-polynomial is the n-th Eulerian polynomial. See Theorem 3.5 of the paper by L. Solus below.
(End)

Examples

			First few rows of the triangle A130461 = (1; 1, 1; 1, 1, 1; 1, 1, 2, 1; 1, 1, 2, 3, 1; 1, 1, 2, 6, 4, 1;...). Deleting the left border and taking finite differences at the top of each remaining column, we get the first few rows of this triangle:
1;
1, 1;
1, 2,  3;
1, 3,  8,  12;
1, 4, 15,  40,  60;
1, 5, 24,  90, 240,  360;
1, 6, 35, 168, 630, 1680, 2520;
...
		

Crossrefs

The triangle with each row reversed is A092582.
Cf. A000142 (row sums), A001710 (main diagonal), A008292.

Programs

  • Maple
    T := (n,k) -> (n-k+1+0^k)*((n+1)!/(n-k+2)!):
    seq(seq(T(n,k),k=0..n),n=0..10); # Peter Luschny, Sep 17 2018
  • Mathematica
    Flatten[Table[Table[(n - k + 1 + 0^k)*(n + 1)!/(n - k + 2)!, {k,0,n}], {n, 0, 10}], 1] (* Olivier Gérard, Aug 04 2012 *)
  • PARI
    {T(n, k) = if( n<1 || k>n, 0, k==1, 1, n! * (n+1-k) / (n+2-k)!)}; /* Michael Somos, Jun 25 2017 */

Formula

Each term in n-th row divides n!.
Given triangle A130461 and deleting the left border (1,1,1,...) take finite differences by columns and reorient into rows.
T(n,k) = (n-k+1+0^k)*((n+1)!/(n-k+2)!) - Olivier Gérard, Aug 04 2012

Extensions

New name using a comment by Liam Solus, Peter Luschny, Sep 17 2018

A130460 Infinite lower triangular matrix,(1,0,0,0,...) in the main diagonal and (1,2,3,...) in the subdiagonal.

Original entry on oeis.org

1, 1, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0
Offset: 1

Views

Author

Gary W. Adamson, May 28 2007

Keywords

Comments

Given M = this sequence as an infinite lower triangular matrix and V = any sequence as a column vector, then M*V is the concatenation of the first term of V with the dot product of (1, 2, 3, ...) and V.

Examples

			First few rows of the triangle:
  1;
  1, 0;
  0, 2, 0;
  0, 0, 3, 0;
  0, 0, 0, 4, 0;
  0, 0, 0, 0, 5, 0;
  ...
		

Crossrefs

Formula

A natural number operator as an infinite lower triangular matrix M. (1,0,0,0,...) in the main diagonal, (1,2,3,...) in the subdiagonal and the rest zeros.

Extensions

a(5) corrected by Gionata Neri, Jun 22 2016

A130461 Triangle, antidiagonals of an array generated from A130460.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 1, 2, 6, 4, 1, 1, 1, 2, 6, 12, 5, 1, 1, 1, 2, 6, 24, 20, 6, 1, 1, 1, 2, 6, 24, 60, 30, 7, 1, 1, 1, 2, 6, 24, 120, 120, 42, 8, 1, 1, 1, 2, 6, 24, 120, 360, 210, 56, 9, 1, 1, 1, 2, 6, 24, 120, 720, 840, 336, 72, 10, 1, 1, 1, 2, 6, 24, 120, 720, 2520
Offset: 0

Views

Author

Gary W. Adamson, May 28 2007

Keywords

Comments

Rows tend to the factorials: (1, 1, 2, 6, 24, ...). Row sums = A130476: (1, 2, 3, 5, 8, 15, 28, 61, 132, ...).

Examples

			The array =
  1, 1, 1, 1,  1,   1, ...
  1, 1, 2, 3,  4,   5, ...
  1, 1, 2, 6, 12,  20, ...
  1, 1, 2, 6, 24,  60, ...
  1, 1, 2, 6, 24, 120, ...
  1, 1, 2, 6, 24, 120, ...
  ...
First few rows of the triangle:
  1;
  1, 1;
  1, 1, 1;
  1, 1, 2, 1;
  1, 1, 2, 3,  1;
  1, 1, 2, 6,  4,  1;
  1, 1, 2, 6, 12,  5,  1;
  1, 1, 2, 6, 24, 20,  6, 1;
  1, 1, 2, 6, 24, 60, 30, 7, 1;
  ...
		

Crossrefs

Formula

Let A130460 = M, an infinite lower triangular matrix and V = [1, 1, 1, ...], the first row of an array. Perform M * V = second row, ...; (n+1)-th row = M * n-th row. The triangle = antidiagonals of the array.

Extensions

a(23) and a(38) corrected by Gionata Neri, Jun 22 2016
Showing 1-3 of 3 results.