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 11-20 of 59 results. Next

A051836 a(n) = n*(n+1)*(n+2)*(n+3)*(3*n+2)/120.

Original entry on oeis.org

0, 1, 8, 33, 98, 238, 504, 966, 1716, 2871, 4576, 7007, 10374, 14924, 20944, 28764, 38760, 51357, 67032, 86317, 109802, 138138, 172040, 212290, 259740, 315315, 380016, 454923, 541198, 640088, 752928, 881144, 1026256, 1189881, 1373736, 1579641, 1809522, 2065414
Offset: 0

Views

Author

Barry E. Williams, Dec 12 1999

Keywords

Comments

5-dimensional version of pentagonal-based pyramidal numbers. - Ben Creech (mathroxmysox(AT)yahoo.com)
If Y is a 3-subset of an n-set X then, for n>=7, a(n-6) is the number of 7-subsets of X having at least two elements in common with Y. - Milan Janjic, Nov 23 2007
Antidiagonal sums of the convolution array A213548. - Clark Kimberling, Jun 17 2012
After 0, convolution of nonzero triangular numbers (A000217) and nonzero pentagonal numbers (A000326). - Bruno Berselli, Jun 27 2013
a(n) is also the number of odd chordless cycles in the graph complement of the (n+1)-Andrásfai graph. - Eric W. Weisstein, Apr 14 2017

Examples

			By the fourth comment: A000217(1..6) and A000326(1..6) give the term a(6) = 1*21+5*15+12*10+22*6+35*3+51*1 = 504. - _Bruno Berselli_, Jun 27 2013
		

References

  • Albert H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 194-196.
  • Herbert John Ryser, Combinatorial Mathematics, "The Carus Mathematical Monographs", No. 14, John Wiley and Sons, 1963, pp. 1-8.

Crossrefs

Partial sums of A001296.
Cf. A093560 ((3, 1) Pascal, column m=5).

Programs

  • Magma
    [0] cat [Binomial(n+4, n)*(3*n+5)/5: n in [0..40]]; // Vincenzo Librandi, Jul 04 2017
    
  • Maple
    with (combinat):a[0]:=0:for n from 1 to 50 do a[n]:=stirling2(n+2,n)+a[n-1] od: seq(a[n], n=0..34); # Zerinvary Lajos, Mar 17 2008
  • Mathematica
    Table[n(n + 1)(n + 2)(n + 3)(3n + 2)/120, {n, 0, 60}] (* Vladimir Joseph Stephan Orlovsky, Apr 08 2011 *)
    CoefficientList[Series[x (1 + 2 x) / (1 - x)^6, {x, 0, 33}], x] (* Vincenzo Librandi, Jul 04 2017 *)
    LinearRecurrence[{6,-15,20,-15,6,-1},{0,1,8,33,98,238},40] (* Harvey P. Dale, Jun 01 2018 *)
  • PARI
    a(n)=n*(n+1)*(n+2)*(n+3)*(3*n+2)/120 \\ Charles R Greathouse IV, Oct 07 2015
    
  • SageMath
    [((3*n+2)/(n+4))*binomial(n+4,5) for n in range(41)] # G. C. Greubel, Dec 27 2023

Formula

a(n) = C(n+4, n)*(3n+5)/5.
G.f.: x*(1+2*x)/(1-x)^6. (adapted by Vincenzo Librandi, Jul 04 2017)
From Amiram Eldar, Feb 15 2022: (Start)
Sum_{n>=1} 1/a(n) = 135*sqrt(3)*Pi/14 - 1215*log(3)/14 + 925/21.
Sum_{n>=1} (-1)^(n+1)/a(n) = 135*sqrt(3)*Pi/7 - 880*log(2)/7 - 355/21. (End)
E.g.f.: (1/5!)*x*(120 + 360*x + 240*x^2 + 50*x^3 + 3*x^4)*exp(x). - G. C. Greubel, Dec 27 2023

Extensions

Simpler definition from Ben Creech (mathroxmysox(AT)yahoo.com), Nov 13 2005

A094262 Triangle read by rows: T(n,k) is the number of rooted trees with k nodes which are disjoint sets of labels with union {1..n}. If a node has an empty set of labels then it must have at least two children.

Original entry on oeis.org

1, 1, 2, 1, 1, 6, 12, 10, 3, 1, 14, 61, 124, 131, 70, 15, 1, 30, 240, 890, 1830, 2226, 1600, 630, 105, 1, 62, 841, 5060, 16990, 35216, 47062, 40796, 22225, 6930, 945, 1, 126, 2772, 25410, 127953, 401436, 836976, 1196532, 1182195, 795718, 349020, 90090, 10395
Offset: 1

Views

Author

André F. Labossière, Jun 01 2004

Keywords

Comments

The original name for this sequence was "Triangle read by rows giving the coefficients of formulas generating each variety of S2(n,k) (Stirling numbers of 2nd kind). The p-th row (p>=1) contains T(i,p) for i=1 to 2*p-1, where T(i,p) satisfies Sum_{i=1..2*p-1} T(i,p) * C(n-p,i-1)".
The terms of the n-th diagonal sequence of the triangle of Stirling numbers of the second kind A008277, i.e., (Stirling2(N + n - 1,N)), N>=1, are given by a polynomial in N of degree 2*n - 2. This polynomial may be expressed as a linear combination of the falling factorial polynomials binomial(N - n,0), binomial(N - n,1), ... , binomial(N - n,2*n - 2). This table gives the coefficients in these expansions.
The formulas obtained are those for Stirling2(N+1,N) (A000217), Stirling2(N+2,N) (A001296), Stirling2(N+3,N) (A001297), Stirling2(N+4,N) (A001298), Stirling2(N+5,N) (A112494), Stirling2(N+6,N) (A144969) and so on.

Examples

			Row 5 contains 1,30,240,890,1830,2226,1600,630,105, so the formula generating Stirling2(n+4,n) numbers (A001298) will be the following: 1 + 30*(n-5) + 240*C(n-5,2) + 890*C(n-5,3) + 1830*C(n-5,4) + 2226*C(n-5,5) + 1600*C(n-5,6) + 630*C(n-5,7) + 105*C(n-5,8). For example, taking n = 9 gives Stirling2(13,9) = 359502.
Triangle starts:
  1;
  1,  2,   1;
  1,  6,  12,  10,    3;
  1, 14,  61, 124,  131,   70,   15;
  1, 30, 240, 890, 1830, 2226, 1600, 630, 105;
  ...
From _Peter Bala_, Jun 14 2016: (Start)
Connection with row polynomials of A134991:
  R(2,z) = (1 + z)^2*z
  R(3,z) = (1 + z)^2*(z + 3*z^2)
  R(4,z) = (1 + z)^4*(z + 10*z^2 + 15*z^3)
  R(5,z) = (1 + z)^5*(z + 25*z^2 + 105*z^3 + 105*z^4). (End)
From _Andrew Howroyd_, Mar 28 2025: (Start)
The T(3,3) = 12 trees up to relabeling have one of the following 3 forms:
     {}         {1}        {1}
    /  \       /   \        |
  {1} {2,3}   {2}  {3}     {2}
                            |
                           {3}
(End)
		

Crossrefs

Programs

  • Maple
    row_poly := n -> (1+z)^(n+1)*add(z^k*add((-1)^(m+k)*binomial(n+k,n+m)*Stirling2(n+m,m), m=0..k), k=0..n): T_row := n -> seq(coeff(row_poly(n),z,j),j=1..2*n+1):
    seq(T_row(n),n=0..6); # Peter Luschny, Jun 15 2016
  • Mathematica
    Clear[T, q, u]; T[0] = q[1];T[n_] := Sum[m*(u^2*q[m] + 2*u*q[m+1] + q[m+2])*D[T[n-1], q[m]], {m, 1, 2*n+1}]; row[n_] := List @@ Expand[T[n-1]] /. {u -> 1, q[] -> 1}; Table[row[n], {n, 1, 7}] // Flatten (* _Jean-François Alcover, Jun 12 2015 *)
  • PARI
    T(n)={my(g=serreverse(log(((1+1/y)*x+1)/exp(x + O(x*x^n))))); [Vecrev(p/y) | p<-Vec(serlaplace(g))]}
    { my(A=T(5)); for(i=1, #A, print(A[i])) } \\ Andrew Howroyd, Mar 28 2025

Formula

Apparently, a raising operator for bivariate polynomials P(n,u,z) having these coefficients is R = (u+z)^2 * z * d/dz with P(0,u,z) = z. E.g., R P(1,u,z) = R^2 P(0,u,z) = R^2 z = u^4 z + 6 u^3 z^2 + 12 u^2 z^3 + 10 u z^4 + 3 z^5 = P(2,u,z). See the Kazarian link. - Tom Copeland, Jun 12 2015
Reverse polynomials seem to be generated by 1 + exp[t*(x+1+z)^2*(1+z)d/dz]z evaluated at z = 0. - Tom Copeland, Jun 13 2015
From Peter Bala, Jun 14 2016: (Start)
T(n,k) = k*T(n,k) + 2*(k - 1)*T(n,k-1) + (k - 2)*T(n,k-2).
n-th diagonal of A008277: Stirling2(N + n - 1,N) = Sum_{k = 1..2*n - 1} T(n,k)*binomial(N - n,k - 1) for N = 1,2,3,....
Row polynomials R(n,z) = Sum_{k >= 1} k^(n+k-1)*( z/(1 + z)*exp(-z/(1 + z)) )^k/k!, n = 1,2,..., follows from the formula given in A008277 for the o.g.f.'s of the diagonals of the Stirling numbers of the second kind.
Consequently, R(n+1,z) = (1 + z)^2*z*d/dz(R(n,z)) for n >= 1 as conjectured above by Copeland.
R(n,z) = (1 + z)^n*P(n,z) where P(n,z) are the row polynomials of A134991.
R(n,z) = (1 + z)^(2*n+1)*B(n,z/(1 + z)), where B(n,z) are the row polynomials of the triangle of second-order Eulerian numbers A008517 (see Barbero et al., Section 6, equation 27). (End)
Based on the comment of Bala the row polynomials have the explicit form R(n, z) = (1+z)^(n+1)*Sum_{k=0..n}(z^k*Sum_{m=0..k}((-1)^(m+k)*binomial(n+k, n+m)* Stirling2(n+m,m))). - Peter Luschny, Jun 15 2016
E.g.f. G(x,y) satisfies G(x,y) = y*(exp(x)*exp(G(x,y)) - G(x,y) - 1). - Andrew Howroyd, Mar 28 2025

Extensions

Edited and Name changed by Peter Bala, Jun 16 2016
Name changed by Andrew Howroyd, Mar 28 2025

A215771 Number T(n,k) of undirected labeled graphs on n nodes with exactly k cycle graphs as connected components; triangle T(n,k), n>=0, 0<=k<=n, read by rows.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 1, 3, 1, 0, 3, 7, 6, 1, 0, 12, 25, 25, 10, 1, 0, 60, 127, 120, 65, 15, 1, 0, 360, 777, 742, 420, 140, 21, 1, 0, 2520, 5547, 5446, 3157, 1190, 266, 28, 1, 0, 20160, 45216, 45559, 27342, 10857, 2898, 462, 36, 1, 0, 181440, 414144, 427275, 264925, 109935, 31899, 6300, 750, 45, 1
Offset: 0

Views

Author

Alois P. Heinz, Aug 23 2012

Keywords

Comments

Also the Bell transform of A001710. For the definition of the Bell transform see A264428 and the links given there. - Peter Luschny, Jan 21 2016

Examples

			T(4,1) = 3:  .1-2.  .1 2.  .1-2.
.            .| |.  .|X|.  . X .
.            .3-4.  .3 4.  .3-4.
.
T(4,2) = 7:  .1 2.  .1-2.  .1 2.  o1 2.  .1 2o  .1-2.  .1-2.
.            .| |.  .   .  . X .  . /|.  .|\ .  . \|.  .|/ .
.            .3 4.  .3-4.  .3 4.  .3-4.  .3-4.  o3 4.  .3 4o
.
T(4,3) = 6:  .1 2o  .1-2.  o1 2.  o1 2o  o1 2.  .1 2o
.            .|  .  .   .  .  |.  .   .  . / .  . \ .
.            .3 4o  o3 4o  o3 4.  .3-4.  .3 4o  o3 4.
.
T(4,4) = 1:  o1 2o
.            .   .
.            o3 4o
Triangle T(n,k) begins:
  1;
  0,   1;
  0,   1,   1;
  0,   1,   3,   1;
  0,   3,   7,   6,   1;
  0,  12,  25,  25,  10,   1;
  0,  60, 127, 120,  65,  15,  1;
  0, 360, 777, 742, 420, 140, 21,  1;
		

Crossrefs

Columns k=0-10 give: A000007, A001710(n-1) for n>0, A215772, A215763, A215764, A215765, A215766, A215767, A215768, A215769, A215770.
Diagonal and lower diagonals give: A000012, A000217, A001296, A215773, A215774.
Row sums give A002135.
T(2n,n) gives A253276.

Programs

  • Maple
    T:= proc(n, k) option remember; `if`(k<0 or k>n, 0, `if`(n=0, 1,
          add(binomial(n-1, i)*T(n-1-i, k-1)*ceil(i!/2), i=0..n-k)))
        end:
    seq(seq(T(n, k), k=0..n), n=0..12);
    # Alternatively, with the function BellMatrix defined in A264428:
    BellMatrix(n -> `if`(n<2, 1, n!/2), 8); # Peter Luschny, Jan 21 2016
  • Mathematica
    t[n_, k_] := t[n, k] = If[k < 0 || k > n, 0, If[n == 0, 1, Sum[Binomial[n-1, i]*t[n-1-i, k-1]*Ceiling[i!/2], {i, 0, n-k}]]]; Table[Table[t[n, k], {k, 0, n}], {n, 0, 12}] // Flatten (* Jean-François Alcover, Dec 18 2013, translated from Maple *)
    rows = 10;
    t = Table[If[n<2, 1, n!/2], {n, 0, rows}];
    T[n_, k_] := BellY[n, k, t];
    Table[T[n, k], {n, 0, rows}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jun 22 2018, after Peter Luschny *)
  • Sage
    # uses[bell_matrix from A264428]
    bell_matrix(lambda n: factorial(n)//2 if n>=2 else 1, 8)

A001298 Stirling numbers of the second kind S(n+4, n).

Original entry on oeis.org

0, 1, 31, 301, 1701, 6951, 22827, 63987, 159027, 359502, 752752, 1479478, 2757118, 4910178, 8408778, 13916778, 22350954, 34952799, 53374629, 79781779, 116972779, 168519505, 238929405, 333832005, 460192005, 626551380, 843303006, 1122998436, 1480692556
Offset: 0

Views

Author

Keywords

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 835.
  • F. N. David, M. G. Kendall and D. E. Barton, Symmetric Function and Allied Tables, Cambridge, 1966, p. 223.
  • 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

  • Magma
    [n*(n+1)*(n+2)*(n+3)*(n+4)*(15*n^3 + 30*n^2 + 5*n - 2)/5760: n in [0..50]]; // G. C. Greubel, Oct 22 2017
  • Maple
    A001298:=-(1+22*z+58*z**2+24*z**3)/(z-1)**9; # Simon Plouffe in his 1992 dissertation, without the leading 0
  • Mathematica
    Table[StirlingS2[n+4, n], {n, 0, 100}] (* Vladimir Joseph Stephan Orlovsky, Sep 27 2008 *)
    a[ n_] := n (n + 1) (n + 2) (n + 3) (n + 4) (15 n^3 + 30 n^2 + 5 n - 2) / 5760; (* Michael Somos, Sep 04 2017 *)
  • PARI
    {a(n) = n * (n+1) * (n+2) * (n+3) * (n+4) * (15*n^3 + 30*n^2 + 5*n - 2) / 5760}; /* Michael Somos, Sep 04 2017 */
    
  • Sage
    [stirling_number2(n+4,n) for n in range(0, 24)] # Zerinvary Lajos, May 16 2009
    

Formula

G.f.: x(1 + 22x + 58x^2 + 24x^3)/(1 - x)^9. - Paul Barry, Aug 05 2004
a(n) = Stirling2(n+4, n) = Sum_{L=1..n} (Sum_{k=1..L} (Sum_{j=1..k} (Sum_{i=1..j} i*j*k*L))) = (n+4)*(n+3)*(n+2)*(n+1)*n *(15*n^3 + 30*n^2 + 5*n - 2)/5760 = (15*n^3 + 30*n^2 + 5*n - 2)*binomial(n+4, 5)/48. - Vladeta Jovovic, Jan 31 2005
E.g.f. with offset -3: exp(x)*(1*(x^4)/4! + 26*(x^5)/5! + 130*(x^6)/6! + 210*(x^7)/7! +105*(x^8)/8!). For the coefficients [1, 26, 130, 210, 105] see triangle A112493. E.g.f.: x*exp(x)*(15*x^7 + 600*x^6 + 8600*x^5 + 55248*x^4 + 162960*x^3 + 202560*x^2 + 83520*x + 5760)/5760. Above given e.g.f. differentiated three times.
O.g.f. is D^4(x/(1-x)), where D is the operator x/(1-x)*d/dx. - Peter Bala, Jul 02 2012
a(n) = A000915(-4-n) for all n in Z. - Michael Somos, Sep 04 2017

Extensions

Name edited and initial zero added by Nathaniel Johnston, Apr 30 2011

A086602 a(n) = A000217(A000217(n))-n^2.

Original entry on oeis.org

0, 0, 2, 12, 39, 95, 195, 357, 602, 954, 1440, 2090, 2937, 4017, 5369, 7035, 9060, 11492, 14382, 17784, 21755, 26355, 31647, 37697, 44574, 52350, 61100, 70902, 81837, 93989, 107445, 122295, 138632, 156552, 176154, 197540, 220815, 246087
Offset: 0

Views

Author

Jon Perry, Jul 23 2003

Keywords

Examples

			a(3) = t(t(3))-3^2 = t(6)-9 = 21-9 = 12.
		

Crossrefs

Programs

  • Magma
    [n*(n-1)*(n^2+3*n-2)/8: n in [0..40]]; // Vincenzo Librandi, Jun 26 2016
  • Maple
    seq(3*binomial(n+2,4)-binomial(n,2), n=0..35); # Zerinvary Lajos, May 02 2007
  • Mathematica
    Table[n (n - 1) (n^2 + 3 n - 2)/8, {n, 0, 40}] (* Bruno Berselli, Aug 27 2014 *)
    LinearRecurrence[{5,-10,10,-5,1},{0,0,2,12,39},60] (* Harvey P. Dale, Apr 04 2023 *)
  • PARI
    t(i)=i*(i+1)/2
    vector(40,i,t(t(i))-i^2)
    

Formula

a(n) = A000330(n-1)+A001295(n-1). - Alford Arnold, Jun 29 2005
a(n) = 3*C(n+2,4) - C(n,2). - Zerinvary Lajos, May 02 2007, corrected Jun 12 2018
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) = n*(n-1)*(n^2+3*n-2)/8. [R. J. Mathar, Oct 30 2009]
G.f.: x^2*(-2-2*x+x^2)/(x-1)^5. [R. J. Mathar, Oct 30 2009]
a(n) = (n-1)*A005581(n) - Sum_{i=0..n-1} A005581(i). [Bruno Berselli, Aug 27 2014]

A133713 Array read by antidiagonals, giving the sizes pi_l(c_l(m,n)) of minimal covers (see reference for precise definition).

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 1, 6, 7, 1, 1, 10, 25, 13, 1, 1, 15, 65, 81, 22, 1, 1, 21, 140, 325, 226, 34, 1, 1, 28, 266, 995, 1371, 561, 50, 1, 1, 36, 462, 2541, 5901, 5087, 1277, 70, 1, 1, 45, 750, 5698, 20097, 30569, 17080, 2706, 95, 1
Offset: 2

Views

Author

N. J. A. Sloane, Dec 30 2007

Keywords

Examples

			Array begins:
1 1 1 1 1 1 1 1 1 ...
1 3 7 13 22 34 50 ...
1 6 25 81 226 561 1277 ...
1 10 65 325 1371 5087 17080 ...
1 15 140 995 5901 30569 142375 ...
...
		

Crossrefs

Rows give A002623, A133714-A133717.
Columns give A000217, A001296, A133718-A133710.

Programs

  • Maple
    A133713 := proc(l,cl)
            g := 1 ;
            for k from 1 to cl+1 do
              add( binomial(binomial(l,k+1)+i-1,i)*t^(i*k),i=0..ceil(cl/k)) ;
              g := g*% ;
            end do:
            g := expand(g) ;
            coeftayl(g,t=0,cl) ;
    end proc:
    seq(seq(A133713(d-k, k), k=0..d-2), d=2..11); # R. J. Mathar, Nov 23 2011
  • Mathematica
    A133713[l_, cl_] := Module[{g, k, s}, g = 1; For[k = 1, k <= cl+1, k++, s = Sum[Binomial[Binomial[l, k+1]+i-1, i]*t^(i*k), {i, 0, Ceiling[cl/k]}]; g = g*s]; g = Expand[g]; SeriesCoefficient[g, {t, 0, cl}]]; A133713[A133713%5Bl-cl+2,%20cl%5D,%20%7Bl,%200,%209%7D,%20%7Bcl,%200,%20l%7D%5D%20//%20Flatten%20(*%20_Jean-Fran%C3%A7ois%20Alcover">, 0] = 1; Table[A133713[l-cl+2, cl], {l, 0, 9}, {cl, 0, l}] // Flatten (* _Jean-François Alcover, Jan 07 2014, translated from Maple *)

Formula

Burger and van Vuuren give a generating function.

Extensions

Missing term 2706 inserted by Jean-François Alcover, Jan 07 2014

A144385 Triangle read by rows: T(n,k) is the number of partitions of [1, 2, ..., k] into exactly n blocks, each of size 1, 2 or 3 (n >= 0, 0 <= k <= 3n).

Original entry on oeis.org

1, 0, 1, 1, 1, 0, 0, 1, 3, 7, 10, 10, 0, 0, 0, 1, 6, 25, 75, 175, 280, 280, 0, 0, 0, 0, 1, 10, 65, 315, 1225, 3780, 9100, 15400, 15400, 0, 0, 0, 0, 0, 1, 15, 140, 980, 5565, 26145, 102025, 323400, 800800, 1401400, 1401400, 0, 0, 0, 0, 0, 0, 1, 21, 266, 2520, 19425, 125895, 695695, 3273270, 12962950, 42042000, 106506400, 190590400, 190590400
Offset: 0

Views

Author

David Applegate and N. J. A. Sloane, Dec 07 2008, Dec 17 2008

Keywords

Comments

Row n has 3n+1 entries.

Examples

			Triangle begins:
[1]
[0, 1, 1, 1]
[0, 0, 1, 3, 7, 10, 10]
[0, 0, 0, 1, 6, 25, 75, 175, 280, 280]
[0, 0, 0, 0, 1, 10, 65, 315, 1225, 3780, 9100, 15400, 15400]
[0, 0, 0, 0, 0, 1, 15, 140, 980, 5565, 26145, 102025, 323400, 800800, 1401400, 1401400]
		

Crossrefs

See A144399, A144402, A144417, A111246 for other versions of this triangle.
Column sums give A001680, row sums give A144416. Taking last nonzero entry in each row gives A025035.
Diagonals include A000217, A001296, A027778, A144516; also A025035.
A generalization of the triangle in A144331 (and in several other entries).
Cf. A144643.

Programs

  • Maple
    T := proc(n, k)
    option remember;
    if n = k then 1;
    elif k < n then 0;
    elif n < 1 then 0;
    else T(n - 1, k - 1) + (k - 1)*T(n - 1, k - 2) + 1/2*(k - 1)*(k - 2)*T(n - 1, k - 3);
    end if;
    end proc;
    for n from 0 to 12 do lprint([seq(T(n,k),k=0..3*n)]); od:
  • Mathematica
    t[n_, n_] = 1; t[n_ /; n >= 0, k_] /; 0 <= k <= 3*n := t[n, k] = t[n-1, k-1] + (k-1)*t[n-1, k-2] + (1/2)*(k-1)*(k-2)*t[n-1, k-3]; t[, ] = 0; Table[t[n, k], {n, 0, 12}, {k, 0, 3*n}] // Flatten (* Jean-François Alcover, Jan 14 2014 *)

Formula

T(n, k) = T(n - 1, k - 1) + (k - 1)*T(n - 1, k - 2) + (1/2)*(k - 1)*(k - 2)*T(n - 1, k - 3).
E.g.f.: Sum_{ n >= 0, k >= 0 } T(n, k) y^n x^k / k! = exp( y*(x+x^2/2+x^3/6) ). That is, the coefficient of y^n is the e.g.f. for row n. E.g. the e.g.f. for row 2 is (1/2)*(x+x^2/2+x^3/6)^2 = 1*x^2/2! + 3*x^3/3! + 7*x^4/4! + 10*x^5/5! + 10*x^6/6!.

A220212 Convolution of natural numbers (A000027) with tetradecagonal numbers (A051866).

Original entry on oeis.org

0, 1, 16, 70, 200, 455, 896, 1596, 2640, 4125, 6160, 8866, 12376, 16835, 22400, 29240, 37536, 47481, 59280, 73150, 89320, 108031, 129536, 154100, 182000, 213525, 248976, 288666, 332920, 382075, 436480, 496496, 562496, 634865, 714000, 800310, 894216, 996151
Offset: 0

Views

Author

Bruno Berselli, Dec 08 2012

Keywords

Comments

Partial sums of A172073.
Apart from 0, all terms are in A135021: a(n) = A135021(A034856(n+1)) with n>0.

Crossrefs

Cf. convolution of the natural numbers (A000027) with the k-gonal numbers (* means "except 0"):
k= 2 (A000027 ): A000292;
k= 3 (A000217 ): A000332 (after the third term);
k= 4 (A000290 ): A002415 (after the first term);
k= 5 (A000326 ): A001296;
k= 6 (A000384*): A002417;
k= 7 (A000566 ): A002418;
k= 8 (A000567*): A002419;
k= 9 (A001106*): A051740;
k=10 (A001107*): A051797;
k=11 (A051682*): A051798;
k=12 (A051624*): A051799;
k=13 (A051865*): A055268.
Cf. similar sequences with formula n*(n+1)*(n+2)*(k*n-k+2)/12 listed in A264850.

Programs

  • Magma
    A051866:=func; [&+[(n-k+1)*A051866(k): k in [0..n]]: n in [0..37]];
    
  • Magma
    I:=[0,1,16,70,200]; [n le 5 select I[n] else 5*Self(n-1)-10*Self(n-2)+10*Self(n-3)-5*Self(n-4)+Self(n-5): n in [1..50]]; // Vincenzo Librandi, Aug 18 2013
  • Mathematica
    A051866[k_] := k (6 k - 5); Table[Sum[(n - k + 1) A051866[k], {k, 0, n}], {n, 0, 37}]
    CoefficientList[Series[x (1 + 11 x) / (1 - x)^5, {x, 0, 40}], x] (* Vincenzo Librandi, Aug 18 2013 *)

Formula

G.f.: x*(1+11*x)/(1-x)^5.
a(n) = n*(n+1)*(n+2)*(3*n-2)/6.
From Amiram Eldar, Feb 15 2022: (Start)
Sum_{n>=1} 1/a(n) = 3*(3*sqrt(3)*Pi + 27*log(3) - 17)/80.
Sum_{n>=1} (-1)^(n+1)/a(n) = 3*(6*sqrt(3)*Pi - 64*log(2) + 37)/80. (End)

A107600 Column 5 of array illustrated in A089574 and related to A034261.

Original entry on oeis.org

1, 18, 101, 357, 978, 2274, 4711, 8954, 15915, 26806, 43197, 67079, 100932, 147798, 211359, 296020, 406997, 550410, 733381, 964137, 1252118, 1608090, 2044263, 2574414, 3214015, 3980366, 4892733, 5972491, 7243272, 8731118, 10464639
Offset: 9

Views

Author

Alford Arnold, May 17 2005

Keywords

Comments

The sequences in A089574 count ordered partitions. Sequence A001296 can be associated with 9 = 3+3+3. Six times sequence A005585, associated with 10 = 3+3+2+2. The other three sequences comprising A107600 are generated in A034261 and can be associated with 10 = 5 + 5 = 4 + 4 + 2 = 2 + 2 + 2 + 2 + 2.

Examples

			A107600(n) can be constructed from five other sequences as follows:
1...7...25...65...140.......A001296
....1...11...56...196.......A034264
....6...42..162...462.......6.*.A005585.
....3...18...60...150.......A006011
....1....5...14....30.......A000330
therefore
1..18..101..357...978.......A107600
		

Crossrefs

Programs

  • Maple
    a:= n-> `if` (n<9, 0, (92292 +(-6580 +(-5745 +(1535 +(-147+5*n) *n) *n) *n) *n) *n /720 -218): seq(a(n), n=9..45); # Alois P. Heinz, Nov 06 2009
  • Mathematica
    Select[CoefficientList[Series[(x^5-5x^4+7x^3+4x^2-11x-1)x^9/(x-1)^7, {x,0,50}],x],#>0&] (* or *) LinearRecurrence[{7,-21,35,-35,21,-7,1}, {1,18,101,357,978,2274,4711},42] (* Harvey P. Dale, May 01 2011 *)

Formula

G.f.: (x^5 -5*x^4 +7*x^3 +4*x^2 -11*x -1) *x^9 /(x-1)^7. - Alois P. Heinz, Nov 06 2009

Extensions

More terms from Alois P. Heinz, Nov 06 2009

A241765 a(n) = n*(n + 1)*(n + 2)*(3*n + 17)/24.

Original entry on oeis.org

0, 5, 23, 65, 145, 280, 490, 798, 1230, 1815, 2585, 3575, 4823, 6370, 8260, 10540, 13260, 16473, 20235, 24605, 29645, 35420, 41998, 49450, 57850, 67275, 77805, 89523, 102515, 116870, 132680, 150040, 169048, 189805, 212415, 236985, 263625, 292448
Offset: 0

Views

Author

Bruno Berselli, Apr 28 2014

Keywords

Comments

Equivalently, Sum_{i=0..n} (i+4)*A000217(i).
Sequences of the type Sum_{i=0..n} (i+k)*A000217(i):
k = 0, A001296: 0, 1, 7, 25, 65, 140, 266, 462, ...
k = 1, A000914: 0, 2, 11, 35, 85, 175, 322, 546, ...
k = 2, A050534: 0, 3, 15, 45, 105, 210, 378, 630, ... (deleting two 0)
k = 3, A215862: 0, 4, 19, 55, 125, 245, 434, 714, ...
k = 4, a(n): 0, 5, 23, 65, 145, 280, 490, 798, ...
k = 5, A239568: 0, 6, 27, 75, 165, 315, 546, 882, ...
Antidiagonal sums (without 0) give A034263: 1, 9, 39, 119, 294, ...
Diagonal: 1, 11, 45, 125, 280, 546, ... is A051740.
Also: k = -1 gives A050534 deleting a 0; k = -2 gives 0 followed by A059302.
After 0, partial sums of A212343 and third column of A118788.
This sequence is even related to A005286 by a(n) = n*A005286(n) - Sum_{i=0..n-1} A005286(i).

Examples

			a(7) = 4*0 + 5*1 + 6*3 + 7*6 + 8*10 + 9*15 + 10*21 + 11*28 = 798.
		

Crossrefs

Cf. similar sequences A000914, A001296, A050534, A059302, A215862, A239568 (see table in Comments lines).

Programs

  • Magma
    /* By first comment: */ k:=4; A000217:=func; [&+[(i+k)*A000217(i): i in [0..n]]: n in [0..40]];
    
  • Maple
    A241765:=n->n*(n + 1)*(n + 2)*(3*n + 17)/24; seq(A241765(n), n=0..40); # Wesley Ivan Hurt, May 09 2014
  • Mathematica
    Table[n (n + 1) (n + 2) (3 n + 17)/24, {n, 0, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 5, 23, 65, 145}, 40]
    CoefficientList[Series[x (5 - 2 x)/(1 - x)^5, {x, 0, 40}], x] (* Vincenzo Librandi, May 09 2014 *)
  • Maxima
    makelist(coeff(taylor(x*(5-2*x)/(1-x)^5, x, 0, n), x, n), n, 0, 40);
    
  • PARI
    a(n)=n*(n+1)*(n+2)*(3*n+17)/24 \\ Charles R Greathouse IV, Oct 07 2015
    
  • PARI
    x='x+O('x^99); concat(0, Vec(x*(5-2*x)/(1-x)^5)) \\ Altug Alkan, Apr 10 2016
  • Sage
    [n*(n+1)*(n+2)*(3*n+17)/24 for n in (0..40)]
    

Formula

G.f.: x*(5 - 2*x)/(1 - x)^5.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
a(n) = A227342(A055998(n+1)).
a(n) = Sum_{j=0..n+2} (-1)^(n-j)*binomial(-j,-n-2)*S1(j,n), S1 Stirling cycle numbers A132393. - Peter Luschny, Apr 10 2016
Previous Showing 11-20 of 59 results. Next