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.

A134482 Triangle read by rows: row n consists of n followed by the numbers n through 2n-2.

Original entry on oeis.org

1, 2, 2, 3, 3, 4, 4, 4, 5, 6, 5, 5, 6, 7, 8, 6, 6, 7, 8, 9, 10, 7, 7, 8, 9, 10, 11, 12, 8, 8, 9, 10, 11, 12, 13, 14, 9, 9, 10, 11, 12, 13, 14, 15, 16, 10, 10, 11, 12, 13, 14, 15, 16, 17, 18, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 12, 12, 13, 14, 15, 16
Offset: 1

Views

Author

Gary W. Adamson, Oct 27 2007

Keywords

Comments

Row sums = A005448.

Examples

			First few rows of the triangle are:
1;
2, 2;
3, 3, 4;
4, 4, 5, 6;
5, 5, 6, 7, 8;
6, 6, 7, 8, 9, 10;
7, 7, 8, 9, 10, 11, 12;
...
		

Crossrefs

Cf. A005448.

Programs

  • Maple
    T:=proc(n,k) if nEmeric Deutsch, Nov 24 2007
  • Mathematica
    Flatten[Table[Join[{n},Range[n,2n-2]],{n,12}]] (* Harvey P. Dale, Jun 18 2013 *)

Formula

T(n,1)=n, T(n,k)=n+k-2 for 2<=k<=n. G.f.=z(1-2tz+2zt^2-t^3*z^3)/[(1-z)(1-tz)]^2. - Emeric Deutsch, Nov 24 2007

Extensions

Corrected and extended by Harvey P. Dale, Jun 18 2013