A049459 Generalized Stirling number triangle of first kind.
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
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.
Links
- Reinhard Zumkeller, Rows n = 0..125 of triangle, flattened
Crossrefs
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
A143493 Unsigned 4-Stirling numbers of the first kind.
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, 22680, 1554, 60, 1, 79833600
Offset: 4
Comments
See A049459 for a signed version of the array. The unsigned 4-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, 3 and 4 belong to distinct cycles. This is the case r = 4 of the unsigned r-Stirling numbers of the first kind. For other cases see abs(A008275) (r = 1), A143491 (r = 2) and A143492 (r = 3). See A143496 for the corresponding triangle of 4-Stirling numbers of the second kind.
The theory of r-Stirling numbers of both kinds is developed in [Broder]. For details of the related 4-Lah numbers see A143499.
With offset n=0 and k=0, this is the Sheffer triangle (1/(1-x)^4,-log(1-x)) (in the umbral notation of S. Roman's book this would be called Sheffer for (exp(-4*t),1-exp(-t))). See the e.g.f given below. Compare also with the e.g.f. for the signed version A049459. - Wolfdieter Lang, Oct 10 2011
With offset n=0 and k=0: triangle T(n,k), read by rows, given by (4,1,5,2,6,3,7,4,8,5,9,6,...) DELTA (1,0,1,0,1,0,1,0,1,0,1,0,...) where DELTA is the operator defined in A084938. - Philippe Deléham, Oct 31 2011
Examples
Triangle begins n\k| 4 5 6 7 8 9 ======================================== 4 | 1 5 | 4 1 6 | 20 9 1 7 | 120 74 15 1 8 | 840 638 179 22 1 9 | 6720 5944 2070 355 30 1 ... T(6,5) = 9. The 9 permutations of {1,2,3,4,5,6} with 5 cycles such that 1, 2, 3 and 4 belong to different cycles are: (1,5)(2)(3)(4)(6), (1,6)(2)(3)(4)(5), (2,5)(1)(3)(4)(6), (2,6)(1)(3)(4)(5), (3,5)(1)(2)(4)(6), (3,6)(1)(2)(4)(5), (4,5)(1)(2)(3)(6), (4,6)(1)(2)(3)(5) and (5,6)(1)(2)(3)(4).
Links
- Broder Andrei Z., The r-Stirling numbers, Discrete Math. 49, 241-259 (1984)
- A. Dzhumadildaev and D. Yeliussizov, Path decompositions of digraphs and their applications to Weyl algebra, arXiv preprint arXiv:1408.6764v1 [math.CO], 2014. [Version 1 contained many references to the OEIS, which were removed in Version 2. - _N. J. A. Sloane_, Mar 28 2015]
- Askar Dzhumadil’daev and Damir Yeliussizov, Walks, partitions, and normal ordering, Electronic Journal of Combinatorics, 22(4) (2015), #P4.10.
- Erich Neuwirth, Recursively defined combinatorial functions: Extending Galton's board, Discrete Math. 239 No. 1-3, 33-51 (2001).
- Michael J. Schlosser and Meesue Yoo, Elliptic Rook and File Numbers, Electronic Journal of Combinatorics, 24(1) (2017), #P1.31.
Crossrefs
Programs
-
Maple
with combinat: T := (n, k) -> (n-4)! * add(binomial(n-j-1,3)*abs(stirling1(j,k-4))/j!,j = k-4..n-4): for n from 4 to 13 do seq(T(n, k), k = 4..n) end do;
Formula
T(n,k) = (n-4)! * Sum_{j = k-4 .. n-4} C(n-j-1,3)*|stirling1(j,k-4)|/j!.
Recurrence relation: T(n,k) = T(n-1,k-1) + (n-1)*T(n-1,k) for n > 4, with boundary conditions: T(n,3) = T(3,n) = 0 for all n; T(4,4) = 1; T(4,k) = 0 for k > 4.
Special cases:
T(n,4) = (n-1)!/3!.
T(n,5) = (n-1)!/3!*(1/4 + ... + 1/(n-1)).
T(n,k) = sum {4 <= i_1 < ...< i_(n-k) < n} (i_1*i_2* ...*i_(n-k)). For example, T(7,5) = Sum_{4 <= i < j < 7} (i*j) = 4*5 + 4*6 + 5*6 = 74.
Row g.f.: Sum_{k = 4..n} T(n,k)*x^k = x^4*(x+4)*(x+5)* ... *(x+n-1).
E.g.f. for column (k+4): Sum_{n = k..inf} T(n+4,k+4)*x^n/n! = 1/k!*1/(1-x)^4 * (log(1/(1-x)))^k.
E.g.f.: (1/(1-t))^(x+4) = Sum_{n = 0..inf} Sum_{k = 0..n} T(n+4,k+4)*x^k*t^n/n! = 1 + (4+x)*t/1! + (20+9*x+x^2)*t^2/2! + .... This array is the matrix product St1 * P^3, 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!/4! ( A001720 ). The alternating row sums are (n-2)!/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+4,i) = |f(n,i,3)|, for n=1,2,...;i=0...n. - Milan Janjic, Dec 21 2008
A001713 Generalized Stirling numbers.
1, 18, 245, 3135, 40369, 537628, 7494416, 109911300, 1698920916, 27679825272, 474957547272, 8572072384512, 162478082312064, 3229079010579072, 67177961946534528, 1460629706845766400, 33139181950164806400, 783398920650352012800, 19268391564147377318400
Offset: 0
Keywords
Comments
The asymptotic expansion of the higher order exponential integral E(x,m=4,n=3) ~ exp(-x)/x^4*(1 - 18/x + 245/x^2 - 3135/x^3 + 40369/x^4 - 537628/x^5 + ...) leads to the sequence given above. See A163931 and A163934 for more information. - Johannes W. Meijer, Oct 20 2009
From Petros Hadjicostas, Jun 12 2020: (Start)
For nonnegative integers n, m and complex numbers a, b (with b <> 0), the numbers R_n^m(a,b) were introduced by Mitrinovic (1961) and Mitrinovic and Mitrinovic (1962) using slightly different notation.
These numbers are defined via the g.f. Product_{r=0..n-1} (x - (a + b*r)) = Sum_{m=0..n} R_n^m(a,b)*x^m for n >= 0.
As a result, R_n^m(a,b) = R_{n-1}^{m-1}(a,b) - (a + b*(n-1))*R_{n-1}^m(a,b) for n >= m >= 1 with R_0^0(a,b) = 1, R_1^0(a,b) = a, R_1^1(a,b) = 1, and R_n^m(a,b) = 0 for n < m.
With a = 0 and b = 1, we get the Stirling numbers of the first kind S1(n,m) = R_n^m(a=0, b=1) = A048994(n,m) for n, m >= 0.
We have R_n^m(a,b) = Sum_{k=0}^{n-m} (-1)^k * a^k * b^(n-m-k) * binomial(m+k, k) * S1(n, m+k) for n >= m >= 0.
For the current sequence, a(n) = R_{n+3}^3(a=-3, b=-1) for n >= 0. (End)
References
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Links
- T. D. Noe, Table of n, a(n) for n = 0..100
- D. S. Mitrinovic, Sur une classe de nombres reliés aux nombres de Stirling, Comptes rendus de l'Académie des sciences de Paris, t. 252 (1961), 2354-2356. [The numbers R_n^m(a,b) are introduced.]
- D. S. Mitrinovic and R. S. Mitrinovic, Tableaux d'une classe de nombres reliés aux nombres de Stirling, Univ. Beograd. Publ. Elektrotehn. Fak. Ser. Mat. Fiz., No. 77 (1962), 1-77 [jstor stable version].
- D. S. Mitrinovic and M. S. Mitrinovic, Tableaux d'une classe de nombres reliés aux nombres de Stirling, Univ. Beograd. Publ. Elektrotehn. Fak. Ser. Mat. Fiz. No. 77 (1962), 1-77.
Programs
-
Mathematica
nn = 23; t = Range[0, nn]! CoefficientList[Series[-Log[1 - x]^3/(6*(1 - x)^3), {x, 0, nn}], x]; Drop[t, 3] (* T. D. Noe, Aug 09 2012 *)
-
PARI
a(n) = sum(k=0, n, (-1)^(n+k)*binomial(k+3, 3)*3^k*stirling(n+3, k+3, 1)); \\ Michel Marcus, Jan 20 2016
-
PARI
b(n) = prod(r=0, n+2, r+3); c(n) = sum(i=0, n+2, sum(j=i+1, n+2, sum(k=j+1, n+2, 1/((3+i)*(3+j)*(3+k))))); for(n=0, 18, print1(b(n)*c(n), ", ")) \\ Petros Hadjicostas, Jun 12 2020
Formula
E.g.f.: Sum_{n>=0} a(n)*x^(n+3)/(n+3)! = (log(1 - x)/(x - 1))^3/6. - Vladeta Jovovic, May 05 2003 [Edited by Petros Hadjicostas, Jun 13 2020]
a(n) = Sum_{k=0..n} (-1)^(n+k) * binomial(k+3, 3) * 3^k * Stirling1(n+3, k+3). - Borislav Crstici (bcrstici(AT)etv.utt.ro), Jan 26 2004
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 a(n-3) = |f(n,3,3)| for n >= 3. - Milan Janjic, Dec 21 2008
From Petros Hadjicostas, Jun 12 2020: (Start)
a(n) = [x^3] Product_{r=0}^{n+2} (x + 3 + r) = (Product_{r=0}^{n+2} (r+3)) * Sum_{0 <= i < j < k <= n+2} 1/((3+i)*(3+j)*(3+k)).
Since a(n) = R_{n+3}^3(a=-3, b=-1), A001712(n) = R_{n+2}^2(a=-3,b=-1), and A001711(n) = R_{n+1}^1(a=-3, b=-1), the equation R_{n+3}^3(a=-3,b=-1) = R_{n+2}^2(a=-3,b=-1) + (n+5)*R_{n+2}^3(a=-3,b=-1) implies the following:
(i) a(n) = A001712(n) + (n+5)*a(n-1) for n >= 1.
(ii) a(n) = A001711(n) + (2*n+9)*a(n-1) - (n+4)^2*a(n-2) for n >= 2.
(iii) a(n) = (n+2)!/2 + 3*(n+4)*a(n-1) - (3*n^2+21*n+37)*a(n-2) + (n+3)^3*a(n-3) for n >= 3.
(iv) a(n) = 2*(2*n+7)*a(n-1) - (6*n^2+36*n+55)*a(n-2) + (2*n^2+10*n+13)*(2*n+5)*a(n-3) - (n+2)^4*a(n-4) for n >= 4. (End)
Extensions
More terms from Vladeta Jovovic, May 05 2003
A307419 Triangle of harmonic numbers T(n, k) = [t^n] Gamma(n+k+t)/Gamma(k+t) for n >= 0 and 0 <= k <= n, read by rows.
1, 0, 1, 0, 3, 1, 0, 11, 9, 1, 0, 50, 71, 18, 1, 0, 274, 580, 245, 30, 1, 0, 1764, 5104, 3135, 625, 45, 1, 0, 13068, 48860, 40369, 11515, 1330, 63, 1, 0, 109584, 509004, 537628, 203889, 33320, 2506, 84, 1, 0, 1026576, 5753736, 7494416, 3602088, 775929, 81900, 4326, 108, 1
Offset: 0
Examples
Triangle starts: 0: [1] 1: [0, 1] 2: [0, 3, 1] 3: [0, 11, 9, 1] 4: [0, 50, 71, 18, 1] 5: [0, 274, 580, 245, 30, 1] 6: [0, 1764, 5104, 3135, 625, 45, 1] 7: [0, 13068, 48860, 40369, 11515, 1330, 63, 1] 8: [0, 109584, 509004, 537628, 203889, 33320, 2506, 84, 1] 9: [0, 1026576, 5753736, 7494416, 3602088, 775929, 81900, 4326, 108, 1] Col: A000254, A001706, A001713, A001719, ...
Crossrefs
Programs
-
Maple
# Note that for n > 16 Maple fails (at least in some versions) to compute the # terms properly. Inserting 'simplify' or numerical evaluation might help. A307419Row := proc(n) local ogf, ser; ogf := (n, k) -> GAMMA(n+k+x)/GAMMA(k+x); ser := (n, k) -> series(ogf(n,k),x,k+2); seq(coeff(ser(n,k),x,k),k=0..n) end: seq(A307419Row(n), n=0..9); # Alternatively by the egf for column k: A307419Col := proc(n, len) local f, egf, ser; f := (n,x) -> (log(1-x)/(x-1))^n/n!; egf := (n,x) -> diff(f(n, x), [x$n]); ser := n -> series(egf(n, x), x, len); seq(k!*coeff(ser(n), x, k), k=0..len-1) end: seq(print(A307419Col(k, 10)), k=0..9); # Peter Luschny, Apr 12 2019 T := (n, k) -> add((-1)^(n-j)*binomial(j, k)*Stirling1(n, j)*k^(j-k), j = k..n): seq(seq(T(n,k), k = 0..n), n = 0..9); # Peter Luschny, Jun 09 2022
-
Mathematica
f[n_, x_] := f[n, x] = D[(Log[1 - x]/(x - 1))^n/n!, {x, n}]; T[n_, k_] := (n - k)! SeriesCoefficient[f[k, x], {x, 0, n - k}]; Table[T[n, k], {n, 0, 9}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 13 2019 *)
-
Maxima
T(n,k):=n!*sum((binomial(k+i-1,i)*abs(stirling1(n-i,k)))/(n-i)!,i,0,n-k);
-
Maxima
taylor((1-t)^(-x/(1-t)),t,0,7,x,0,7);
-
Maxima
T(n,k):=coeff(taylor(gamma(n+k+t)/gamma(k+t),t,0,10),t,k);
-
PARI
T(n, k) = n!*sum(i=0, n-k, abs(stirling(n-i, k, 1))*binomial(i+k-1, i)/(n-i)!); \\ Michel Marcus, Apr 13 2019
Formula
E.g.f.: A(t,x) = (1-t)^(-x/(1-t)).
T(n, k) = n!*Sum_{L1+L2+...+Lk=n} H(L1)H(L2)...H(Lk) with Li > 0, where H(n) are the harmonic numbers A001008.
T(n, k) = n!*Sum_{i=0..n-k} abs(Stirling1(n-i, k))/(n-i)!*binomial(i+k-1, i).
T(n, k) = k! [x^k] (d^n/dx^n) ((log(1-x)/(x-1))^n/n!), the e.g.f. for column k where Col(k) = [T(n+k, k) for n = 0, 1, 2, ...]. - Peter Luschny, Apr 12 2019
T(n, k) = Sum_{j=k..n} (-1)^(n-j)*binomial(j, k)*Stirling1(n, j)*k^(j-k). - Peter Luschny, Jun 09 2022
Comments