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.

A140685 Triangle T(n,k) read by rows: T(n,k) = 1 if n is odd and k=(n-1)/2; T(n,k) = 2 otherwise.

Original entry on oeis.org

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

Views

Author

Roger L. Bagula and Mats Granvik, Jul 11 2008

Keywords

Comments

Row sums give A042948.

Examples

			The triangle starts in row n=1 with columns 0 <= k < n as:
  1;
  2, 2;
  2, 1, 2;
  2, 2, 2, 2;
  2, 2, 1, 2, 2;
  2, 2, 2, 2, 2, 2;
  2, 2, 2, 1, 2, 2, 2;
  2, 2, 2, 2, 2, 2, 2, 2;
  2, 2, 2, 2, 1, 2, 2, 2, 2;
  2, 2, 2, 2, 2, 2, 2, 2, 2, 2;
		

Crossrefs

Programs

Extensions

Definition simplified by the Assoc. Eds. of the OEIS, Oct 12 2010
More terms from Antti Karttunen, Oct 10 2017