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.

A166453 Triangle read by rows, square of Sierpinski's gasket, (A047999)^2.

Original entry on oeis.org

1, 2, 1, 2, 0, 1, 4, 2, 2, 1, 2, 0, 0, 0, 1, 4, 2, 0, 0, 2, 1, 4, 0, 2, 0, 2, 0, 1, 8, 4, 4, 2, 4, 2, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 1, 4, 2, 0, 0, 0, 0, 0, 0, 2, 1, 4, 0, 2, 0, 0, 0, 0, 0, 2, 0, 1
Offset: 0

Views

Author

Gary W. Adamson, Oct 13 2009

Keywords

Comments

Row sums = A048883: (1, 3, 3, 9, 3, 9, 9, 27, 3, 9, 9, 27,...)
Left border = A001316

Examples

			First few rows of the triangle =
1;
2, 1;
2, 0, 1;
4, 2, 2, 1;
2, 0, 0, 0, 1;
4, 2, 0, 0, 2, 1;
4, 0, 2, 0, 2, 0, 1;
8, 4, 4, 2, 4, 2, 2, 1;
2, 0, 0, 0, 0, 0, 0, 0, 1;
4, 2, 0, 0, 0, 0, 0, 0, 2, 1;
4, 0, 2, 0, 0, 0, 0, 0, 2, 0, 1;
8, 4, 4, 2, 0, 0, 0, 0, 4, 2, 2, 1;
4, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1;
...
		

Crossrefs

Programs

  • Mathematica
    rows = 11;
    T = PadRight[#, rows]& /@ Mod[NestList[Prepend[#, 0] + Append[#, 0]&, {1}, rows-1], 2];
    T2 = T.T;
    Table[T2[[i, j]], {i, 1, rows}, {j, 1, i}] // Flatten (* Jean-François Alcover, Aug 08 2018, after Robert G. Wilson v *)

Formula

(A047999)^2, as an infinite lower triangular matrix.