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.

A115356 Matrix (1,x)+(x,x^2) in Riordan array notation.

Original entry on oeis.org

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

Views

Author

Paul Barry, Jan 21 2006

Keywords

Comments

As a flat sequence, with starting offset=1, a(n) = 1 if n is a triangular number (A000217) or twice a square (A001105), otherwise 0. - Antti Karttunen, Jan 19 2025

Examples

			Triangle begins:
n\k| 0  1  2  3  4  5  6  7  8  9
---+-------------------------------
0  | 1;
1  | 1, 1;
2  | 0, 0, 1;
3  | 0, 1, 0, 1;
4  | 0, 0, 0, 0, 1;
5  | 0, 0, 1, 0, 0, 1;
6  | 0, 0, 0, 0, 0, 0, 1;
7  | 0, 0, 0, 1, 0, 0, 0, 1;
8  | 0, 0, 0, 0, 0, 0, 0, 0, 1;
9  | 0, 0, 0, 0, 1, 0, 0, 0, 0, 1;
(row and column numbering added by _Antti Karttunen_, Jan 19 2025)
		

Crossrefs

Row sums are A000034. Diagonal sums are A115357. Inverse is A115358.
Cf. also A115359.

Programs

Formula

Number triangle T(n, k) = if(n=k, 1, 0) OR if(n=2k+1, 1, 0).
a(n) = A010054(n) + A379480(n). [As a flat sequence with starting offset 1] - Antti Karttunen, Jan 19 2025