OFFSET
1,2
COMMENTS
This sequence counts all joining paths that move in one of the following ways: UP and RIGHT only; UP, RIGHT, and LEFT only; UP, RIGHT, and DOWN only.
FORMULA
a(n) = 2*(n+1)^n - C(2*n,n).
MATHEMATICA
Table[2 (n + 1)^n - Binomial[2 n, n], {n, 0, 18}] (* Michael De Vlieger, Dec 02 2015 *)
PROG
(Magma) [2*(n+1)^n-Binomial(2*n, n): n in [0..20]]; // Vincenzo Librandi, Dec 03 2015
(PARI) a(n) = 2*(n+1)^n - binomial(2*n, n); \\ Altug Alkan, Dec 03 2015
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Theodore M. Mishura, Dec 02 2015
STATUS
approved