OFFSET
1,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=4 the 5 paths are UDUD.UDUD, UUDD.UDUD, UDUD.UUDD, UUDD.UUDD and UUUD.UDDD where dot marks the midpoint.
MAPLE
C:= n-> binomial (2*n, n)/(n+1):
a:= n-> C(n-1) -`if` (irem(n, 2)=1, C((n-1)/2)^2, 0):
seq (a(n), n=1..40);
CROSSREFS
KEYWORD
nonn
AUTHOR
David Scambler, Feb 11 2011
STATUS
approved