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.

A165992 Triangle read by rows: T(n,0) = 3^n, T(n,k) = T(n,k-1) + T(n-1,k) for 0 < k < n, and T(n,n) = T(n,n-1).

Original entry on oeis.org

1, 3, 3, 9, 12, 12, 27, 39, 51, 51, 81, 120, 171, 222, 222, 243, 363, 534, 756, 978, 978, 729, 1092, 1626, 2382, 3360, 4338, 4338, 2187, 3279, 4905, 7287, 10647, 14985, 19323, 19323, 6561, 9840, 14745, 22032, 32679, 47664, 66987, 86310, 86310, 19683
Offset: 0

Views

Author

Gerald McGarvey, Oct 03 2009

Keywords

Crossrefs

A007854 (main diagonal)

Programs

  • PARI
    s=10;M=matrix(s,s);for(n=1,s,M[n,1]=3^(n-1)); for(n=2,s,for(k=2,n,M[n,k]=M[n,k-1]+M[n-1,k])); for(n=1,10,for(k=1,n,print1(M[n,k],", ")))