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.

A071948 Triangle read by rows of numbers of paths in a lattice satisfying certain conditions.

Original entry on oeis.org

1, 1, 2, 1, 4, 7, 1, 6, 18, 30, 1, 8, 33, 88, 143, 1, 10, 52, 182, 455, 728, 1, 12, 75, 320, 1020, 2448, 3876, 1, 14, 102, 510, 1938, 5814, 13566, 21318, 1, 16, 133, 760, 3325, 11704, 33649, 76912, 120175, 1, 18, 168, 1078, 5313, 21252, 70840, 197340, 444015
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2002

Keywords

Comments

This is the table of h(n,k) in the notation of Carlitz (p.125). The triangle (with an offset of 1 rather than 0) enumerates two-line arrays of positive integers
............1 a_2 ... a_(n-1) a_n..........
............1 b_2 ... b_(n-1) b_n..........
such that a_i <= i (2 <= i <= n) and b_2 <= a_2 <= ... <= b_n <= a_n = k.
See A193091 and A211788 for other two-line array enumerations. - Peter Bala, Aug 02 2012

Examples

			Triangle begins
  1;
  1, 2;
  1, 4,  7;
  1, 6, 18, 30;
  1, 8, 33, 88, 143;
		

Crossrefs

Row sums give A001764.
Rows are the reversals of the rows of A092276.

Programs

  • Maple
    T := proc(n,k) if k<=n then (n-k+1)*binomial(2*n+k+1,k)/(n+1) else 0 fi end: seq(seq(T(n,k),k=0..n),n=0..10);
  • Mathematica
    t[n_, k_] /; k <= n := (n-k+1)*Binomial[2*n+k+1, k]/(n+1); t[, ] = 0; Table[t[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jan 14 2014 *)
  • Sage
    # Computes the first n rows of the triangle.
    def A071948_triangle(n) :
        D = [0 for i in (0..n+1)]; D[1] = 1
        for i in (4..2*n+3) :
            h = i//2 - 1
            for k in (1..h) : D[k] += D[k-1]
            if i%2 == 1 : print([D[z] for z in (1..h)])
    A071948_triangle(10)  # Peter Luschny, Apr 01 2012

Formula

T(n, n) = A006013(n).
T(n, k) = (n-k+1)binomial(2n+k+1, k)/(n+1) if k<=n.
Let M = the infinite square production matrix
2, 1;
3, 2, 1;
4, 3, 2, 1;
5, 4, 3, 2, 1;
...
The top row of M^n gives reversed terms of n-th row of triangle A071948; with leftmost terms of each row generating A006013 starting (1, 2, 7, 30, 143, ...). - Gary W. Adamson, Jul 07 2011

Extensions

Edited by Emeric Deutsch, Mar 04 2004