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.

Previous Showing 21-30 of 51 results. Next

A144827 Partial products of successive terms of A017029; a(0)=1.

Original entry on oeis.org

1, 4, 44, 792, 19800, 633600, 24710400, 1136678400, 60243955200, 3614637312000, 242180699904000, 17921371792896000, 1451631115224576000, 127743538139762688000, 12135636123277455360000, 1237834884574300446720000, 134924002418598748692480000, 15651184280557454848327680000
Offset: 0

Views

Author

Philippe Deléham, Sep 21 2008

Keywords

Examples

			a(0)=1, a(1)=4, a(2)=4*11=44, a(3)=4*11*18=792, a(4)=4*11*18*25=19800, ...
		

Crossrefs

Programs

  • Magma
    [ 1 ] cat [ &*[ (7*k+4): k in [0..n] ]: n in [0..14] ]; // Klaus Brockhaus, Nov 10 2008
    
  • Mathematica
    FoldList[Times,1,Range[4,150,7]] (* Harvey P. Dale, Apr 25 2014 *)
  • SageMath
    [1]+[4*7^(n-1)*rising_factorial(11/7, n-1) for n in (1..30)] # G. C. Greubel, Feb 22 2022

Formula

a(n) = Sum_{k=0..n} A132393(n,k)*4^k*7^(n-k).
G.f.: 1/(1-4*x/(1-7*x/(1-11*x/(1-14*x/(1-18*x/(1-21*x/(1-25*x/(1-... (continued fraction). - Philippe Deléham, Jan 08 2012
a(n) = (-3)^n*Sum_{k=0..n} (7/3)^k*s(n+1,n+1-k), where s(n,k) are the Stirling numbers of the first kind, A048994. - Mircea Merca, May 03 2012
From Ilya Gutkovskiy, Mar 23 2017: (Start)
E.g.f.: 1/(1 - 7*x)^(4/7).
a(n) ~ sqrt(2*Pi)*7^n*n^(n+1/14)/(exp(n)*Gamma(4/7)). (End)
a(n) = 4*7^(n-1)*Pochhammer(n-1, 11/7) with a(0) = 1. - G. C. Greubel, Feb 22 2022
Sum_{n>=0} 1/a(n) = 1 + (e/7^3)^(1/7)*(Gamma(4/7) - Gamma(4/7, 1/7)). - Amiram Eldar, Dec 19 2022

Extensions

Corrected a(9) by Vincenzo Librandi, Jul 14 2011

A049352 A triangle of numbers related to triangle A030524.

Original entry on oeis.org

1, 4, 1, 20, 12, 1, 120, 128, 24, 1, 840, 1400, 440, 40, 1, 6720, 16240, 7560, 1120, 60, 1, 60480, 201600, 129640, 27720, 2380, 84, 1, 604800, 2681280, 2275840, 656320, 80080, 4480, 112, 1, 6652800, 38142720, 41370560, 15402240, 2498160, 196560
Offset: 1

Views

Author

Keywords

Comments

a(n,1) = A001715(n+2). a(n,m)=: S1p(4; n,m), a member of a sequence of lower triangular Jabotinsky matrices with nonnegative entries including S1p(1; n,m)= A008275 (unsigned Stirling first kind), S1p(2; n,m)= A008297(n,m) (unsigned Lah numbers), S1p(3; n,m)= A046089(n,m).
The signed lower triangular matrix (-1)^(n-m)*a(n,m) is inverse to matrix A035469(n,m) := S2(4; n,m). The monic row polynomials E(n,x) := sum(a(n,m)*x^m,m=1..n), E(0,x) := 1 are exponential convolution polynomials (see A039692 for the definition and a Knuth reference).
a(n,m) enumerates unordered increasing n-vertex m-forests composed of m unary trees (out-degree r from {0,1}) whose vertices of depth (distance from the root) j>=1 come in j+3 colors. The k roots (j=0) each come in one (or no) color. - Wolfdieter Lang, Oct 12 2007
Also the Bell transform of A001715. For the definition of the Bell transform see A264428. - Peter Luschny, Jan 28 2016

Examples

			Triangle starts:
{1};
{4,1};
{20,12,1};
{120,128,24,1};
{840,1400,440,40,1};
...
E.g. Row polynomial E(3,x)= 20*x + 12*x^2 + x^3.
a(4,2)=128=4*(4*5)+3*(4*4) from the two types of unordered 2-forests of unary increasing trees associated with the two m=2 parts partitions (1,3) and (2^2) of n=4. The first type has 4 increasing labelings, each coming in (1)*(1*4*5)=20 colored versions, e.g. ((1c1),(2c1,3c4,4c3)) with lcp for vertex label l and color p. Here the vertex labeled 3 has depth j=1, hence 4 colors, c1..c4, can be chosen and the vertex labeled 4 with j=2 can come in 5 colors, e.g. c1..c5. Therefore there are 4*((1)*(1*4*5))=80 forests of this (1,3) type. Similarly the (2,2) type yields 3*((1*4)*(1*4))=48 such forests, e.g. ((1c1,3c2)(2c1,4c4)) or ((1c1,3c3)(2c1,4c2)), etc. - _Wolfdieter Lang_, Oct 12 2007
		

Crossrefs

Cf. A049377 (row sums).
Alternating row sums A134137.

Programs

  • Maple
    # The function BellMatrix is defined in A264428.
    # Adds (1,0,0,0, ..) as column 0.
    BellMatrix(n -> (n+3)!/6, 10); # Peter Luschny, Jan 28 2016
  • Mathematica
    a[n_, k_] := (n!* Sum[(-1)^(k-j)*Binomial[k, j]*Binomial[n+3*j-1, 3*j-1], {j, 1, k}])/(3^k*k!); Table[a[n, k], {n, 1, 9}, {k, 1, n}] // Flatten (* Jean-François Alcover, Feb 26 2013, after Vladimir Kruchinin *)
    BellMatrix[f_Function, len_] := With[{t = Array[f, len, 0]}, Table[BellY[n, k, t], {n, 0, len-1}, {k, 0, len-1}]];
    rows = 10;
    M = BellMatrix[(# + 3)!/6&, rows];
    Table[M[[n, k]], {n, 2, rows}, {k, 2, n}] // Flatten (* Jean-François Alcover, Jun 23 2018, after Peter Luschny *)
  • Maxima
    a(n,k):=(n!*sum((-1)^(k-j)*binomial(k,j)*binomial(n+3*j-1,3*j-1),j,1,k))/(3^k*k!); /* Vladimir Kruchinin, Apr 01 2011 */

Formula

a(n, m) = n!*A030524(n, m)/(m!*3^(n-m)); a(n, m) = (3*m+n-1)*a(n-1, m) + a(n-1, m-1), n >= m >= 1; a(n, m)=0, n
a(n,k) = (n!*sum(j=1..k, (-1)^(k-j)*binomial(k,j)*binomial(n+3*j-1,3*j-1)))/(3^k*k!). [Vladimir Kruchinin, Apr 01 2011]

A049458 Generalized Stirling number triangle of first kind.

Original entry on oeis.org

1, -3, 1, 12, -7, 1, -60, 47, -12, 1, 360, -342, 119, -18, 1, -2520, 2754, -1175, 245, -25, 1, 20160, -24552, 12154, -3135, 445, -33, 1, -181440, 241128, -133938, 40369, -7140, 742, -42, 1, 1814400, -2592720, 1580508, -537628
Offset: 0

Keywords

Comments

a(n,m)= ^3P_n^m in the notation of the given reference with a(0,0) := 1. The monic row polynomials s(n,x) := sum(a(n,m)*x^m,m=0..n) which are s(n,x)= product(x-(3+k),k=0..n-1), n >= 1 and s(0,x)=1 satisfy s(n,x+y) = sum(binomial(n,k)*s(k,x)*S1(n-k,y),k=0..n), with the Stirling1 polynomials S1(n,x)=sum(A008275(n,m)*x^m, m=1..n) and S1(0,x)=1.
In the umbral calculus (see the S. Roman reference given in A048854) the s(n,x) polynomials are called Sheffer polynomials for (exp(3*t),exp(t)-1).
See A143492 for the unsigned version of this array and A143495 for the inverse. - Peter Bala, Aug 25 2008

Examples

			1;
-3, 1;
12, -7, 1;
-60, 47, -12, 1;
360, -342, 119, -18, 1;
s(2,x) = 12-7*x+x^2. S1(2,x) = -x+x^2 (Stirling1 polynomial).
		

References

  • Mitrinovic, D. S.; Mitrinovic, R. S.; Tableaux d'une classe de nombres relies aux nombres de Stirling. Univ. Beograd. Pubi. Elektrotehn. Fak. Ser. Mat. Fiz. No. 77 1962, 77 pp.

Crossrefs

Unsigned column sequences are: A001710-A001714. Row sums (signed triangle): (n+1)!*(-1)^n. Row sums (unsigned triangle): A001715(n+3).
A143492, A143495. - Peter Bala, Aug 25 2008

Programs

  • Haskell
    a049458 n k = a049458_tabl !! n !! k
    a049458_row n = a049458_tabl !! n
    a049458_tabl = map fst $ iterate (\(row, i) ->
       (zipWith (-) ([0] ++ row) $ map (* i) (row ++ [0]), i + 1)) ([1], 3)
    -- Reinhard Zumkeller, Mar 11 2014
  • Maple
    A049458_row := n -> seq((-1)^(n-k)*coeff(expand(pochhammer(x+3, n)), x, k), k=0..n): seq(print(A049458_row(n)),n=0..8); # Peter Luschny, May 16 2013
  • Mathematica
    t[n_, k_] := (-1)^(n - k)*Coefficient[ Pochhammer[x + 3, n], x, k]; Table[t[n, k], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 17 2013, after Peter Luschny *)

Formula

a(n, m)= a(n-1, m-1) - (n+2)*a(n-1, m), n >= m >= 0; a(n, m) := 0, n
Triangle (signed) = [ -3, -1, -4, -2, -5, -3, -6, -4, -7, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, ...]; triangle (unsigned) = [3, 1, 4, 2, 5, 3, 6, 4, 7, 5, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, ...]; where DELTA is Deléham's operator defined in A084938 (unsigned version in A143492).
E.g.f.: (1+y)^(x-3). - Vladeta Jovovic, May 17 2004
If we define f(n,i,a)=sum(binomial(n,k)*stirling1(n-k,i)*product(-a-j,j=0..k-1),k=0..n-i), then T(n,i) = f(n,i,3), for n=1,2,...;i=0...n. - Milan Janjic, Dec 21 2008

Extensions

Second formula corrected by Philippe Deléham, Nov 09 2008

A094645 Triangle of generalized Stirling numbers of the first kind.

Original entry on oeis.org

1, -1, 1, 0, -1, 1, 0, -1, 0, 1, 0, -2, -1, 2, 1, 0, -6, -5, 5, 5, 1, 0, -24, -26, 15, 25, 9, 1, 0, -120, -154, 49, 140, 70, 14, 1, 0, -720, -1044, 140, 889, 560, 154, 20, 1, 0, -5040, -8028, -64, 6363, 4809, 1638, 294, 27, 1, 0, -40320, -69264, -8540, 50840, 44835, 17913, 3990, 510, 35, 1
Offset: 0

Author

Vladeta Jovovic, May 17 2004

Keywords

Comments

From Wolfdieter Lang, Jun 20 2011: (Start)
The row polynomials s(n,x) := Sum_{j=0..n} T(n,k)*x^k satisfy risefac(x-1,n) = s(n,x), with the rising factorials risefac(x-1,n) := Product_{j=0..n-1} (x-1+j), n >= 1, risefac(x-1,0) = 1. Compare with the formula risefac(x,n) = s1(n,x), with the row polynomials s1(n,x) of A132393 (unsigned Stirling1).
This is the lower triangular Sheffer array with e.g.f.
T(x,z) = (1-z)*exp(-x*log(1-z)) (the rewritten e.g.f. from the formula section). See the W. Lang link under A006232 for Sheffer matrices and the Roman reference. In the notation which indicates the column e.g.f.s this is Sheffer (1-z,-log(1-z)). In the umbral notation (cf. Roman) this is called Sheffer for (exp(t),1-exp(-t)).
The row polynomials satisfy s(n,x) = (x+n-1)*s(n-1,x), s(0,x)=1, and s(n,x) = (x-1)*s1(n-1,x), n >= 1, s1(0,x) = 1, with the unsigned Stirling1 row polynomials s1(n,x).
The row polynomials also satisfy
s(n,x) - s(n,x-1) = n*s(n-1,x), n > 1, s(0,x) = 1
(from the Meixner identity, see the Meixner reference given at A060338).
The row polynomials satisfy as well (from corollary 3.7.2. p. 50 of the Roman reference)
s(n,x) = (x-1)*s(n-1,x+1), n >= 1, s(0,n) = 1.
The exponential convolution identity is
s(n,x+y) = Sum_{k=0..n} binomial(n,k)*s(k,y)*s1(n-k,x),
n >= 0, with symmetry x <-> y.
The row sums are 1 for n=0 and 0 otherwise, and the alternating row sums are 1,-2,2, followed by zeros, with e.g.f. (1-x)^2.
The Sheffer a-sequence Sha(n) = A164555(n)/A027642(n) with e.g.f. x/(1-exp(-x)), and the z-sequence is Shz(n) = -1 with e.g.f. -exp(x).
The inverse Sheffer matrix is ((-1)^(n-k))*A105794(n,k) with e.g.f. exp(z)*exp(x*(1-exp(-z))). (End)
Triangle T(n,k), read by rows, given by (-1, 1, 0, 2, 1, 3, 2, 4, 3, 5, ...) DELTA (1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...) where DELTA is the operator defined in A084938. - Philippe Deléham, Jan 16 2012
Also coefficients of t in t*(t-1)*Sum[(-1)^(n+m) t^(m-1) StirlingS1[n,m], {m,n}] in which setting t^k equal to k gives n!, from this follows that the dot product of row n with [0,...,n] equals (n-1)!. - Wouter Meeussen, May 15 2012

Examples

			Triangle begins
   1;
  -1,   1;
   0,  -1,   1;
   0,  -1,   0,   1;
   0,  -2,  -1,   2,   1;
   0,  -6,  -5,   5,   5,   1;
   0, -24, -26,  15,  25,   9,   1;
   ...
Recurrence:
  -2 = T(4,1) = T(3,0) + (4-2)*T(3,1) = 0 + 2*(-1).
Row polynomials:
  s(3,x) = -x+x^3 = (x-1)*s1(2,x) = (x-1)*(x+x^2).
  s(3,x) = (x-1)*s(2,x+1) = (x-1)*(-(x+1)+(x+1)^2).
  s(3,x) - s(3,x-1) = -x+x^3 -(-(x-1)+(x-1)^3) = 3*(-x+x^2) = 3*s(2,x).
		

References

  • S. Roman, The Umbral Calculus, Academic Press, New York, 1984.

Crossrefs

Programs

Formula

E.g.f.: (1-y)^(1-x).
Sum_{k=0..n} T(n,k)*x^k = A000007(n), A000142(n), A000142(n+1), A001710(n+2), A001715(n+3), A001720(n+4), A001725(n+5), A001730(n+6), A049388(n), A049389(n), A049398(n), A051431(n) for x = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 respectively. - Philippe Deléham, Nov 13 2007
If we define f(n,i,a) = Sum_{k=0..n-i} binomial(n,k)*Stirling1(n-k,i)*Product_{j=0..k-1} (-a-j), then |T(n,i)| = |f(n,i,-1)|, for n=1,2,...; i=0..n. - Milan Janjic, Dec 21 2008
From Wolfdieter Lang, Jun 20 2011: (Start)
T(n,k) = |S1(n-1,k-1)| - |S1(n-1,k)|, n >= 1, k >= 1, with |S1(n,k)| = A132393(n,k) (unsigned Stirling1).
Recurrence: T(n,k) = T(n-1,k-1) + (n-2)*T(n-1,k) if n >= k >= 0; T(n,k) = 0 if n < k; T(n,-1) = 0; T(0,0) = 1.
E.g.f. column k: (1-x)*((-log(1-x))^k)/k!. (End)
T(n,k) = Sum_{i=0..n} binomial(n,i)*(n-i)!*Stirling1(i,k)*TC(m,n,i) where TC(m,n,k) = Sum_{i=0..n-k} binomial(n+1,n-k-i)*Stirling2(i+m+1,i+1)*(-1)^i, m = 1 for n >= 0. See A130534, A370518 for m=0 and m=2. - Igor Victorovich Statsenko, Feb 27 2024

A157384 A partition product of Stirling_1 type [parameter k = -4] with biggest-part statistic (triangle read by rows).

Original entry on oeis.org

1, 1, 4, 1, 12, 20, 1, 72, 80, 120, 1, 280, 1000, 600, 840, 1, 1740, 9200, 9000, 5040, 6720, 1, 8484, 79100, 138600, 88200, 47040, 60480, 1, 57232, 874720, 1789200, 1552320, 940800, 483840, 604800, 1, 328752, 9532880
Offset: 1

Author

Peter Luschny, Mar 07 2009, Mar 14 2009

Keywords

Comments

Partition product of prod_{j=0..n-2}(k-n+j+2) and n! at k = -4,
summed over parts with equal biggest part (see the Luschny link).
Underlying partition triangle is A144354.
Same partition product with length statistic is A049352.
Diagonal a(A000217(n)) = rising_factorial(4,n-1), A001715(n+2).
Row sum is A049377.

Formula

T(n,0) = [n = 0] (Iverson notation) and for n > 0 and 1 <= m <= n
T(n,m) = Sum_{a} M(a)|f^a| where a = a_1,..,a_n such that
1*a_1+2*a_2+...+n*a_n = n and max{a_i} = m, M(a) = n!/(a_1!*..*a_n!),
f^a = (f_1/1!)^a_1*..*(f_n/n!)^a_n and f_n = product_{j=0..n-2}(j-n-2).

A049459 Generalized Stirling number triangle of first kind.

Original entry on oeis.org

1, -4, 1, 20, -9, 1, -120, 74, -15, 1, 840, -638, 179, -22, 1, -6720, 5944, -2070, 355, -30, 1, 60480, -60216, 24574, -5265, 625, -39, 1, -604800, 662640, -305956, 77224, -11515, 1015, -49, 1, 6652800, -7893840, 4028156, -1155420, 203889
Offset: 0

Keywords

Comments

a(n,m)= ^4P_n^m in the notation of the given reference with a(0,0) := 1.
The monic row polynomials s(n,x) := sum(a(n,m)*x^m,m=0..n) which are s(n,x)= product(x-(4+k),k=0..n-1), n >= 1 and s(0,x)=1 satisfy s(n,x+y) = sum(binomial(n,k)*s(k,x)*S1(n-k,y),k=0..n), with the Stirling1 polynomials S1(n,x)=sum(A008275(n,m)*x^m, m=1..n) and S1(0,x)=1.
In the umbral calculus (see the S. Roman reference given in A048854) the s(n,x) polynomials are called Sheffer for (exp(4*t),exp(t)-1).
See A143493 for the unsigned version of this array and A143496 for the inverse. - Peter Bala, Aug 25 2008

Examples

			   1;
  -4,    1;
  20,   -9,   1;
-120,   74, -15,   1;
840, -638, 179, -22, 1;
		

References

  • Mitrinovic, D. S.; Mitrinovic, R. S.; Tableaux d'une classe de nombres relies aux nombres de Stirling. Univ. Beograd. Pubi. Elektrotehn. Fak. Ser. Mat. Fiz. No. 77 1962, 77 pp.

Crossrefs

Unsigned column sequences are: A001715-A001719. Cf. A008275 (Stirling1 triangle), A049458, A049460. Row sums (signed triangle): A001710(n+2)*(-1)^n. Row sums (unsigned triangle): A001720(n+4).
A143493, A143496. - Peter Bala, Aug 25 2008

Programs

  • Haskell
    a049459 n k = a049459_tabl !! n !! k
    a049459_row n = a049459_tabl !! n
    a049459_tabl = map fst $ iterate (\(row, i) ->
       (zipWith (-) ([0] ++ row) $ map (* i) (row ++ [0]), i + 1)) ([1], 4)
    -- Reinhard Zumkeller, Mar 11 2014
  • Maple
    A049459_row := n -> seq((-1)^(n-k)*coeff(expand(pochhammer(x+4, n)), x, k), k=0..n): seq(print(A049459_row(n)),n=0..8); # Peter Luschny, May 16 2013
  • Mathematica
    a[n_, m_] /; 0 <= m <= n := a[n, m] = a[n-1, m-1] - (n+3)*a[n-1, m];
    a[n_, m_] /; n < m = 0;
    a[_, -1] = 0; a[0, 0] = 1;
    Table[a[n, m], {n, 0, 10}, {m, 0, n}] // Flatten (* Jean-François Alcover, Jun 19 2018 *)

Formula

a(n, m)= a(n-1, m-1) - (n+3)*a(n-1, m), n >= m >= 0; a(n, m) := 0, n
Triangle (signed) = [ -4, -1, -5, -2, -6, -3, -7, -4, -8, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, ...]; triangle (unsigned) = [4, 1, 5, 2, 6, 3, 7, 4, 8, 5, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...]; where DELTA is Deléham's operator defined in A084938 (unsigned version in A143493).
If we define f(n,i,a)=sum(binomial(n,k)*stirling1(n-k,i)*product(-a-j,j=0..k-1),k=0..n-i), then T(n,i) = f(n,i,4), for n=1,2,...;i=0...n. - Milan Janjic, Dec 21 2008

Extensions

Second formula corrected by Philippe Deléham, Nov 09 2008

A092582 Triangle read by rows: T(n,k) is the number of permutations p of [n] having length of first run equal to k.

Original entry on oeis.org

1, 1, 1, 3, 2, 1, 12, 8, 3, 1, 60, 40, 15, 4, 1, 360, 240, 90, 24, 5, 1, 2520, 1680, 630, 168, 35, 6, 1, 20160, 13440, 5040, 1344, 280, 48, 7, 1, 181440, 120960, 45360, 12096, 2520, 432, 63, 8, 1, 1814400, 1209600, 453600, 120960, 25200, 4320, 630, 80, 9, 1
Offset: 1

Author

Emeric Deutsch and Warren P. Johnson (wjohnson(AT)bates.edu), Apr 10 2004

Keywords

Comments

Row sums are the factorial numbers (A000142). First column is A001710.
T(n,k) = number of permutations of [n] in which 1,2,...,k is a subsequence but 1,2,...,k,k+1 is not. Example: T(4,2)=8 because 1324, 1342, 1432, 4132, 3124, 3142, 3412 and 4312, are the only permutations of [4] in which 12 is a subsequence but 123 is not. - Emeric Deutsch, Nov 12 2004
T(n,k) is the number of deco polyominoes of height n with k cells in the last column. (A deco polyomino is a directed column-convex polyomino in which the height, measured along the diagonal, is attained only in the last column). - Emeric Deutsch, Jan 06 2005
T(n,k) is the number of permutations p of [n] for which the smallest i such that p(i)Emeric Deutsch, Feb 23 2008
Adding columns 2,4,6,... one obtains the derangement numbers 0,1,2,9,44,... (A000166). See the Bona reference (p. 118, Exercises 41,42). - Emeric Deutsch, Feb 23 2008
Matrix inverse of A128227*A154990. - Mats Granvik, Feb 08 2009
Differences in the columns of A173333 which counts the n-permutations with an initial ascending run of length at least k. - Geoffrey Critzer, Jun 18 2017
The triangle with each row reversed is A130477. - Michael Somos, Jun 25 2017

Examples

			T(4,3) = 3 because 1243, 1342 and 2341 are the only permutations of [4] having length of first run equal to 3.
     1;
     1,    1;
     3,    2,   1;
    12,    8,   3,   1;
    60,   40,  15,   4,  1;
   360,  240,  90,  24,  5,  1;
  2520, 1680, 630, 168, 35,  6,  1;
  ...
		

References

  • M. Bona, Combinatorics of Permutations, Chapman&Hall/CRC, Boca Raton, Florida, 2004.

Programs

  • GAP
    Flat(List([1..11],n->Concatenation([1],List([1..n-1],k->Factorial(n)*k/Factorial(k+1))))); # Muniru A Asiru, Jun 10 2018
    
  • Magma
    A092582:= func< n,k | k eq n select 1 else k*Factorial(n)/Factorial(k+1) >;
    [A092582(n,k): k in [1..n], n in [1..12]]; // G. C. Greubel, Sep 06 2022
    
  • Mathematica
    Drop[Drop[Abs[Map[Select[#, # < 0 &] &, Map[Differences, nn = 10; Range[0, nn]! CoefficientList[Series[(Exp[y x] - 1)/(1 - x), {x, 0, nn}], {x, y}]]]], 1], -1] // Grid (* Geoffrey Critzer, Jun 18 2017 *)
  • PARI
    {T(n, k) = if( n<1 || k>n, 0, k==n, 1, n! * k /(k+1)!)}; /* Michael Somos, Jun 25 2017 */
    
  • SageMath
    def A092582(n,k): return 1 if (k==n) else k*factorial(n)/factorial(k+1)
    flatten([[A092582(n,k) for k in (1..n)] for n in (1..12)]) # G. C. Greubel, Sep 06 2022

Formula

T(n, k) = n!*k/(k+1)! for k
Inverse of:
1;
-1, 1;
-1, -2, 1;
-1, -2, -3, 1;
-1, -2, -3, -4, 1;
... where A002260 = (1; 1,2; 1,2,3; ...). - Gary W. Adamson, Feb 22 2012
T(2n,n) = A092956(n-1) for n>0. - Alois P. Heinz, Jun 19 2017
From Alois P. Heinz, Dec 17 2021: (Start)
Sum_{k=1..n} k * T(n,k) = A002627(n).
|Sum_{k=1..n} (-1)^k * T(n,k)| = A055596(n) for n>=1. (End)
From G. C. Greubel, Sep 06 2022: (Start)
T(n, 1) = A001710(n).
T(n, 2) = 2*A001715(n) + [n=2]/3, n >= 2.
T(n, 3) = 3*A001720(n) + [n=3]/4, n >= 3.
T(n, 4) = 4*A001725(n) + [n=4]/5, n >= 4.
T(n, n-1) = A000027(n-1).
T(n, n-2) = A005563(n-1), n >= 3. (End)
Sum_{k=0..n} (k+1) * T(n,k) = A000522(n). - Alois P. Heinz, Apr 28 2023

A143497 Triangle of unsigned 2-Lah numbers.

Original entry on oeis.org

1, 4, 1, 20, 10, 1, 120, 90, 18, 1, 840, 840, 252, 28, 1, 6720, 8400, 3360, 560, 40, 1, 60480, 90720, 45360, 10080, 1080, 54, 1, 604800, 1058400, 635040, 176400, 25200, 1890, 70, 1, 6652800, 13305600, 9313920, 3104640, 554400, 55440, 3080, 88, 1
Offset: 2

Author

Peter Bala, Aug 25 2008

Keywords

Comments

For a signed version of this triangle see A062137. The unsigned 2-Lah number L(2; n,k) gives the number of partitions of the set {1, 2, ..., n} into k ordered lists with the restriction that the elements 1 and 2 must belong to different lists. More generally, the unsigned r-Lah number L(r; n, k) gives the number of partitions of the set {1, 2, ..., n} into k ordered lists with the restriction that the elements 1, 2, ..., r belong to different lists. If r = 1 there is no restriction and we obtain the unsigned Lah numbers A105278. For other cases see A143498 (r=3) and A143499 (r=4). We make some remarks on the general case.
The unsigned r-Lah numbers occur as connection constants in the generalized Lah identity (x + 2*r - 1)*(x + 2*r)*...*(x + 2*r + n - r - 2) = Sum_{k=r..n} L(r; n, k)*(x - 1)*(x - 2)*...*(x - k + r) for n >= r and where any empty products are taken equal to 1 (for a bijective proof of the identity, follow the proof of [Petkovsek and Pisanski] but restrict the first r of the Argonauts to different paths).
The unsigned r-Lah numbers satisfy the same recurrence as the unsigned Lah numbers, namely, L(r; n, k) = (n + k - 1)*L(r; n - 1,k) + L(r; n - 1,k - 1), but with the boundary conditions: L(r; n, k) = 0 if n < r or if k < r; L(r; r, r) = 1. The recurrence has the explicit solution L(r; n, k) = ((n - r)!/(k - r)!)*binomial(n + r - 1, k + r - 1) for n, k >= r. It follows that the unsigned r-Lah numbers have 'vertical' generating functions for k >= r of the form Sum_{n>=k} L(r; n, k)*t^n/(n -r)! = 1/(k - r)!*t^k/(1 - t)^(k + r). This yields the e.g.f. for the array of unsigned r-restricted Lah numbers in the form: Sum_{n,k>=r} L(r; n, k)*x^k*t^n/(n-r)! = (x*t)^r * 1/(1 - t)^(2*r) * exp(x*t/(1 - t)) = (x*t)^r (1 + (2*r + x)*t + (2r*(2*r + 1) + 2*(2*r + 1)*x + x^2)*t^2/2! + ...).
The array of unsigned r-Lah numbers begins
1
2r 1
2r*(2r+1) 2*(2r+1) 1
2r*(2r+1)*(2r+2) 3*(2r+1)*(2r+2) 3*(2r+2) 1
...
and equals exp(D(r)), where D(r) is the array with the sequence (2*r, 2*(2*r + 1), 3*(2*r + 2), 4*(2*r + 3), ...) on the main subdiagonal and zeros everywhere else.
The unsigned r-Lah numbers are related to the r-Stirling numbers: the lower triangular array of unsigned r-Lah numbers may be expressed as the matrix product St1(r) * St2(r), where St1(r) and St2(r) denote the arrays of r-Stirling numbers of the first and second kind respectively. The theory of r-Stirling numbers is developed in [Broder]. See A143491 - A143496 for tables of r-Stirling numbers. An alternative factorization for the array is as St1 * P^(2r - 2) * St2, where P denotes Pascal's triangle, A007318, St1 is the triangle of unsigned Stirling numbers of the first kind, abs(A008275) and St2 denotes the triangle of Stirling numbers of the second kind, A008277 (apply Theorem 10 of [Neuwirth]).
The array of unsigned r-Lah numbers is an example of the fundamental matrices sketched in A133314. So redefining the offset as n=0, given matrices A and B with A(n, k) = T(n, k)*a(n - k) and B(n, k) = T(n, k)*b(n - k), then A*B = C where C(n, k) = T(n,k)*[a(.) + b(.)]^(n - k), umbrally. An e.g.f. for the row polynomials of A is exp(x*t) exp{-x*t*[a*t/(a*t - 1)]}/(1 - a*t)^4 = exp(x*t) exp[(.)!*Laguerre(., 3, -x*t)* a(.)*t)], umbrally. - Tom Copeland, Sep 19 2008

Examples

			Triangle begins:
=========================================
n\k |     2     3     4     5     6     7
----+------------------------------------
  2 |     1
  3 |     4     1
  4 |    20    10     1
  5 |   120    90    18     1
  6 |   840   840   252    28     1
  7 |  6720  8400  3360   560    40     1
 ...
T(4,3) = 10. The ten partitions of {1,2,3,4} into 3 ordered lists such that the elements 1 and 2 lie in different lists are: {1}{2}{3,4} and {1}{2}{4,3}, {1}{3}{2,4} and {1}{3}{4,2}, {1}{4}{2,3} and {1}{4}{3,2}, {2}{3}{1,4} and {2}{3}{4,1}, {2}{4}{1,3} and {2}{4}{3,1}. The remaining two partitions {3}{4}{1,2} and {3}{4}{2,1} are not allowed because the elements 1 and 2 belong to the same block.
		

Crossrefs

Cf. A001715 (column 2), A007318, A008275, A008277, A061206 (column 3), A062137, A062141 - A062144 ( column 4 to column 7), A062146 (alt. row sums), A062147 (row sums), A105278 (unsigned Lah numbers), A143491, A143494, A143498, A143499.

Programs

  • GAP
    T:=Flat(List([2..10],n->List([2..n],k->(Factorial(n-2)/Factorial(k-2))*Binomial(n+1,k+1)))); # Muniru A Asiru, Nov 27 2018
  • Maple
    T := (n, k) -> ((n-2)!/(k-2)!)*binomial(n+1, k+1):
    for n from 2 to 11 do seq(T(n, k), k = 2..n) od;
  • Mathematica
    T[n_, k_] := (n-2)!/(k-2)!*Binomial[n+1, k+1]; Table[T[n, k], {n,2,10}, {k,2,n}] // Flatten (* Amiram Eldar, Nov 27 2018 *)
  • Maxima
    create_list((n - 2)!/(k - 2)!*binomial(n + 1, k + 1), n, 2, 12, k, 2, n); /* Franck Maminirina Ramaharo, Nov 27 2018 */
    

Formula

T(n, k) = ((n - 2)!/(k - 2)!)*C(n+1, k+1), for n, k >= 2.
Recurrence: T(n, k) = (n + k - 1)*T(n-1, k) + T(n-1, k-1) for n, k >= 2, with the boundary conditions: T(n, k) = 0 if n < 2 or k < 2; T(2, 2) = 1.
E.g.f. for column k: Sum_{n>=k} T(n, k)*t^n/(n - 2)! = 1/(k - 2)!*t^k/(1 - t)^(k+2) for k >= 2.
E.g.f: Sum_{n=2..inf} Sum_{k=2..n} T(n, k)*x^k*t^n/(n - 2)! = (x*t)^2/(1 - t)^4* exp(x*t/(1 - t)) = (x*t)^2*(1 + (4 + x)*t + (20 + 10*x + x^2)*t^2/2! + ... ).
Generalized Lah identity: (x + 3)*(x + 4)*...*(x + n) = Sum_{k = 2..n} T(n, k)*(x - 1)*(x - 2)*...*(x - k + 2).
The polynomials 1/n!*Sum_{k=2..n+2} T(n+2, k)*(-x)^(k - 2) for n >= 0 are the generalized Laguerre polynomials Laguerre(n,3,x). See A062137.
Array = A143491 * A143494 = abs(A008275) * (A007318)^2 * A008277 (apply Theorem 10 of [Neuwirth]). Array equals exp(D), where D is the array with the quadratic sequence (4, 10, 18, 28, ...) on the main subdiagonal and zeros elsewhere.
After adding 1 to the head of the main diagonal and a zero to each of the subdiagonals, the n-th diagonal may be generated as coefficients of (1/n!) [D^(-1) tDt t^(-3)D t^3]^n exp(x*t), where D is the derivative w.r.t. t and D^(-1) t^j/j! = t^(j + 1)/(j + 1)!. E.g., n = 2 generates 20*x*t^3/3! + 90*x^2*t^4/4! + 252*x^3* t^5/5! + ... . For the general unsigned r-Lah number array, replace the threes by (2*r - 1) in the operator. The e.g.f. of the row polynomials is then exp[D^(-1) tDt t^(-(2*r-1))D t^(2*r - 1)] exp(x*t), with offset n = 0. - Tom Copeland, Sep 21 2008

A049460 Generalized Stirling number triangle of first kind.

Original entry on oeis.org

1, -5, 1, 30, -11, 1, -210, 107, -18, 1, 1680, -1066, 251, -26, 1, -15120, 11274, -3325, 485, -35, 1, 151200, -127860, 44524, -8175, 835, -45, 1, -1663200, 1557660, -617624, 134449, -17360, 1330, -56, 1, 19958400, -20355120, 8969148, -2231012, 342769, -33320, 2002, -68, 1
Offset: 0

Keywords

Comments

a(n,m)= ^5P_n^m in the notation of the given reference with a(0,0) := 1.
The monic row polynomials s(n,x) := sum(a(n,m)*x^m,m=0..n) which are s(n,x)= product(x-(5+k),k=0..n-1), n >= 1 and s(0,x)=1 satisfy s(n,x+y) = sum(binomial(n,k)*s(k,x)*S1(n-k,y),k=0..n), with the Stirling1 polynomials S1(n,x)=sum(A008275(n,m)*x^m, m=1..n) and S1(0,x)=1.
In the umbral calculus (see the S. Roman reference given in A048854) the s(n,x) polynomials are called Sheffer for (exp(5*t),exp(t)-1).

Examples

			{1}; {-5,1}; {30,-11,1}; {-210,107,-18,1}; ... s(2,x)= 30-11*x+x^2; S1(2,x)= -x+x^2 (Stirling1).
		

Crossrefs

Unsigned column sequences are: A001720-A001724. Row sums (signed triangle): A001715(n+3)*(-1)^n. Row sums (unsigned triangle): A001725(n+5).

Programs

  • Haskell
    a049460 n k = a049460_tabl !! n !! k
    a049460_row n = a049460_tabl !! n
    a049460_tabl = map fst $ iterate (\(row, i) ->
       (zipWith (-) ([0] ++ row) $ map (* i) (row ++ [0]), i + 1)) ([1], 5)
    -- Reinhard Zumkeller, Mar 11 2014
  • Mathematica
    a[n_, m_] := Pochhammer[m+1, n-m] SeriesCoefficient[Log[1+x]^m/(1+x)^5, {x, 0, n}];
    Table[a[n, m], {n, 0, 8}, {m, 0, n}] // Flatten (* Jean-François Alcover, Oct 29 2019 *)

Formula

a(n, m)= a(n-1, m-1) - (n+4)*a(n-1, m), n >= m >= 0; a(n, m) := 0, n
Triangle (signed) = [ -5, -1, -6, -2, -7, -3, -8, -4, -9, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, 1, ...]; triangle (unsigned) = [5, 1, 6, 2, 7, 3, 8, 4, 9, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...]; where DELTA is Deléham's operator defined in A084938.
If we define f(n,i,a)=sum(binomial(n,k)*stirling1(n-k,i)*product(-a-j,j=0..k-1),k=0..n-i), then T(n,i) = f(n,i,5), for n=1,2,...;i=0...n. - Milan Janjic, Dec 21 2008

Extensions

Second formula corrected by Philippe Deléham, Nov 10 2008

A143492 Unsigned 3-Stirling numbers of the first kind.

Original entry on oeis.org

1, 3, 1, 12, 7, 1, 60, 47, 12, 1, 360, 342, 119, 18, 1, 2520, 2754, 1175, 245, 25, 1, 20160, 24552, 12154, 3135, 445, 33, 1, 181440, 241128, 133938, 40369, 7140, 742, 42, 1, 1814400, 2592720, 1580508, 537628, 111769, 14560, 1162, 52, 1, 19958400
Offset: 3

Author

Peter Bala, Aug 20 2008

Keywords

Comments

See A049458 for a signed version of this array. The unsigned 3-Stirling numbers of the first kind count the permutations of the set {1,2,...,n} into k disjoint cycles, with the restriction that the elements 1, 2 and 3 belong to distinct cycles. This is the case r = 3 of the unsigned r-Stirling numbers of the first kind. For other cases see abs(A008275) (r = 1), A143491 (r = 2) and A143493 (r = 4). See A143495 for the corresponding 3-Stirling numbers of the second kind. The theory of r-Stirling numbers of both kinds is developed in [Broder]. For details of the related 3-Lah numbers see A143498.
With offset n=0 and k=0, this is the Sheffer triangle (1/(1-x)^3, -log(1-x)) (in the umbral notation of S. Roman's book this would be called Sheffer for (exp(-3*t), 1-exp(-t))). See the e.g.f given below. Compare also with the e.g.f. for the signed version A049458. - Wolfdieter Lang, Oct 10 2011
With offset n=0 and k=0 : triangle T(n,k), read by rows, given by (3,1,4,2,5,3,6,4,7,5,8,6,...) DELTA (1,0,1,0,1,0,1,0,1,0,1,...) where DELTA is the operator defined in A084938. - Philippe Deléham, Oct 31 2011

Examples

			Triangle begins
n\k|.....3.....4.....5.....6.....7.....8
========================================
3..|.....1
4..|.....3.....1
5..|....12.....7.....1
6..|....60....47....12.....1
7..|...360...342...119....18.....1
8..|..2520..2754..1175...245....25.....1
...
T(5,4) = 7. The permutations of {1,2,3,4,5} with 4 cycles such that 1, 2 and 3 belong to different cycles are: (14)(2)(3)(5), (15)(2)(3)(4), (24)(1)(3)(5), (25)(1)(3)(4), (34)(1)(2)(5), (35)(1)(2)(4) and (45)(1)(2)(3).
		

Crossrefs

Cf. A001710 - A001714 (column 3 - column 7), A001715 (row sums), A008275, A049458 (signed version), A143491, A143493, A143495, A143498.

Programs

  • Maple
    with combinat: T := (n, k) -> (n-3)! * add(binomial(n-j-1,2)*abs(stirling1(j,k-3))/j!,j = k-3..n-3): for n from 3 to 12 do seq(T(n, k), k = 3..n) end do;

Formula

T(n,k) = (n-3)! * Sum_{j = k-3 .. n-3} C(n-j-1,2)*|Stirling1(j,k-3)|/j!.
Recurrence relation: T(n,k) = T(n-1,k-1) + (n-1)*T(n-1,k) for n > 3, with boundary conditions: T(n,2) = T(2,n) = 0, for all n; T(3,3) = 1; T(3,k) = 0 for k > 3.
Special cases:
T(n,3) = (n-1)!/2! for n >= 3.
T(n,4) = (n-1)!/2!*(1/3 + ... + 1/(n-1)) for n >= 3.
T(n,k) = Sum_{3 <= i_1 < ... < i_(n-k) < n} (i_1*i_2* ...*i_(n-k)). For example, T(6,4) = Sum_{3 <= i < j < 6} (i*j) = 3*4 + 3*5 + 4*5 = 47.
Row g.f.: Sum_{k = 3..n} T(n,k)*x^k = x^3*(x+3)*(x+4)* ... *(x+n-1).
E.g.f. for column (k+3): Sum_{n = k..inf} T(n+3,k+3)*x^n/n! = 1/k!*1/(1-x)^3 * (log(1/(1-x)))^k.
E.g.f.: (1/(1-t))^(x+3) = Sum_{n = 0..inf} Sum_{k = 0..n} T(n+3,k+3)*x^k*t^n/n! = 1 + (3+x)*t/1! + (12+7*x+x^2)*t^2/2! + ....
This array is the matrix product St1 * P^2, where St1 denotes the lower triangular array of unsigned Stirling numbers of the first kind, abs(A008275) and P denotes Pascal's triangle, A007318. The row sums are n!/3! ( A001715 ). The alternating row sums are (n-2)!.
If we define f(n,i,a) = sum(binomial(n,k)*Stirling1(n-k,i)*product(-a-j,j=0..k-1),k=0..n-i), then T(n,i) = |f(n,i,3)|, for n=1,2,...;i=0...n. - Milan Janjic, Dec 21 2008
Previous Showing 21-30 of 51 results. Next