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.

Showing 1-2 of 2 results.

A064643 Bidirectional 'Delannoy' variation of the Boustrophedon transform applied to all 1's sequence: Fill an triangular array in alternating directions. Let the first element of each row in that direction be equal to 1. Each next entry is given by T(n,k) = T(n,k +/- 1) + T(n-1,k-1) + T(n-1,k) + T(n-2,k-1), where the +/- depends on which is the previous element in the direction one is filling in the row. The final number of row n gives a(n).

Original entry on oeis.org

1, 2, 6, 22, 105, 631, 4603, 39469, 388870, 4327322, 53670985, 734069672, 10975379510, 178080287645, 3116286236549, 58502460526469
Offset: 0

Views

Author

Floor van Lamoen, Oct 03 2001

Keywords

Crossrefs

Cf. A064641. Table: A064644, Delannoy numbers A008288.

A107783 Array defined in A064643 read in direction in which it was created.

Original entry on oeis.org

1, 1, 2, 1, 5, 6, 1, 13, 21, 22, 1, 45, 84, 104, 105, 1, 211, 412, 562, 630, 631, 1, 1263, 2500, 3558, 4285, 4602, 4603, 1, 9207, 18305, 26560, 33180, 37573, 39468, 39469, 1, 78939, 157243, 230496, 293794, 342944, 375058, 388869, 388870, 1, 777741
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2005

Keywords

Crossrefs

Programs

  • Maple
    A107783 := proc(n,k) option remember ; if n < 0 or k < 0 or k > n then 0 ; elif n =0 then 1; elif n mod 2 = 1 then if n = k then 1; else A107783(n,k+1)+A107783(n-1,k-1)+A107783(n-1,k)+A107783(n-2,k-1) ; fi ; else if k = 0 then 1; else A107783(n,k-1)+A107783(n-1,k-1)+A107783(n-1,k)+A107783(n-2,k-1) ; fi ; fi ; end: for n from 0 to 11 do if ( n mod 2 ) = 1 then kstrt := n ; else kstrt := 0 ; fi ; kend := n-kstrt : for k from kstrt to kend by sign(kend-kstrt) do printf("%d,",A107783(n,k)) ; od: od: # R. J. Mathar, Aug 13 2007

Extensions

More terms from R. J. Mathar, Aug 13 2007
Showing 1-2 of 2 results.