OFFSET
0,8
COMMENTS
Touches here includes the case where a step touches the line at a midpoint.
EXAMPLE
Diagonals (starting on row #0): {1}; {1,1}; {1,1,1}; {1,2,2,1}; {1,3,2,1,1}; ...
T(2,3) = 5; the 5 allowed paths to (2,3) are UUURR, UURUR, UURRU, URUUR, and URURU.
PROG
(PARI) T(h, k)=if(h==0 || k==0, 1, T(h-1, k)*(h-1!=2*k)+T(h, k-1)*(h!=2*k-2 && h!=2*k-1)) /* Inefficient. */
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
EXTENSIONS
Definition corrected by Franklin T. Adams-Watters, Mar 10 2011
STATUS
approved