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.

A114002 Expansion of g.f. x^k(1+x^(k+1))/(1-x^(k+1)).

Original entry on oeis.org

1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 0, 0, 0, 1, 2, 2, 2, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 2, 2, 0, 2, 0, 0, 0, 1, 2, 0, 2, 0, 0, 0, 0, 0, 1, 2, 2, 0, 0, 2, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 0, 2, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1
Offset: 0

Views

Author

Paul Barry, Nov 12 2005

Keywords

Comments

Inverse is A114004. Row sums are A114003.

Examples

			Triangle begins:
  1;
  2, 1;
  2, 0, 1;
  2, 2, 0, 1;
  2, 0, 0, 0, 1;
  2, 2, 2, 0, 0, 1;
  2, 0, 0, 0, 0, 0, 1;
  ...
		

Crossrefs

Programs

  • Mathematica
    T[n_,k_]:=SeriesCoefficient[x^k(1+x^(k+1))/(1-x^(k+1)),{x,0,n}]; Table[T[n,k],{n,0,13},{k,0,n}] //Flatten (* Stefano Spezia, Sep 08 2023 *)

Formula

Column k has g.f. x^k(1+x^(k+1))/(1-x^(k+1)).
Equals 2*A051731 - I, I = Identity matrix. - Gary W. Adamson, Nov 07 2007