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.

A114284 Riordan array ((1-3*x)/(1-x), x).

Original entry on oeis.org

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

Views

Author

Paul Barry, Nov 20 2005

Keywords

Comments

Inverse of A114283. Row sums are 1-2n. Diagonal sums are A114285. Sequence array of 3*0^n-2.

Examples

			Triangle begins:
  1;
  -2,1;
  -2,-2,1;
  -2,-2,-2,1;
  -2,-2,-2,-2,1;
		

Programs

  • Mathematica
    Table[-2 - 3 Floor[1/2 (-1 + Sqrt[1 + 8 x])] + 3 Floor[1/2 (-1 + Sqrt[9 + 8 x])], {x, 0, 65}] (* Jackson Xier, Oct 07 2011 *)

Formula

T(n, k) = if(k<=n, 3*0^(n-k)-2, 0).
a(n) = -3*floor((1/2)*sqrt(8*n+1)-1/2)+3*floor((1/2)*sqrt(8*n+9)-1/2)-2. - Jackson Xier, Oct 07 2011