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.

A131406 3*A128174 - 2*A000012(signed).

Original entry on oeis.org

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

Views

Author

Gary W. Adamson, Jul 07 2007

Keywords

Comments

Row sums = A032766, congruent to {0,1} mod 3: (1, 3, 4, 6, 7, 9, 10,...).
Sequence array for the expansion of (1+2x)/(1-x^2). A105476 is an eigensequence. [From Paul Barry, Nov 03 2010]

Examples

			First few rows of the triangle are:
1;
2, 1;
1, 2, 1;
2, 1, 2, 1;
1, 2, 1, 2, 1;
2, 1, 2, 1, 2, 1;
...
		

Crossrefs

Programs

  • Mathematica
    T[n_, k_] := Mod[n-k, 2]+1; Table[T[n, k], {n, 1, 10}, {k, 1, n}] // Flatten (* Jean-François Alcover, Nov 17 2016 *)

Formula

3*A128174 - 2*A000012(signed + - + 1 by columns). (1, 2, 1, 2, 1,...) in every column.
Triangle T(n,k)=if(k<=n,(3-(-1)^(n-k))/2). [From Paul Barry, Nov 03 2010]