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-10 of 18 results. Next

A281479 Central coefficients of the polynomials defined in A278073.

Original entry on oeis.org

1, 1, 1364, 42771456, 10298900437056, 11287986820196486400, 41397337338743872194508800, 414528538783792919989135797964800, 9808376038359632185170127842947907993600, 492228239722024416239987973400425228541016064000
Offset: 0

Views

Author

Peter Luschny, Jan 22 2017

Keywords

Crossrefs

Central coefficients: A088218 (m=0), A210029 (m=1), A281478 (m=2), A281479 (m=3), A281480 (m=4). Related triangles: A097805 (m=0), A131689 (m=1), A241171 (m=2), A278073 (m=3), A278074 (m=4).

Programs

A097805 Number of compositions of n with k parts, T(n, k) = binomial(n-1, k-1) for n, k >= 1 and T(n, 0) = 0^n, triangle read by rows for n >= 0 and 0 <= k <= n.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 1, 2, 1, 0, 1, 3, 3, 1, 0, 1, 4, 6, 4, 1, 0, 1, 5, 10, 10, 5, 1, 0, 1, 6, 15, 20, 15, 6, 1, 0, 1, 7, 21, 35, 35, 21, 7, 1, 0, 1, 8, 28, 56, 70, 56, 28, 8, 1, 0, 1, 9, 36, 84, 126, 126, 84, 36, 9, 1, 0, 1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1, 0, 1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1
Offset: 0

Views

Author

Paul Barry, Aug 25 2004

Keywords

Comments

Previous name was: Riordan array (1, 1/(1-x)) read by rows.
Note this Riordan array would be denoted (1, x/(1-x)) by some authors.
Columns have g.f. (x/(1-x))^k. Reverse of A071919. Row sums are A011782. Antidiagonal sums are Fibonacci(n-1). Inverse as Riordan array is (1, 1/(1+x)). A097805=B*A059260*B^(-1), where B is the binomial matrix.
(0,1)-Pascal triangle. - Philippe Deléham, Nov 21 2006
(n+1) * each term of row n generates triangle A127952: (1; 0, 2; 0, 3, 3; 0, 4, 8, 4; ...). - Gary W. Adamson, Feb 09 2007
Triangle T(n,k), 0<=k<=n, read by rows, given by [0,1,0,0,0,0,0,...] DELTA [1,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938. - Philippe Deléham, Dec 12 2008
From Paul Weisenhorn, Feb 09 2011: (Start)
Triangle read by rows: T(r,c) is the number of unordered partitions of n=r*(r+1)/2+c into (r+1) parts < (r+1) and at most pairs of equal parts and parts in neighboring pairs have difference 2.
Triangle read by rows: T(r,c) is the number of unordered partitions of the number n=r*(r+1)/2+(c-1) into r parts < (r+1) and at most pairs of equal parts and parts in neighboring pairs have difference 2. (End)
Triangle read by rows: T(r,c) is the number of ordered partitions (compositions) of r into c parts. - Juergen Will, Jan 04 2016
From Tom Copeland, Oct 25 2012: (Start)
Given a basis composed of a sequence of polynomials p_n(x) characterized by ladder (creation / annihilation, or raising / lowering) operators defined by R p_n(x) = p_(n+1)(x) and L p_n(x) = n p_(n-1)(x) with p_0(x)=1, giving the number operator # p_n(x) = RL p_n(x) = n p_n(x), the lower triangular padded Pascal matrix Pd (A097805) serves as a matrix representation of the operator exp(R^2*L) = exp(R#) =
1) exp(x^2D) for the set x^n and
2) D^(-1) exp(t*x)D for the set x^n/n! (see A218234).
(End)
From James East, Apr 11 2014: (Start)
Square array a(m,n) with m,n=0,1,2,... read by off-diagonals.
a(m,n) gives the number of order-preserving functions f:{1,...,m}->{1,...,n}. Order-preserving means that x
a(n,n)=A088218(n) is the size of the semigroup O_n of all order-preserving transformations of {1,...,n}.
Read as a triangle, this sequence may be obtained by augmenting Pascal's triangle by appending the column 1,0,0,0,... on the left.
(End)
A formula based on the partitions of n with largest part k is given as a Sage program below. The 'conjugate' formula leads to A048004. - Peter Luschny, Jul 13 2015
From Wolfdieter Lang, Feb 17 2017: (Start)
The transposed of this lower triangular Riordan matrix of the associated type T provides the transition matrix between the monomial basis {x^n}, n >= 0, and the basis {y^n}, n >= 0, with y = x/(1-x): x^0 = 1 = y^0, x^n = Sum_{m >= n} Ttrans(n,m) y^m, for n >= 1, with Ttrans(n,m) = binomial(m-1,n-1).
Therefore, if a transformation with this Riordan matrix from a sequence {a} to the sequence {b} is given by b(n) = Sum_{m=0..n} T(n, m)*a(m), with T(n, m) = binomial(n-1, m-1), for n >= 1, then Sum_{n >= 0} a(n)*x^n = Sum_{n >= 0} b(n)*y^n, with y = x/(1-x) and vice versa. This is a modified binomial transformation; the usual one belongs to the Pascal Riordan matrix A007318. (End)
From Gus Wiseman, Jan 23 2022: (Start)
Also the number of compositions of n with alternating sum k, with k ranging from -n to n in steps of 2. For example, row n = 6 counts the following compositions (empty column indicated by dot):
. (15) (24) (33) (42) (51) (6)
(141) (132) (123) (114)
(1113) (231) (222) (213)
(1212) (1122) (321) (312)
(1311) (1221) (1131) (411)
(2112) (2121)
(2211) (3111)
(11121) (11112)
(12111) (11211)
(111111) (21111)
The reverse-alternating version is the same. Counting compositions by all three parameters (sum, length, alternating sum) gives A345197. Compositions of 2n with alternating sum 2k with k ranging from -n + 1 to n are A034871. (End)
Also the convolution triangle of A000012. - Peter Luschny, Oct 07 2022
From Sergey Kitaev, Nov 18 2023: (Start)
Number of permutations of length n avoiding simultaneously the patterns 123 and 132 with k right-to-left maxima. A right-to-left maximum in a permutation a(1)a(2)...a(n) is position i such that a(j) < a(i) for all i < j.
Number of permutations of length n avoiding simultaneously the patterns 231 and 312 with k right-to-left minima (resp., left-to-right maxima). A right-to-left minimum (resp., left-to-right maximum) in a permutation a(1)a(2)...a(n) is position i such that a(j) > a(i) for all j > i (resp., a(j) < a(i) for all j < i).
Number of permutations of length n avoiding simultaneously the patterns 213 and 312 with k right-to-left maxima (resp., left-to-right maxima).
Number of permutations of length n avoiding simultaneously the patterns 213 and 231 with k right-to-left maxima (resp., right-to-left minima). (End)

Examples

			G.f. = 1 + x * (x + x^3 * (1 + x) + x^6 * (1 + x)^2 + x^10 * (1 + x)^3 + ...). - _Michael Somos_, Aug 20 2006
The triangle T(n, k) begins:
n\k  0 1 2  3  4   5   6  7  8 9 10 ...
0:   1
1:   0 1
2:   0 1 1
3:   0 1 2  1
4:   0 1 3  3  1
5:   0 1 4  6  4   1
6:   0 1 5 10 10   5   1
7:   0 1 6 15 20  15   6  1
8:   0 1 7 21 35  35  21  7  1
9:   0 1 8 28 56  70  56 28  8 1
10:  0 1 9 36 84 126 126 84 36 9  1
... reformatted _Wolfdieter Lang_, Jul 31 2017
From _Paul Weisenhorn_, Feb 09 2011: (Start)
T(r=5,c=3) = binomial(4,2) = 6 unordered partitions of the number n = r*(r+1)/2+c = 18 with (r+1)=6 summands: (5+5+4+2+1+1), (5+5+3+3+1+1), (5+4+4+3+1+1), (5+5+3+2+2+1), (5+4+4+2+2+1), (5+4+3+3+2+1).
T(r=5,c=3) = binomial(4,2) = 6 unordered partitions of the number n = r*(r+1)/2+(c-1) = 17 with r=5 summands: (5+5+4+2+1), (5+5+3+3+1), (5+5+3+2+2), (5+4+4+3+1), (5+4+4+2+2), (5+4+3+3+2).  (End)
From _James East_, Apr 11 2014: (Start)
a(0,0)=1 since there is a unique (order-preserving) function {}->{}.
a(m,0)=0 for m>0 since there is no function from a nonempty set to the empty set.
a(3,2)=4 because there are four order-preserving functions {1,2,3}->{1,2}: these are [1,1,1], [2,2,2], [1,1,2], [1,2,2]. Here f=[a,b,c] denotes the function defined by f(1)=a, f(2)=b, f(3)=c.
a(2,3)=6 because there are six order-preserving functions {1,2}->{1,2,3}: these are [1,1], [1,2], [1,3], [2,2], [2,3], [3,3].
(End)
		

References

  • D. E. Knuth, The Art of Computer Programming, vol. 4A, Combinatorial Algorithms, Part 1, Section 7.2.1.3, 2011.

Crossrefs

Case m=0 of the polynomials defined in A278073.
Cf. A000012 (diagonal), A011782 (row sums), A088218 (central terms).
The terms just left of center in odd-indexed rows are A001791, even A002054.
The odd-indexed rows are A034871.
Row sums without the center are A058622.
The unordered version is A072233, without zeros A008284.
Right half without center has row sums A027306(n-1).
Right half with center has row sums A116406(n).
Left half without center has row sums A294175(n-1).
Left half with center has row sums A058622(n-1).
A025047 counts alternating compositions.
A098124 counts balanced compositions, unordered A047993.
A106356 counts compositions by number of maximal anti-runs.
A344651 counts partitions by sum and alternating sum.
A345197 counts compositions by sum, length, and alternating sum.

Programs

  • Maple
    b:= proc(n, i, p) option remember; `if`(n=0, p!, `if`(i<1, 0,
          expand(add(b(n-i*j, i-1, p+j)/j!*x^j, j=0..n/i))))
        end:
    T:= n-> (p-> seq(coeff(p, x, i), i=0..degree(p)))(b(n$2, 0)):
    seq(T(n), n=0..20);  # Alois P. Heinz, May 25 2014
    # Alternatively:
    T := proc(k,n) option remember;
    if k=n then 1 elif k=0 then 0 else
    add(T(k-1,n-i), i=1..n-k+1) fi end:
    A097805 := (n,k) -> T(k,n):
    for n from 0 to 12 do seq(A097805(n,k), k=0..n) od; # Peter Luschny, Mar 12 2016
    # Uses function PMatrix from A357368.
    PMatrix(10, n -> 1);  # Peter Luschny, Oct 07 2022
  • Mathematica
    T[0, 0] = 1; T[n_, k_] := Binomial[n-1, k-1]; Table[T[n, k], {n, 0, 12}, {k, 0, n}] // Flatten (* Jean-François Alcover, Sep 03 2014, after Paul Weisenhorn *)
    Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Length[#]==k&]],{n,0,10},{k,0,n}] (* Gus Wiseman, Jan 23 2022 *)
  • PARI
    {a(n) = my(m); if( n<2, n==0, n--; m = (sqrtint(8*n + 1) - 1)\2; binomial(m-1, n - m*(m + 1)/2))}; /* Michael Somos, Aug 20 2006 */
    
  • PARI
    T(n,k) = if (k==0, 0^n, binomial(n-1, k-1)); \\ Michel Marcus, May 06 2022
    
  • PARI
    row(n) = vector(n+1, k, k--; if (k==0, 0^n, binomial(n-1, k-1))); \\ Michel Marcus, May 06 2022
    
  • Python
    from math import comb
    def T(n, k): return comb(n-1, k-1) if k != 0 else k**n  # Peter Luschny, May 06 2022
  • Sage
    # Illustrates a basic partition formula, is not efficient as a program for large n.
    def A097805_row(n):
        r = []
        for k in (0..n):
            s = 0
            for q in Partitions(n, max_part=k, inner=[k]):
                s += mul(binomial(q[j],q[j+1]) for j in range(len(q)-1))
            r.append(s)
        return r
    [A097805_row(n) for n in (0..9)] # Peter Luschny, Jul 13 2015
    

Formula

Number triangle T(n, k) defined by T(n,k) = Sum_{j=0..n} binomial(n, j)*if(k<=j, (-1)^(j-k), 0).
T(r,c) = binomial(r-1,c-1), 0 <= c <= r. - Paul Weisenhorn, Feb 09 2011
G.f.: (-1+x)/(-1+x+x*y). - R. J. Mathar, Aug 11 2015
a(0,0) = 1, a(n,k) = binomial(n-1,n-k) = binomial(n-1,k-1) Juergen Will, Jan 04 2016
G.f.: (x^1 + x^2 + x^3 + ...)^k = (x/(1-x))^k. - Juergen Will, Jan 04 2016
From Tom Copeland, Nov 15 2016: (Start)
E.g.f.: 1 + x*[e^((x+1)t)-1]/(x+1).
This padded Pascal matrix with the odd columns negated is NpdP = M*S = S^(-1)*M^(-1) = S^(-1)*M, where M(n,k) = (-1)^n A130595(n,k), the inverse Pascal matrix with the odd rows negated, S is the summation matrix A000012, the lower triangular matrix with all elements unity, and S^(-1) = A167374, a finite difference matrix. NpdP is self-inverse, i.e., (M*S)^2 = the identity matrix, and has the e.g.f. 1 - x*[e^((1-x)t)-1]/(1-x).
M = NpdP*S^(-1) follows from the well-known recursion property of the Pascal matrix, implying NpdP = M*S.
The self-inverse property of -NpdP is implied by the self-inverse relation of its embedded signed Pascal submatrix M (cf. A130595). Also see A118800 for another proof.
Let P^(-1) be A130595, the inverse Pascal matrix. Then T = A200139*P^(-1) and T^(-1) = padded P^(-1) = P*A097808*P^(-1). (End)
The center (n>0) is T(2n+1,n+1) = A000984(n) = 2*A001700(n-1) = 2*A088218(n) = A126869(2n) = 2*A138364(2n-1). - Gus Wiseman, Jan 25 2022

Extensions

Corrected by Philippe Deléham, Oct 05 2005
New name using classical terminology by Peter Luschny, Feb 05 2019

A131689 Triangle of numbers T(n,k) = k!*Stirling2(n,k) = A000142(k)*A048993(n,k) read by rows, T(n, k) for 0 <= k <= n.

Original entry on oeis.org

1, 0, 1, 0, 1, 2, 0, 1, 6, 6, 0, 1, 14, 36, 24, 0, 1, 30, 150, 240, 120, 0, 1, 62, 540, 1560, 1800, 720, 0, 1, 126, 1806, 8400, 16800, 15120, 5040, 0, 1, 254, 5796, 40824, 126000, 191520, 141120, 40320, 0, 1, 510, 18150, 186480, 834120, 1905120, 2328480, 1451520, 362880
Offset: 0

Author

Philippe Deléham, Sep 14 2007

Keywords

Comments

Triangle T(n,k), 0 <= k <= n, read by rows given by [0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,...] DELTA [1,1,2,2,3,3,4,4,5,5,6,6,...] where DELTA is the operator defined in A084938; another version of A019538.
See also A019538: version with n > 0 and k > 0. - Philippe Deléham, Nov 03 2008
From Peter Bala, Jul 21 2014: (Start)
T(n,k) gives the number of (k-1)-dimensional faces in the interior of the first barycentric subdivision of the standard (n-1)-dimensional simplex. For example, the barycentric subdivision of the 1-simplex is o--o--o, with 1 interior vertex and 2 interior edges, giving T(2,1) = 1 and T(2,2) = 2.
This triangle is used when calculating the face vectors of the barycentric subdivision of a simplicial complex. Let S be an n-dimensional simplicial complex and write f_k for the number of k-dimensional faces of S, with the usual convention that f_(-1) = 1, so that F := (f_(-1), f_0, f_1,...,f_n) is the f-vector of S. If M(n) denotes the square matrix formed from the first n+1 rows and n+1 columns of the present triangle, then the vector F*M(n) is the f-vector of the first barycentric subdivision of the simplicial complex S (Brenti and Welker, Lemma 2.1). For example, the rows of Pascal's triangle A007318 (but with row and column indexing starting at -1) are the f-vectors for the standard n-simplexes. It follows that A007318*A131689, which equals A028246, is the array of f-vectors of the first barycentric subdivision of standard n-simplexes. (End)
This triangle T(n, k) appears in the o.g.f. G(n, x) = Sum_{m>=0} S(n, m)*x^m with S(n, m) = Sum_{j=0..m} j^n for n >= 1 as G(n, x) = Sum_{k=1..n} (x^k/(1 - x)^(k+2))*T(n, k). See also the Eulerian triangle A008292 with a Mar 31 2017 comment for a rewritten form. For the e.g.f. see A028246 with a Mar 13 2017 comment. - Wolfdieter Lang, Mar 31 2017
T(n,k) = the number of alignments of length k of n strings each of length 1. See Slowinski. An example is given below. Cf. A122193 (alignments of strings of length 2) and A299041 (alignments of strings of length 3). - Peter Bala, Feb 04 2018
The row polynomials R(n,x) are the Fubini polynomials. - Emanuele Munarini, Dec 05 2020
From Gus Wiseman, Feb 18 2022: (Start)
Also the number of patterns of length n with k distinct parts (or with maximum part k), where we define a pattern to be a finite sequence covering an initial interval of positive integers. For example, row n = 3 counts the following patterns:
(1,1,1) (1,2,2) (1,2,3)
(2,1,2) (1,3,2)
(2,2,1) (2,1,3)
(1,1,2) (2,3,1)
(1,2,1) (3,1,2)
(2,1,1) (3,2,1)
(End)
Regard A048994 as a lower-triangular matrix and divide each term A048994(n,k) by n!, then this is the matrix inverse. Because Sum_{k=0..n} (A048994(n,k) * x^n / n!) = A007318(x,n), Sum_{k=0..n} (A131689(n,k) * A007318(x,k)) = x^n. - Natalia L. Skirrow, Mar 23 2023
T(n,k) is the number of ordered partitions of [n] into k blocks. - Alois P. Heinz, Feb 21 2025

Examples

			The triangle T(n,k) begins:
  n\k 0 1    2     3      4       5        6        7        8        9      10 ...
  0:  1
  1:  0 1
  2:  0 1    2
  3:  0 1    6     6
  4:  0 1   14    36     24
  5:  0 1   30   150    240     120
  6:  0 1   62   540   1560    1800      720
  7:  0 1  126  1806   8400   16800    15120     5040
  8:  0 1  254  5796  40824  126000   191520   141120    40320
  9:  0 1  510 18150 186480  834120  1905120  2328480  1451520   362880
  10: 0 1 1022 55980 818520 5103000 16435440 29635200 30240000 16329600 3628800
  ... reformatted and extended. - _Wolfdieter Lang_, Mar 31 2017
From _Peter Bala_, Feb 04 2018: (Start)
T(4,2) = 14 alignments of length 2 of 4 strings of length 1. Examples include
  (i) A -    (ii) A -    (iii) A -
      B -         B -          - B
      C -         - C          - C
      - D         - D          - D
There are C(4,1) = 4 alignments of type (i) with a single gap character - in column 1, C(4,2) = 6 alignments of type (ii) with two gap characters in column 1 and C(4,3) = 4 alignments of type (iii) with three gap characters in column 1, giving a total of 4 + 6 + 4 = 14 alignments. (End)
		

Crossrefs

Case m=1 of the polynomials defined in A278073.
Cf. A000142 (diagonal), A000670 (row sums), A000012 (alternating row sums), A210029 (central terms).
Cf. A008292, A028246 (o.g.f. and e.g.f. of sums of powers).
A version for partitions is A116608, or by maximum A008284.
A version for compositions is A235998, or by maximum A048004.
Classes of patterns:
- A000142 = strict
- A005649 = anti-run, complement A069321
- A019536 = necklace
- A032011 = distinct multiplicities
- A060223 = Lyndon
- A226316 = (1,2,3)-avoiding, weakly A052709, complement A335515
- A296975 = aperiodic
- A345194 = alternating, up/down A350354, complement A350252
- A349058 = weakly alternating
- A351200 = distinct runs
- A351292 = distinct run-lengths

Programs

  • Julia
    function T(n, k)
        if k < 0 || k > n return 0 end
        if n == 0 && k == 0 return 1 end
        k*(T(n-1, k-1) + T(n-1, k))
    end
    for n in 0:7
        println([T(n, k) for k in 0:n])
    end
    # Peter Luschny, Mar 26 2020
    
  • Maple
    A131689 := (n,k) -> Stirling2(n,k)*k!: # Peter Luschny, Sep 17 2011
    # Alternatively:
    A131689_row := proc(n) 1/(1-t*(exp(x)-1)); expand(series(%,x,n+1)); n!*coeff(%,x,n); PolynomialTools:-CoefficientList(%,t) end:
    for n from 0 to 9 do A131689_row(n) od; # Peter Luschny, Jan 23 2017
  • Mathematica
    t[n_, k_] := k!*StirlingS2[n, k]; Table[t[n, k], {n, 0, 9}, {k, 0, n}] // Flatten (* Jean-François Alcover, Feb 25 2014 *)
    T[n_, k_] := If[n <= 0 || k <= 0, Boole[n == 0 && k == 0], Sum[(-1)^(i + k) Binomial[k, i] i^(n + k), {i, 0, k}]]; (* Michael Somos, Jul 08 2018 *)
  • PARI
    {T(n, k) = if( n<0, 0, sum(i=0, k, (-1)^(k + i) * binomial(k, i) * i^n))};
    /* Michael Somos, Jul 08 2018 */
    
  • SageMath
    @cached_function
    def F(n): # Fubini polynomial
        R. = PolynomialRing(ZZ)
        if n == 0: return R(1)
        return R(sum(binomial(n, k)*F(n - k)*x for k in (1..n)))
    for n in (0..9): print(F(n).list()) # Peter Luschny, May 21 2021

Formula

T(n,k) = k*(T(n-1,k-1) + T(n-1,k)) with T(0,0)=1. Sum_{k=0..n} T(n,k)*x^k = (-1)^n*A000629(n), A033999(n), A000007(n), A000670(n), A004123(n+1), A032033(n), A094417(n), A094418(n), A094419(n) for x = -2, -1, 0, 1, 2, 3, 4, 5, 6 respectively. [corrected by Philippe Deléham, Feb 11 2013]
Sum_{k=0..n} T(n,k)*x^(n-k) = A000012(n), A000142(n), A000670(n), A122704(n) for x=-1, 0, 1, 2 respectively. - Philippe Deléham, Oct 09 2007
Sum_{k=0..n} (-1)^k*T(n,k)/(k+1) = Bernoulli numbers A027641(n)/A027642(n). - Peter Luschny, Sep 17 2011
G.f.: F(x,t) = 1 + x*t + (x+x^2)*t^2/2! + (x+6*x^2+6*x^3)*t^3/3! + ... = Sum_{n>=0} R(n,x)*t^n/n!.
The row polynomials R(n,x) satisfy the recursion R(n+1,x) = (x+x^2)*R'(n,x) + x*R(n,x) where ' indicates differentiation with respect to x. - Philippe Deléham, Feb 11 2013
T(n,k) = [t^k] (n! [x^n] (1/(1-t*(exp(x)-1)))). - Peter Luschny, Jan 23 2017
The n-th row polynomial has the form x o x o ... o x (n factors), where o denotes the black diamond multiplication operator of Dukes and White. See also Bala, Example E8. - Peter Bala, Jan 08 2018

A241171 Triangle read by rows: Joffe's central differences of zero, T(n,k), 1 <= k <= n.

Original entry on oeis.org

1, 1, 6, 1, 30, 90, 1, 126, 1260, 2520, 1, 510, 13230, 75600, 113400, 1, 2046, 126720, 1580040, 6237000, 7484400, 1, 8190, 1171170, 28828800, 227026800, 681080400, 681080400, 1, 32766, 10663380, 494053560, 6972966000, 39502663200, 95351256000, 81729648000, 1, 131070, 96461910, 8203431600, 196556560200, 1882311631200, 8266953895200, 16672848192000, 12504636144000
Offset: 1

Author

N. J. A. Sloane, Apr 22 2014

Keywords

Comments

T(n,k) gives the number of ordered set partitions of the set {1,2,...,2*n} into k even sized blocks. An example is given below. Cf. A019538 and A156289. - Peter Bala, Aug 20 2014

Examples

			Triangle begins:
1,
1, 6,
1, 30, 90,
1, 126, 1260, 2520,
1, 510, 13230, 75600, 113400,
1, 2046, 126720, 1580040, 6237000, 7484400,
1, 8190, 1171170, 28828800, 227026800, 681080400, 681080400,
1, 32766, 10663380, 494053560, 6972966000, 39502663200, 95351256000, 81729648000,
...
From _Peter Bala_, Aug 20 2014: (Start)
Row 2: [1,6]
k  Ordered set partitions of {1,2,3,4} into k blocks    Number
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1   {1,2,3,4}                                             1
2   {1,2}{3,4}, {3,4}{1,2}, {1,3}{2,4}, {2,4}{1,3},       6
    {1,4}{2,3}, {2,3}{1,4}
(End)
		

References

  • H. T. Davis, Tables of the Mathematical Functions. Vols. 1 and 2, 2nd ed., 1963, Vol. 3 (with V. J. Fisher), 1962; Principia Press of Trinity Univ., San Antonio, TX, Vol. 2, p. 283.
  • S. A. Joffe, Calculation of the first thirty-two Eulerian numbers from central differences of zero, Quart. J. Pure Appl. Math. 47 (1914), 103-126.
  • S. A. Joffe, Calculation of eighteen more, fifty in all, Eulerian numbers from central differences of zero, Quart. J. Pure Appl. Math. 48 (1917-1920), 193-271.

Crossrefs

Case m=2 of the polynomials defined in A278073.
Cf. A000680 (diagonal), A094088 (row sums), A000364 (alternating row sums), A281478 (central terms), A327022 (refinement).
Diagonals give A002446, A213455, A241172, A002456.

Programs

  • GAP
    Flat(List([1..10],n->List([1..n],k->1/(2^(k-1))*Sum([1..k],j->(-1)^(k-j)*Binomial(2*k,k-j)*j^(2*n))))); # Muniru A Asiru, Feb 27 2019
  • Maple
    T := proc(n,k) option remember;
    if k > n then 0
    elif k=0 then k^n
    elif k=1 then 1
    else k*(2*k-1)*T(n-1,k-1)+k^2*T(n-1,k); fi;
    end: # Minor edit to make it also work in the (0,0)-offset case. Peter Luschny, Sep 03 2022
    for n from 1 to 12 do lprint([seq(T(n,k), k=1..n)]); od:
  • Mathematica
    T[n_, k_] /; 1 <= k <= n := T[n, k] = k(2k-1) T[n-1, k-1] + k^2 T[n-1, k]; T[, 1] = 1; T[, ] = 0; Table[T[n, k], {n, 1, 9}, {k, 1, n}] (* _Jean-François Alcover, Jul 03 2019 *)
  • Sage
    @cached_function
    def A241171(n, k):
        if n == 0 and k == 0: return 1
        if k < 0 or k > n: return 0
        return (2*k^2 - k)*A241171(n - 1, k - 1) + k^2*A241171(n - 1, k)
    for n in (1..6): print([A241171(n, k) for k in (1..n)]) # Peter Luschny, Sep 06 2017
    

Formula

T(n,k) = 0 if k <= 0 or k > n, = 1 if k=1, otherwise T(n,k) = k*(2*k-1)*T(n-1,k-1) + k^2*T(n-1,k).
Related to Euler numbers A000364 by A000364(n) = (-1)^n*Sum_{k=1..n} (-1)^k*T(n,k). For example, A000364(3) = 61 = 90 - 30 + 1.
From Peter Bala, Aug 20 2014: (Start)
T(n,k) = 1/(2^(k-1))*Sum_{j = 1..k} (-1)^(k-j)*binomial(2*k,k-j)*j^(2*n).
T(n,k) = k!*A156289(n,k) = k!*(2*k-1)!!*A036969.
E.g.f.: A(t,z) := 1/( 1 - t*(cosh(z) - 1) ) = 1 + t*z^2/2! + (t + 6*t^2)*z^4/4! + (t + 30*t^2 + 90*t^3)*z^6/6! + ... satisfies the partial differential equation d^2/dz^2(A) = D(A), where D = t^2*(2*t + 1)*d^2/dt^2 + t*(5*t + 1)*d/dt + t.
Hence the row polynomials R(n,t) satisfy the differential equation R(n+1,t) = t^2*(2*t + 1)*R''(n,t) + t*(5*t + 1)*R'(n,t) + t*R(n,t) with R(0,t) = 1, where ' indicates differentiation w.r.t. t. This is equivalent to the above recurrence equation.
Recurrence for row polynomials: R(n,t) = t*( Sum_{k = 1..n} binomial(2*n,2*k)*R(n-k,t) ) with R(0,t) := 1.
Row sums equal A094088(n) for n >= 1.
A100872(n) = (1/2)*R(n,2). (End)

A002115 Generalized Euler numbers.

Original entry on oeis.org

1, 1, 19, 1513, 315523, 136085041, 105261234643, 132705221399353, 254604707462013571, 705927677520644167681, 2716778010767155313771539, 14050650308943101316593590153, 95096065132610734223282520762883, 823813936407337360148622860507620561
Offset: 0

Keywords

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).

Crossrefs

Programs

  • Maple
    b:= proc(u, o, t) option remember; `if`(u+o=0, 1, `if`(t=0,
           add(b(u-j, o+j-1, irem(t+1, 3)), j=1..u),
           add(b(u+j-1, o-j, irem(t+1, 3)), j=1..o)))
        end:
    a:= n-> b(3*n, 0$2):
    seq(a(n), n=0..17);  # Alois P. Heinz, Aug 12 2019
    # Alternative:
    h := 1 / hypergeom([], [1/3, 2/3], (-x/3)^3): ser := series(h, x, 40):
    seq((3*n)! * coeff(ser, x, 3*n), n = 0..13); # Peter Luschny, Mar 13 2023
  • Mathematica
    max = 12; f[x_] := 1/(1/3*Exp[-x^(1/3)] + 2/3*Exp[1/2*x^(1/3)]*Cos[1/2*3^(1/2)* x^(1/3)]); CoefficientList[Series[f[x], {x, 0, max}], x]*(3 Range[0, max])! (* Jean-François Alcover, Sep 16 2013, after Vladeta Jovovic *)

Formula

E.g.f.: Sum_{n >= 0} a(n)*x^n/(3*n)! = 1/((1/3)*exp(-x^(1/3)) + (2/3)*exp((1/2)*x^(1/3))*cos((1/2)*3^(1/2)*x^(1/3))). - Vladeta Jovovic, Feb 13 2005
E.g.f.: 1/U(0) where U(k) = 1 - x/(6*(6*k+1)*(3*k+1)*(2*k+1) - 6*x*(6*k+1)*(3*k+1)*(2*k+1)/(x - 12*(6*k+5)*(3*k+2)*(k+1)/U(k+1))); (continued fraction). - Sergei N. Gladkovskii, Oct 04 2012
Alternating row sums of A278073. - Peter Luschny, Sep 07 2017
a(n) = A178963(3n). - Alois P. Heinz, Aug 12 2019
a(0) = 1; a(n) = Sum_{k=1..n} (-1)^(k+1) * binomial(3*n,3*k) * a(n-k). - Ilya Gutkovskiy, Jan 27 2020
a(n) = (3*n)! * [x^(3*n)] hypergeom([], [1/3, 2/3], (-x/3)^3)^(-1). - Peter Luschny, Mar 13 2023

Extensions

More terms from Vladeta Jovovic, Feb 13 2005

A278074 Triangle read by rows, coefficients of the polynomials P(m, n) = Sum_{k=1..n} binomial(m*n, m*k)* P(m, n-k)*z with P(m, 0) = 1 and m = 4.

Original entry on oeis.org

1, 0, 1, 0, 1, 70, 0, 1, 990, 34650, 0, 1, 16510, 2702700, 63063000, 0, 1, 261630, 213519150, 17459442000, 305540235000, 0, 1, 4196350, 17651304000, 4350310965000, 231905038365000, 3246670537110000
Offset: 0

Author

Peter Luschny, Jan 22 2017

Keywords

Examples

			Triangle starts:
[1]
[0, 1]
[0, 1,     70]
[0, 1,    990,     34650]
[0, 1,  16510,   2702700,    63063000]
[0, 1, 261630, 213519150, 17459442000, 305540235000]
		

Crossrefs

Cf. A014608 (diagonal), A243665 (row sums), A211212 (alternating row sums), A281480 (central coefficients).
Cf. A097805 (m=0), A131689 (m=1), A241171 (m=2), A278073 (m=3).
Cf. A327024 (refinement).

Programs

  • Maple
    P := proc(m,n) option remember; if n = 0 then 1 else
    add(binomial(m*n,m*k)* P(m,n-k)*x, k=1..n) fi end:
    for n from 0 to 6 do PolynomialTools:-CoefficientList(P(4,n), x) od;
    # Alternatively:
    A278074_row := proc(n) 1/(1-t*((cosh(x)+cos(x))/2-1)); expand(series(%,x,4*n+1));
    (4*n)!*coeff(%,x,4*n); PolynomialTools:-CoefficientList(%,t) end:
    for n from 0 to 5 do A278074_row(n) od;
  • Mathematica
    With[{m = 4}, Table[Expand[j!*SeriesCoefficient[1/(1 - t*(MittagLefflerE[m, x^m] - 1)), {x, 0, j}]], {j, 0, 24, m}]];
    Function[arg, CoefficientList[arg, t]] /@ % // Flatten
  • Sage
    # uses [P from A278073]
    def A278074_row(n): return list(P(4, n))
    for n in (0..6): print(A278074_row(n)) # Peter Luschny, Mar 24 2020

Formula

E.g.f.: 1/(1-t*((cosh(x)+cos(x))/2-1)), nonzero terms.

A281478 Central coefficients of Joffe's central differences of zero (assuming offset 0 and T(n,k) extended to 0 <= k <= n in A241171).

Original entry on oeis.org

1, 1, 126, 126720, 494053560, 5283068427000, 126301275727704000, 5896518025761483120000, 488276203972584492344880000, 66735969985432035804226510800000, 14236685931434801591697761172512160000, 4533351707244550464920840944132383960960000, 2077486542875366717627638783543223150778585600000
Offset: 0

Author

Peter Luschny, Jan 22 2017

Keywords

Comments

Also the central coefficients of the polynomials defined in A278073 for m = 2.

Crossrefs

Cf. Central coefficients: A088218 (m=0), A210029 (m=1), A281478 (m=2), A281479 (m=3), A281480 (m=4). Related triangles: A097805 (m=0), A131689 (m=1), A241171 (m=2), A278073 (m=3), A278074 (m=4).

Programs

  • Maple
    # Function P defined in A278073.
    A281479 := n -> coeff(P(2, 2*n), x, n): seq(A281479(n), n=0..9);

A281480 Central coefficients of the polynomials defined in A278074.

Original entry on oeis.org

1, 1, 16510, 17651304000, 286988816206755000, 35284812773848049161035000, 21735699944364325706210750640600000, 51125456932397825107093888817556205542000000, 378603085421985456745667562645258531056443927230000000, 7641597761030055776217194099395682779700673105680593973250000000
Offset: 0

Author

Peter Luschny, Jan 22 2017

Keywords

Crossrefs

Central coefficients: A088218 (m=0), A210029 (m=1), A281478 (m=2), A281479 (m=3), A281480 (m=4). Related triangles: A097805 (m=0), A131689 (m=1), A241171 (m=2), A278073 (m=3), A278074 (m=4).

Programs

A292604 Triangle read by rows, coefficients of generalized Eulerian polynomials F_{2}(x).

Original entry on oeis.org

1, 1, 0, 5, 1, 0, 61, 28, 1, 0, 1385, 1011, 123, 1, 0, 50521, 50666, 11706, 506, 1, 0, 2702765, 3448901, 1212146, 118546, 2041, 1, 0, 199360981, 308869464, 147485535, 24226000, 1130235, 8184, 1, 0
Offset: 0

Author

Peter Luschny, Sep 20 2017

Keywords

Comments

The generalized Eulerian polynomials F_{m}(x) are defined F_{m; 0}(x) = 1 for all m >= 0 and for n > 0:
F_{0; n}(x) = Sum_{k=0..n} A097805(n, k)*(x-1)^(n-k) with coeffs. in A129186.
F_{1; n}(x) = Sum_{k=0..n} A131689(n, k)*(x-1)^(n-k) with coeffs. in A173018.
F_{2; n}(x) = Sum_{k=0..n} A241171(n, k)*(x-1)^(n-k) with coeffs. in A292604.
F_{3; n}(x) = Sum_{k=0..n} A278073(n, k)*(x-1)^(n-k) with coeffs. in A292605.
F_{4; n}(x) = Sum_{k=0..n} A278074(n, k)*(x-1)^(n-k) with coeffs. in A292606.
The case m = 1 are the Eulerian polynomials whose coefficients are the Eulerian numbers which are displayed in Euler's triangle A173018.
Evaluated at x in {-1, 1, 0} these families of polynomials give for the first few m:
F_{m} : F_{0} F_{1} F_{2} F_{3} F_{4}
x = 1: A000012 A000142 A000680 A014606 A014608 ... (m*n)!/m!^n
x = 0: -- A000012 A000364 A002115 A211212 ... m-alternating permutations of length m*n.
Note that the constant terms of the polynomials are the generalized Euler numbers as defined in A181985. In this sense generalized Euler numbers are also generalized Eulerian numbers.

Examples

			Triangle starts:
[n\k][    0        1        2       3     4  5  6]
--------------------------------------------------
[0][      1]
[1][      1,       0]
[2][      5,       1,       0]
[3][     61,      28,       1,      0]
[4][   1385,    1011,     123,      1,    0]
[5][  50521,   50666,   11706,    506,    1, 0]
[6][2702765, 3448901, 1212146, 118546, 2041, 1, 0]
		

References

  • G. Frobenius. Über die Bernoullischen Zahlen und die Eulerschen Polynome. Sitzungsber. Preuss. Akad. Wiss. Berlin, pages 200-208, 1910.

Crossrefs

F_{0} = A129186, F_{1} = A173018, F_{2} is this triangle, F_{3} = A292605, F_{4} = A292606.
First column: A000364. Row sums: A000680. Alternating row sums: A002105.

Programs

  • Maple
    Coeffs := f -> PolynomialTools:-CoefficientList(expand(f), x):
    A292604_row := proc(n) if n = 0 then return [1] fi;
    add(A241171(n, k)*(x-1)^(n-k), k=0..n); [op(Coeffs(%)), 0] end:
    for n from 0 to 6 do A292604_row(n) od;
  • Mathematica
    T[n_, k_] /; 1 <= k <= n := T[n, k] = k (2 k - 1) T[n - 1, k - 1] + k^2 T[n - 1, k]; T[, 1] = 1; T[, _] = 0;
    F[2, 0][] = 1; F[2, n][x_] := Sum[T[n, k] (x - 1)^(n - k), {k, 0, n}];
    row[n_] := If[n == 0, {1}, Append[CoefficientList[ F[2, n][x], x], 0]];
    Table[row[n], {n, 0, 7}] (* Jean-François Alcover, Jul 06 2019 *)
  • Sage
    def A292604_row(n):
        if n == 0: return [1]
        S = sum(A241171(n, k)*(x-1)^(n-k) for k in (0..n))
        return expand(S).list() + [0]
    for n in (0..6): print(A292604_row(n))

Formula

F_{2; n}(x) = Sum_{k=0..n} A241171(n, k)*(x-1)^(n-k) for n>0 and F_{2; 0}(x) = 1.

A362586 Triangle read by rows, T(n, k) = A094088(n) * binomial(n, k).

Original entry on oeis.org

1, 1, 1, 7, 14, 7, 121, 363, 363, 121, 3907, 15628, 23442, 15628, 3907, 202741, 1013705, 2027410, 2027410, 1013705, 202741, 15430207, 92581242, 231453105, 308604140, 231453105, 92581242, 15430207, 1619195761, 11334370327, 34003110981, 56671851635, 56671851635, 34003110981, 11334370327, 1619195761
Offset: 0

Author

Peter Luschny, Apr 26 2023

Keywords

Examples

			[0]      1;
[1]      1,       1;
[2]      7,      14,       7;
[3]    121,     363,     363,     121;
[4]   3907,   15628,   23442,   15628,    3907;
[5] 202741, 1013705, 2027410, 2027410, 1013705, 202741;
		

Crossrefs

Family of triangles: A055372 (m=0, Pascal), A362585 (m=1, Fubini), this sequence (m=2, Joffe), A362849 (m=3, A278073).
Cf. A094088 (column 0 and main diagonal), A362587 (row sums).

Programs

  • SageMath
    # uses[TransOrdPart from A362585]
    def A362586(n) -> list[int]: return TransOrdPart(2, n)
    for n in range(6): print(A362586(n))
Showing 1-10 of 18 results. Next