OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
FORMULA
a(n) = Sum_{j=0..2*n} Sum_{k=0..j} A026536(j, k).
MATHEMATICA
PROG
(SageMath)
@CachedFunction
def T(n, k): # A026536
if k == 0 or k == 2*n: return 1
elif k == 1 or k == 2*n-1: return n//2
elif n % 2 == 1: return T(n-1, k-2) + T(n-1, k)
return T(n-1, k-2) + T(n-1, k-1) + T(n-1, k)
def A352972(n): return sum(sum(T(j, k) for k in (0..j)) for j in (0..2*n))
[A352972(n) for n in (3..40)]
CROSSREFS
KEYWORD
nonn
AUTHOR
G. C. Greubel, Apr 12 2022
STATUS
approved