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.

A155040 A symmetric (1,-1)-triangle.

Original entry on oeis.org

1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1
Offset: 0

Views

Author

Paul Barry, Jan 19 2009

Keywords

Comments

Row sums are A007877(n+1). Diagonal sums are A155041.

Examples

			Triangle begins
.1,
.1, 1,
.1, -1, 1,
.1, -1, -1, 1,
.1, -1, 1, -1, 1,
.1, -1, 1, 1, -1, 1,
.1, -1, 1, -1, 1, -1, 1,
.1, -1, 1, -1, -1, 1, -1, 1,
.1, -1, 1, -1, 1, -1, 1, -1, 1,
.1, -1, 1, -1, 1, 1, -1, 1, -1, 1,
.1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1,
.1, -1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1
		

Formula

Number triangle T(n,k)=sum{j=0..n, [j<=k]*[j<=n-k]*(-1)*(((-1)^(j+1)-0^(j+1))-((-1)^j-0^j))}.