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.

A128180 A002260 * A097807.

Original entry on oeis.org

1, -1, 2, 2, -1, 3, -2, 3, -1, 4, 3, -2, 4, -1, 5, -3, 4, -2, 5, -1, 6, 4, -3, 5, -2, 6, -1, 7, -4, 5, -3, 6, -2, 7, -1, 8, 5, -4, 6, -3, 7, -2, 8, -1, 9, -5, 6, -4, 7, -3, 8, -2, 9, -1, 10
Offset: 1

Views

Author

Gary W. Adamson, Feb 17 2007

Keywords

Comments

Row sums = A008794: (1, 1, 4, 4, 9, 9, 16, 16, ...).
Unsigned row sums = the triangular sequence, A000217: (1, 3, 6, 10, ...) by virtue of the fact that each row is a permutation of the natural numbers.

Examples

			Triangle begins:
   1;
  -1,  2;
   2, -1,  3;
  -2,  3, -1,  4;
   3, -2,  4, -1,  5;
  -3,  4, -2,  5, -1,  6;
   4, -3,  5, -2,  6, -1,  7;
  ...
		

Crossrefs

Programs

Formula

A002260 * A097807 as infinite lower triangular matrices.
From Franklin T. Adams-Watters, Apr 12 2011: (Start)
T(n,k) = (2k - 1 + (-1)^(n-k)*(2n+1))/4.
|T(n,k)| = (2n+1 + (-1)^(n-k)*(2k-1))/4. (End)