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

A322225 Triangle, read by rows, each row n being defined by g.f. Product_{k=1..n} (k + x - k*x^2), for n >= 0.

Original entry on oeis.org

1, 1, 1, -1, 2, 3, -3, -3, 2, 6, 11, -12, -21, 12, 11, -6, 24, 50, -61, -140, 75, 140, -61, -50, 24, 120, 274, -375, -1011, 540, 1475, -540, -1011, 375, 274, -120, 720, 1764, -2696, -8085, 4479, 15456, -5005, -15456, 4479, 8085, -2696, -1764, 720, 5040, 13068, -22148, -71639, 42140, 169266, -50932, -221389, 50932, 169266, -42140, -71639, 22148, 13068, -5040, 40320, 109584, -204436, -699804, 442665, 1969380, -575310, -3176172, 593523, 3176172, -575310, -1969380, 442665, 699804, -204436, -109584, 40320, 362880, 1026576, -2093220, -7488928, 5124105, 24465321, -7192395, -46885278, 7343325, 57764619, -7343325, -46885278, 7192395, 24465321, -5124105, -7488928, 2093220, 1026576, -362880
Offset: 0

Views

Author

Paul D. Hanna, Dec 15 2018

Keywords

Examples

			This irregular triangle formed from coefficients of x^k in Product_{m=1..n} (m + x - m*x^2), for n >= 0, k = 0..2*n, begins
1;
1, 1, -1;
2, 3, -3, -3, 2;
6, 11, -12, -21, 12, 11, -6;
24, 50, -61, -140, 75, 140, -61, -50, 24;
120, 274, -375, -1011, 540, 1475, -540, -1011, 375, 274, -120;
720, 1764, -2696, -8085, 4479, 15456, -5005, -15456, 4479, 8085, -2696, -1764, 720;
5040, 13068, -22148, -71639, 42140, 169266, -50932, -221389, 50932, 169266, -42140, -71639, 22148, 13068, -5040;
40320, 109584, -204436, -699804, 442665, 1969380, -575310, -3176172, 593523, 3176172, -575310, -1969380, 442665, 699804, -204436, -109584, 40320; ...
in which the central terms equal A322228.
RELATED SEQUENCES.
Note that the terms in the secondary diagonal A322227 in the above triangle
[1, 3, -12, -140, 540, 15456, -50932, -3176172, 7343325, 1053842295, ...]
may be divided by triangular numbers to obtain A322226:
[1, 1, -2, -14, 36, 736, -1819, -88227, 163185, 19160769, -15294993, ...].
		

Crossrefs

Cf. A322235 (variant).

Programs

  • Mathematica
    row[n_] := CoefficientList[Product[k+x-k*x^2, {k, 1, n}] + O[x]^(2n+1), x];
    Table[row[n], {n, 0, 9}] // Flatten (* Jean-François Alcover, Dec 26 2018 *)
  • PARI
    {T(n, k) = polcoeff( prod(m=1, n, m + x - m*x^2) +x*O(x^k), k)}
    /* Print the irregular triangle */
    for(n=0, 10, for(k=0, 2*n, print1( T(n, k), ", ")); print(""))

Formula

Each row sums to 1.
Left and right borders equal n! and (-1)^n*n!, respectively.

A322238 a(n) = [x^n] Product_{k=1..n} (k + x + k*x^2), for n >= 0.

Original entry on oeis.org

1, 1, 5, 23, 215, 1815, 24495, 302619, 5320667, 86715299, 1876495799, 38014052089, 976259270857, 23653053031933, 702814658564889, 19822951593203139, 668803323061123779, 21526439460249188211, 812828119716458951775, 29400983906741712373461, 1228278466826435935830261, 49325712126290139872176221, 2258694878457443286997591293, 99715752513094342744003434597, 4966247793605869355035248188325
Offset: 0

Views

Author

Paul D. Hanna, Dec 12 2018

Keywords

Examples

			The irregular triangle A322235 formed from coefficients of x^k in Product_{m=1..n} (m + x + m*x^2), for n >= 0, k = 0..2*n, begins
1;
1, 1, 1;
2, 3, 5, 3, 2;
6, 11, 24, 23, 24, 11, 6;
24, 50, 131, 160, 215, 160, 131, 50, 24;
120, 274, 825, 1181, 1890, 1815, 1890, 1181, 825, 274, 120;
720, 1764, 5944, 9555, 17471, 19866, 24495, 19866, 17471, 9555, 5944, 1764, 720;
5040, 13068, 48412, 85177, 173460, 223418, 313628, 302619, 313628, 223418, 173460, 85177, 48412, 13068, 5040;
40320, 109584, 440684, 834372, 1860153, 2642220, 4120122, 4521924, 5320667, 4521924, 4120122, 2642220, 1860153, 834372, 440684, 109584, 40320; ...
in which the central terms equal this sequence.
RELATED SEQUENCES.
Note that the terms in the secondary diagonal A322237 in the above triangle
[1, 3, 24, 160, 1890, 19866, 313628, 4521924, 89489025, 1642616195, ...]
may be divided by triangular numbers to obtain A322236:
[1, 1, 4, 16, 126, 946, 11201, 125609, 1988645, 29865749, 592326527, ...].
		

Crossrefs

Cf. A322228 (variant), A322894 (variant).

Programs

  • PARI
    {T(n,k) = polcoeff( prod(m=1,n, m + x + m*x^2) +x*O(x^k), k)}
    /* Print the irregular triangle */
    for(n=0,10, for(k=0,2*n, print1( T(n,k),", "));print(""))
    /* Print this sequence */
    for(n=0,30, print1( T(n,n),", "))

Formula

a(n+1) = 2*(n+1) * A322237(n) + a(n), for n >= 1.
a(n+1) = n*(n+1)^2 * A322236(n) + a(n), for n >= 1.

A322226 a(n) = A322227(n) / (n*(n+1)/2), where A322227(n) = [x^(n-1)] Product_{k=1..n} (k + x - k*x^2), for n >= 1.

Original entry on oeis.org

1, 1, -2, -14, 36, 736, -1819, -88227, 163185, 19160769, -15294993, -6611719113, -4120456053, 3331391605595, 7909978546731, -2311176691053557, -10230565685787877, 2114443392338548619, 14290732101459857168, -2468208492961535459212, -23089123066195736850322, 3581650102772343613724618, 43704098963536055443651815, -6326399008631824968253597825, -96742680150222152446019734205
Offset: 1

Views

Author

Paul D. Hanna, Dec 15 2018

Keywords

Examples

			The irregular triangle A322225 formed from coefficients of x^k in Product_{m=1..n} (m + x - m*x^2), for n >= 0, k = 0..2*n, begins
1;
1, 1, -1;
2, 3, -3, -3, 2;
6, 11, -12, -21, 12, 11, -6;
24, 50, -61, -140, 75, 140, -61, -50, 24;
120, 274, -375, -1011, 540, 1475, -540, -1011, 375, 274, -120;
720, 1764, -2696, -8085, 4479, 15456, -5005, -15456, 4479, 8085, -2696, -1764, 720;
5040, 13068, -22148, -71639, 42140, 169266, -50932, -221389, 50932, 169266, -42140, -71639, 22148, 13068, -5040; ...
in which the central terms equal A322228.
RELATED SEQUENCES.
Note that the terms in the secondary diagonal A322227 in the above triangle
[1, 3, -12, -140, 540, 15456, -50932, -3176172, 7343325, 1053842295, ...]
may be divided by triangular numbers to obtain this sequence
[1, 1, -2, -14, 36, 736, -1819, -88227, 163185, 19160769, -15294993, ...].
		

Crossrefs

Cf. A322236 (variant), A322894 (variant).

Programs

  • Mathematica
    a[n_] := SeriesCoefficient[Product[k + x - k x^2, {k, 1, n}], {x, 0, n - 1}]/(n (n + 1)/2);
    Array[a, 25] (* Jean-François Alcover, Dec 29 2018 *)
  • PARI
    {A322225(n, k) = polcoeff( prod(m=1, n, m + x - m*x^2) +x*O(x^k), k)}
    /* Print the irregular triangle */
    for(n=0, 10, for(k=0, 2*n, print1( A322225(n, k), ", ")); print(""))
    /* Print this sequence */
    for(n=1, 30, print1( A322225(n, n-1)/(n*(n+1)/2), ", "))
Showing 1-3 of 3 results.