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.
%I A123191 #7 Mar 12 2014 16:37:00 %S A123191 1,-1,1,-1,3,-1,-1,3,-3,1,-1,3,-3,3,-1,-1,3,-3,3,-3,1,-1,3,-3,3,-3,3, %T A123191 -1,-1,3,-3,3,-3,3,-3,1,-1,3,-3,3,-3,3,-3,3,-1,-1,3,-3,3,-3,3,-3,3,-3, %U A123191 1,-1,3,-3,3,-3,3,-3,3,-3,3,-1 %N A123191 Triangle read by rows: T(n,k) is the coefficient of x^k in the polynomial P[n] defined by P[0]=1, P[1]=x-1, P[n]=(1-x)P[n-1]+xP[n-2] for n>=2. Alternatively, P[n]=-1-(-x)^n-3*Sum((-x)^k,k=1..n-1). %F A123191 T(0,0)=1; T(n,n)=(-1)^(n+1) for n>=1; T(n,0)=-1 for n>=1; T(n,k)=(-1)^(k+1)*3 for n>=2, 1<=k<=n-1. G.f.=G(t,x)=(1+2tx-2x)/[(1-x)(1+tx)]. %e A123191 Triangle starts: %e A123191 1; %e A123191 -1,1; %e A123191 -1,3,-1; %e A123191 -1,3,-3,1; %e A123191 -1,3,-3,3,-1; %e A123191 -1,3,-3,3,-3,1; %p A123191 T:=proc(n,k): if n=0 and k=0 then 1 elif k=n then (-1)^(n+1) elif k=0 then -1 else (-1)^(k+1)*3 fi end: for n from 0 to 12 do seq(T(n,k),k=0..n) od; # yields sequence in triangular form %t A123191 p[0, x] = 1; p[1, x] = x - 1; p[k_, x_] := p[k, x] = (1 - x)*p[k - 1, x] + x*p[k - 2, x]; w = Table[CoefficientList[p[n, x], x], {n, 0, 10}]; Flatten[w] %K A123191 sign,tabl %O A123191 0,5 %A A123191 _Roger L. Bagula_, Oct 03 2006 %E A123191 Edited by _N. J. A. Sloane_, Oct 29 2006