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.

A118435 Triangle T, read by rows, equal to the matrix product T = H*[C^-1]*H, where H is the self-inverse triangle A118433 and C is Pascal's triangle.

Original entry on oeis.org

1, 1, 1, -3, 2, 1, -11, 15, 3, 1, 25, -44, -18, 4, 1, 41, -115, -110, 50, 5, 1, -43, 246, 375, -220, -45, 6, 1, 29, 315, 861, -805, -385, 105, 7, 1, -335, 232, -1204, 2296, 1750, -616, -84, 8, 1, -1199, 3033, 1044, 3780, 5166, -2898, -924, 180, 9, 1
Offset: 0

Views

Author

Paul D. Hanna, Apr 28 2006

Keywords

Comments

The matrix inverse of H*[C^-1]*H is H*C*H = A118438, where H^2 = I (identity). The matrix log, log(T) = A118441, is a matrix square root of a triangular matrix with a single diagonal (two rows down from the main diagonal).

Examples

			Triangle begins:
  1;
  1, 1;
  -3, 2, 1;
  -11, 15, 3, 1;
  25,-44,-18, 4, 1;
  41,-115,-110, 50, 5, 1;
  -43, 246, 375,-220,-45, 6, 1;
  29, 315, 861,-805,-385, 105, 7, 1;
  -335, 232,-1204, 2296, 1750,-616,-84, 8, 1;
  -1199, 3033, 1044, 3780, 5166,-2898,-924, 180, 9, 1;
  ...
The matrix log, log(T) = A118441, starts:
  0;
  1, 0;
  -4, 2, 0;
  -12, 12, 3, 0;
  32,-48,-24, 4, 0;
  80,-160,-120, 40, 5, 0;
  ...
where matrix square, log(T)^2, is a single diagonal:
  0;
  0,0;
  2,0,0;
  0,6,0,0;
  0,0,12,0,0;
  0,0,0,20,0,0;
  ...
		

Crossrefs

Cf. A118436 (column 0), A118437 (row sums), A118438 (matrix inverse), A118441 (matrix log), A118433 (self-inverse H).

Programs

  • Mathematica
    nmax = 12;
    h[n_, k_] := Binomial[n, k]*(-1)^(Quotient[n+1, 2] - Quotient[k, 2]+n-k);
    H = Table[h[n, k], {n, 0, nmax}, {k, 0, nmax}];
    Cn = Table[Binomial[n, k], {n, 0, nmax}, {k, 0, nmax}];
    Tn = H.Inverse[Cn].H;
    T[n_, k_] := Tn[[n+1, k+1]];
    Table[T[n, k], {n, 0, nmax}, {k, 0, n}] // Flatten (* Jean-François Alcover, Apr 08 2024 *)
  • PARI
    {T(n,k)=local(M=matrix(n+1,n+1,r,c,if(r>=c,binomial(r-1,c-1)*(-1)^(r\2- (c-1)\2+r-c))),C=matrix(n+1,n+1,r,c,if(r>=c,binomial(r-1,c-1))));(M*C^-1*M)[n+1,k+1]}

Formula

Since T + T^-1 = C + C^-1, then [T^-1](n,k) = (1+(-1)^(n-k))*C(n,k) - T(n,k) is a formula for the matrix inverse T^-1 = A118438.

A118436 Column 0 of triangle A118435.

Original entry on oeis.org

1, 1, -3, -11, 25, 41, -43, 29, -335, -1199, 3117, 6469, -10295, -8839, -16123, -108691, 354145, 873121, -1721763, -2521451, 1476985, -6699319, 34182197, 103232189, -242017775, -451910159, 597551757, 130656229, 2465133865, 10513816601, -29729597083, -66349305331
Offset: 0

Views

Author

Paul D. Hanna, Apr 28 2006

Keywords

Comments

Binomial transform of A118434 = (1, 1, 3, 11, 25, 41, 43, -29, -335, -1199, ...). - Gary W. Adamson, Sep 19 2008

Crossrefs

Cf. A118434, A118435 (triangle), A118437 (row sums).

Programs

  • Mathematica
    LinearRecurrence[{0, -5, 0, -19, 0, 25}, {1, 1, -3, -11, 25, 41}, 32] (* Jean-François Alcover, Apr 08 2024 *)
    CoefficientList[Series[(1+x+2x^2-6x^3+29x^4+5x^5)/((1-x^2)(1+6x^2+25x^4)),{x,0,40}],x] (* Harvey P. Dale, Oct 17 2024 *)
  • PARI
    {a(n)=polcoeff((1+x+2*x^2-6*x^3+29*x^4+5*x^5)/(1-x^2)/(1+6*x^2+25*x^4+x*O(x^n)),n)}

Formula

G.f.: (1 + x + 2*x^2 - 6*x^3 + 29*x^4 + 5*x^5)/((1-x^2)*(1 + 6*x^2 + 25*x^4)).

A118440 Row sums of triangle A118438.

Original entry on oeis.org

1, 0, 4, 0, 48, 160, -256, 0, -1792, -7680, 16384, 0, 135168, 532480, -1048576, 0, -8323072, -33423360, 67108864, 0, 537919488, 2149580800, -4294967296, 0, -34342961152, -137405399040, 274877906944, 0, 2199291691008, 8796629893120, -17592186044416, 0, -140733193388032, -562941363486720
Offset: 0

Views

Author

Paul D. Hanna, Apr 28 2006

Keywords

Crossrefs

Cf. A118438 (triangle), A118439 (column 0); A118437 (row sums of inverse).

Programs

  • Mathematica
    CoefficientList[Series[(1-2x+8x^2-16x^3+128x^4-96x^5+128x^6-256x^7)/ (1-2x)/(1+4x^2)/(1+64x^4),{x,0,50}],x] (* or *) Join[{1}, LinearRecurrence[ {2,-4,8,-64,128,-256,512},{0,4,0,48,160,-256,0},50]]  (* Harvey P. Dale, Apr 30 2011 *)
  • PARI
    {a(n)=polcoeff((1-2*x+8*x^2-16*x^3+128*x^4-96*x^5+128*x^6-256*x^7)/(1-2*x)/(1+4*x^2)/(1+64*x^4+x*O(x^n)),n)}

Formula

G.f.: (1-2*x+8*x^2-16*x^3+128*x^4-96*x^5+128*x^6-256*x^7)/(1-2*x)/(1+4*x^2)/(1+64*x^4).
Showing 1-3 of 3 results.