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-16 of 16 results.

A135920 O.g.f.: A(x) = Sum_{n>=0} x^n / Product_{k=0..n} (1 - k^2*x).

Original entry on oeis.org

1, 1, 2, 7, 37, 264, 2433, 27913, 386906, 6346119, 121159373, 2655174768, 66028903633, 1845579100993, 57506847262162, 1983312152411351, 75238783332550789, 3122408658986242072, 141063757638078429489
Offset: 0

Views

Author

Paul D. Hanna, Dec 06 2007

Keywords

Comments

From Peter Bala, Sep 27 2012: (Start)
Generalized Bell numbers; row sums of A036969.
a(n) is equal to the number of partitions of the set {1,1',2,2',...,n,n'} into disjoint nonempty subsets V1,...,Vk (1 <= k <= n) such that, for each 1 <= j <= k, if i is the least integer such that either i or i' belongs to Vj then {i,i'} is a subset of Vj.
Example: a(3) = 7: There is a single partition into one set {1,1',2,2',3,3'}; five partitions into two sets, namely, {1,1',2,2'}{3,3'}, {1,1',3,3'}{2,2'}, {1,1'}{2,2',3,3'}, {1,1',3}{2,2',3'} and {1,1',3'}{2,2',3}; and finally a single partition into three sets {1,1'}{2,2'}{3,3'}. (End)

Examples

			O.g.f.: A(x) = 1 + x/(1-x) + x^2/((1-x)*(1-4x)) + x^3/((1-x)*(1-4x)*(1-9x)) + x^4/((1-x)*(1-4x)*(1-9x)*(1-16x)) + ...
Also generated by iterated binomial transforms in the following way:
[1,2,7,37,264,2433,27913,...] = BINOMIAL([1,1,4,21,151,1422,16629,..]);
[1,4,21,151,1422,16629,234529,...] = BINOMIAL^3([1,1,6,43,393,4596,...]);
[1,6,43,393,4596,66049,1125905,...] = BINOMIAL^5([1,1,8,73,811,11274,...]);
[1,8,73,811,11274,191685,...] = BINOMIAL^7([1,1,10,111,1453,23328,...]);
[1,10,111,1453,23328,456033,...] = BINOMIAL^9([1,1,12,157,2367,43014,...]);
etc.
		

Crossrefs

Programs

  • Mathematica
    nmax = 20;
    A[x_] = Sum[x^n/Product[1 - k^2 x, {k, 0, n}], {n, 0, nmax}];
    CoefficientList[A[x] + O[x]^nmax, x] (* Jean-François Alcover, Jul 27 2018 *)
  • PARI
    a(n)=polcoeff(sum(k=0, n, x^k/prod(j=0, k, 1-j^2*x+x*O(x^n))), n)

Formula

From Peter Bala, Sep 27 2012: (Start)
Let E(x) = cosh(sqrt(2*x)) = Sum_{n >= 0} x^n/((2*n)!/2^n). A generating function is E((E(x) - 1)) = 1 + x + 2*x^2/6 + 7*x^3/90 + ..., where the sequence of denominators [1, 1, 6, 90, ...] is given by (2*n)!/2^n. Cf. A000110 which has generating function exp((exp(x) - 1)).
An e.g.f. is E((E(x^2/2) - 1)) = 1 + x^2/2! + 2*x^4/4! + 7*x^6/6! + .... (End)
G.f.: 1 + x/(U(0)-x) where U(k) = 1 - 2*x*k - x*k^2 + x*(x*(k+1)^2 - 1)/U(k+1) ; (continued fraction). - Sergei N. Gladkovskii, Oct 11 2012
G.f.: (G(0) - 1)/(x-1) where G(k) = 1 - 1/(1-k^2*x)/(1-x/(x-1/G(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Jan 16 2013
Conjecture: a(n) = A369527(n-1, 0) = A369595(n-1, 0) for n > 0 with a(0) = 1. - Mikhail Kurkov, Apr 25 2024

A351105 a(n) = Sum_{k=1..n} Sum_{j=1..k} Sum_{i=1..j} (i*j*k)^2.

Original entry on oeis.org

0, 1, 85, 1408, 11440, 61490, 251498, 846260, 2458676, 6369275, 15047175, 32955780, 67746900, 131969604, 245444980, 438485080, 756163672, 1263878005, 2054474617, 3257248280, 5049161480, 7668672374, 11432601950, 16756516140, 24179145900, 34391417775
Offset: 0

Views

Author

Roudy El Haddad, Jan 31 2022

Keywords

Comments

a(n) is the sum of all products of three squares of positive integers up to n, i.e., the sum of all products of three elements from the set of squares {1^2, ..., n^2}.

Crossrefs

A diagonal of A036969.
Cf. A000290 (squares), A000330 (sum of squares), A060493 (for two squares).
Cf. A001297 (for power 1).

Programs

  • Mathematica
    CoefficientList[Series[x (36 x^5 + 460 x^4 + 1065 x^3 + 603 x^2 + 75 x + 1)/(x - 1)^10, {x, 0, 25}], x] (* Michael De Vlieger, Feb 04 2022 *)
    LinearRecurrence[{10,-45,120,-210,252,-210,120,-45,10,-1},{0,1,85,1408,11440,61490,251498,846260,2458676,6369275},30] (* Harvey P. Dale, Jul 18 2022 *)
  • PARI
    {a(n) = n*(n+1)*(n+2)*(n+3)*(2*n+1)*(2*n+3)*(2*n+5)*(35*n^2-21*n+4)/45360};
    
  • PARI
    a(n) = sum(i=1, n, sum(j=1, i, sum(k=1, j, i^2*j^2*k^2)));
    
  • Python
    def A351105(n): return n*(n*(n*(n*(n*(n*(n*(n*(280*n + 2772) + 10518) + 18711) + 14385) + 1323) - 2863) - 126) + 360)//45360 # Chai Wah Wu, Feb 17 2022

Formula

a(n) = n*(n+1)*(n+2)*(n+3)*(2n+1)*(2n+3)*(2n+5)*(35*n^2-21*n+4)/45360 (from the recurrent form of Faulhaber's formula).
a(n) = (1/(9!*2))*((2n+6)!/(2n-1)!)*(35*n^2-21*n+4).
a(n) = binomial(2n+6,7)*(35*n^2-21*n+4)/144.
G.f.: x*(36*x^5+460*x^4+1065*x^3+603*x^2+75*x+1)/(x-1)^10. - Alois P. Heinz, Jan 31 2022
a(n) = 2/(2*n)! * Sum_{j = 1..n} (-1)^(n+j) * binomial(2*n, n-j) * j^(2*n+6). - Peter Bala, Mar 31 2025

A303675 Triangle read by rows: coefficients in the sum of odd powers as expressed by Faulhaber's theorem, T(n, k) for n >= 1, 1 <= k <= n.

Original entry on oeis.org

1, 6, 1, 120, 30, 1, 5040, 1680, 126, 1, 362880, 151200, 17640, 510, 1, 39916800, 19958400, 3160080, 168960, 2046, 1, 6227020800, 3632428800, 726485760, 57657600, 1561560, 8190, 1, 1307674368000, 871782912000, 210680870400, 22313491200, 988107120, 14217840, 32766, 1
Offset: 1

Views

Author

Kolosov Petro, May 08 2018

Keywords

Comments

T(n,k) are the coefficients in an identity due to Faulhaber: Sum_{j=0..n} j^(2*m-1) = Sum_{k=1..m} T(m,k) binomial(n+k, 2*k). See the Knuth reference, page 10.
More explicitly, Faulhaber's theorem asserts that, given integers n >= 0, m >= 1 and odd, Sum_{k=1..n} k^m = Sum_{k=1..(m+1)/2} C(n+k,n-k)*[(1/k)*Sum_{j=0..k-1} (-1)^j*C(2*k,j)*(k-j)^(m+1)]. The coefficients T(m, k) are indicated by square brackets. Sums similar to this inner part are A304330, A304334, A304336; however, these triangles are (0,0)-based and lead to equivalent but slightly more systematic representations. - Peter Luschny, May 12 2018

Examples

			The triangle begins (see the Knuth reference p. 10):
         1;
         6,          1;
       120,         30,         1;
      5040,       1680,       126,        1;
    362880,     151200,     17640,      510,       1;
  39916800,   19958400,   3160080,   168960,    2046,    1;
6227020800, 3632428800, 726485760, 57657600, 1561560, 8190, 1;
.
Let S(n, m) = Sum_{j=1..n} j^m. Faulhaber's formula gives for m = 7 (m odd!):
F(n, 7) = 5040*C(n+4, 8) + 1680*C(n+3, 6) + 126*C(n+2, 4) + C(n+1, 2).
Faulhaber's theorem asserts that for all n >= 1 S(n, 7) = F(n, 7).
If n = 43 the common value is 1600620805036.
		

References

  • John H. Conway and Richard Guy, The Book of Numbers, Springer (1996), p. 107.

Crossrefs

First column is a bisection of A000142, second column is a bisection of A001720.
Row sums give A100868.

Programs

  • Maple
    T := proc(n,k) local m; m := n-k;
    2*(2*m+1)!*add((-1)^(j+m)*(j+1)^(2*n)/((j+m+2)!*(m-j)!), j=0..m) end:
    seq(seq(T(n, k), k=1..n), n=1..8); # Peter Luschny, May 09 2018
  • Mathematica
    (* After Peter Luschny's above formula. *)
    T[n_, k_] := (1/(n-k+1))*Sum[(-1)^j*Binomial[2*(n-k+1), j]*((n-k+1) - j)^(2*n), {j, 0, n-k+1}]; Column[Table[T[n, k], {n, 1, 10}, {k, 1, n}], Center]
  • Sage
    def A303675(n, k): return factorial(2*(n-k)+1)*A008957(n, k)
    for n in (1..7): print([A303675(n, k) for k in (1..n)]) # Peter Luschny, May 10 2018

Formula

T(n, k) = (2*(n-k)+1)!*A008957(n, k), n >= 1, 1 <= k <= n.
T(n, k) = (1/m)*Sum_{j=0..m} (-1)^j*binomial(2*m,j)*(m-j)^(2*n) where m = n-k+1. - Peter Luschny, May 09 2018

Extensions

New name by Peter Luschny, May 10 2018

A268434 Triangle read by rows, Lah numbers of order 2, T(n,n) = 1, T(n,k) = 0 if k<0 or k>n, otherwise T(n,k) = T(n-1,k-1)+((n-1)^2+k^2)*T(n-1,k), for n>=0 and 0<=k<=n.

Original entry on oeis.org

1, 0, 1, 0, 2, 1, 0, 10, 10, 1, 0, 100, 140, 28, 1, 0, 1700, 2900, 840, 60, 1, 0, 44200, 85800, 31460, 3300, 110, 1, 0, 1635400, 3476200, 1501500, 203060, 10010, 182, 1, 0, 81770000, 185874000, 90563200, 14700400, 943800, 25480, 280, 1
Offset: 0

Views

Author

Peter Luschny, Mar 07 2016

Keywords

Comments

0

Examples

			[1]
[0,        1]
[0,        2,         1]
[0,       10,        10,        1]
[0,      100,       140,       28,        1]
[0,     1700,      2900,      840,       60,      1]
[0,    44200,     85800,    31460,     3300,    110,     1]
[0,  1635400,   3476200,  1501500,   203060,  10010,   182,   1]
		

Crossrefs

Cf. A038207 (order 0), A111596 (order 1), A269946 (order 3).

Programs

  • Maple
    T := proc(n,k) option remember;
    if n=k then return 1 fi; if k<0 or k>n then return 0 fi;
    T(n-1,k-1)+((n-1)^2+k^2)*T(n-1,k) end:
    seq(seq(T(n,k), k=0..n), n=0..8);
    # Alternatively with the P-transform (cf. A269941):
    A268434_row := n -> PTrans(n, n->`if`(n=1,1, ((n-1)^2+1)/(n*(4*n-2))),
    (n,k)->(-1)^k*(2*n)!/(2*k)!): seq(print(A268434_row(n)), n=0..8);
  • Mathematica
    T[n_, n_] = 1; T[, 0] = 0; T[n, k_] /; 0 < k < n := T[n, k] = T[n-1, k-1] + ((n-1)^2 + k^2)*T[n-1, k]; T[, ] = 0;
    Table[T[n, k], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jun 20 2017 *)
  • Sage
    #cached_function
    def T(n, k):
        if n==k: return 1
        if k<0 or k>n: return 0
        return T(n-1, k-1)+((n-1)^2+k^2)*T(n-1, k)
    for n in range(8): print([T(n, k) for k in (0..n)])
    # Alternatively with the function PtransMatrix (cf. A269941):
    PtransMatrix(8, lambda n: 1 if n==1 else ((n-1)^2+1)/(n*(4*n-2)), lambda n, k: (-1)^k*factorial(2*n)/factorial(2*k))

Formula

T(n,k) = (-1)^k*((2*n)!/(2*k)!)*P[n,k](s(n)) where P is the P-transform and s(n) = ((n-1)^2+1)/(n*(4*n-2)). The P-transform is defined in the link. Compare also the Sage and Maple implementations below.
T(n,k) = Sum_{j=k..n} A269944(n,j)*A269945(j,k).
T(n,1) = Product_{k=1..n} (k-1)^2+1 for n>=1 (cf. A101686).
T(n,n-1) = (n-1)*n*(2*n-1)/3 for n>=1 (cf. A006331).
Row sums: A269938.

A348081 a(n) = [x^n] Product_{k=1..2*n} 1/(1 - k^2 * x).

Original entry on oeis.org

1, 5, 627, 251498, 209609235, 298201326150, 646748606934510, 1986821811445598260, 8209989926930833199235, 43919039258570117113742270, 295300365118450495520630242042, 2437724587984574697761809904387340, 24239364659088896670563082403144467630
Offset: 0

Views

Author

Seiichi Manyama, Sep 27 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[SeriesCoefficient[Product[1/(1 - k^2*x), {k, 1, 2*n}], {x, 0, n}], {n, 0, 20}] (* Vaclav Kotesovec, Oct 16 2021 *)
  • PARI
    a(n) = polcoef(1/prod(k=1, 2*n, 1-k^2*x+x*O(x^n)), n);

Formula

a(n) ~ c * d^n * n!^2 / n^(3/2), where d = 78.52705817932973261726305432915417900827309581709564977985583533852704254... = (2+r)^6 / (r^2*(4+r)^2), where r = 0.329482909104375658581668801636329590897344... is the root of the equation 4+r = r*exp(6/(2+r)) and c = (2+r)/(Pi^(3/2)*sqrt(32 - 4*r*(4+r))) = 0.0815842039686253664272939415761688591712635596695065951780203519... - Vaclav Kotesovec, Oct 16 2021, updated May 17 2025
From Seiichi Manyama, May 13 2025: (Start)
a(n) = A036969(3*n,2*n) = A269945(3*n,2*n).
a(n) = (1/(4*n)!) * Sum_{k=0..4*n} (-1)^k * (2*n-k)^(6*n) * binomial(4*n,k).
a(n) = Sum_{k=0..2*n} (-2*n)^k * binomial(6*n,k) * Stirling2(6*n-k,4*n).
a(n) = Sum_{k=0..2*n} (-1)^k * Stirling2(2*n+k,2*n) * Stirling2(4*n-k,2*n). (End)

A370705 Triangle read by rows: T(n, k) = numerator(CF(n, k)) where CF(n, k) = n! * [x^k] [t^n] (t/2 + sqrt(1 + (t/2)^2))^(2*x).

Original entry on oeis.org

1, 0, 1, 0, 0, 1, 0, -1, 0, 1, 0, 0, -1, 0, 1, 0, 9, 0, -5, 0, 1, 0, 0, 4, 0, -5, 0, 1, 0, -225, 0, 259, 0, -35, 0, 1, 0, 0, -36, 0, 49, 0, -14, 0, 1, 0, 11025, 0, -3229, 0, 987, 0, -21, 0, 1, 0, 0, 576, 0, -820, 0, 273, 0, -30, 0, 1
Offset: 0

Views

Author

Peter Luschny, Mar 02 2024

Keywords

Comments

The rational triangle R(n, k) contains the central factorial numbers. The central factorial of the first kind is the even subtriangle of R, while the central factorial of the second kind is the odd subtriangle. Since the terms of the even subtriangle can be seen as integers, the rational nature of these numbers is generally disregarded. The denominators of the central factorial of second kind are powers of 4; therefore, they are often studied as integers in the form 4^(n-k)*R(n, k). We will refer to the subtriangles by CF1(n, k) and CF2(n, k).
We recall that if T(n, k) is a number triangle (0 <= k <= n) then
Teven(n, k) = [T(n, k), k=0..n step 2), n=0..len step 2]
is the even subtriangle of T, and the odd subtriangle of T is
Todd(n, k) = [T(n, k), k=1..n step 2), n=1..len step 2], where
'k=a..o step s' denotes the subrange [a, a+s, a+2*s, ..., a+s*floor((o-a)/s)].
The central factorial numbers have their origins in approximation theory and numerical mathematics. They were undoubtedly used for a long time when J. F. Steffensen used them to construct quadrature formulas and presented them in 1924 at the 7th ICM. Four decades later, Carlitz and Riordan adopted the idea for use in combinatorics. While Steffensen originally referred to the numbers as "central differences of nothing," the second part of the name was later omitted.

Examples

			Triangle starts:
[0] 1;
[1] 0,     1;
[2] 0,     0,   1;
[3] 0,    -1,   0,     1;
[4] 0,     0,  -1,     0,  1;
[5] 0,     9,   0,    -5,  0,   1;
[6] 0,     0,   4,     0, -5,   0,   1;
[7] 0,  -225,   0,   259,  0, -35,   0,   1;
[8] 0,     0, -36,     0, 49,   0, -14,   0, 1;
[9] 0, 11025,   0, -3229,  0, 987,   0, -21, 0, 1;
		

References

  • Johan Frederik Steffensen, On a class of quadrature formulae. Proceedings of the International Mathematical Congress Toronto 1924, Vol 2, pp. 837-844.

Crossrefs

See the discussion by Sloane in A008955 of Riordan's notation. In particular, the notation 'T' below does not refer to the present triangle.
Central factorials (rational, general case): (this triangle) / A370703;
t(2n, 2k) (first kind, 'even case') A204579; (signed, T(n, 0) missing)
|t(2n, 2k)| A269944; (unsigned, T(n, 0) = 0^n)
|t(2n, 2n-2k)| A008955;
|t(2n+1, 2n+1-2k)|*4^k A008956;
T(2n, 2k) (second kind, 'odd case') A269945, A036969;
T(2n+1, 2k+1)*4^(n-k) A160562.

Programs

  • Maple
    gf := (t/2 + sqrt(1 + (t/2)^2))^(2*x): ser := series(gf, t, 20):
    ct := n -> n!*coeff(ser, t, n):
    T := (n, k) -> numer(coeff(ct(n), x, k)):
    seq(seq(T(n, k), k = 0..n), n = 0..10);
    # Filtering the central factorials of the first resp. second kind:
    CF1 := (T,len) -> local n,k; seq(print(seq(T(n,k), k=0..n, 2)), n = 0..len, 2);
    CF2 := (T,len) -> local n,k; seq(print(seq(T(n,k), k=1..n, 2)), n = 1..len, 2);
Previous Showing 11-16 of 16 results.