OFFSET
1,2
FORMULA
a(n) = C(2(n+1),n+1) - a(n-1) with a(1) = 1. - Chai Wah Wu, Jan 19 2022
MATHEMATICA
PROG
(Python)
from math import comb
def A349554(n): return (1 if n % 2 else -1)*(sum((-1 if k % 2 else 1)*comb(2*k, k) for k in range(n+2))-4) # Chai Wah Wu, Jan 19 2022
(PARI) a(n) = (-1)^(n+1)*sum(k=0, n+1, (-1)^k*binomial(2*k, k)) + 4*(-1)^n; \\ Michel Marcus, Jan 19 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Dec 30 2021
STATUS
approved