%I #15 Oct 30 2022 09:00:50
%S 1,1,3,2,5,6,14,20,45,70,154,252,546,924,1980,3432,7293,12870,27170,
%T 48620,102102,184756,386308,705432,1469650,2704156,5616324,10400600,
%U 21544100,40116600,82907640,155117520,319929885,601080390,1237518450
%N a(n) = Sum_{i=0..floor(n/2)} T(i,n-i), array T as in A047072.
%H G. C. Greubel, <a href="/A047074/b047074.txt">Table of n, a(n) for n = 0..1000</a>
%t A[n_, k_]:= A[n, k]= If[k==n, 2*CatalanNumber[n-1] +2*Boole[n==0], If[k>n, Binomial[n+k-1,n] -Binomial[n+k-1,n-1], Binomial[n+k-1,k] - Binomial[n+k-1, k - 1]]];
%t A047074[n_]:= Sum[A[j, n-j], {j,0,Floor[n/2]}] +Boole[n==0];
%t Table[A047074[n], {n, 0, 50}] (* _G. C. Greubel_, Oct 29 2022 *)
%o (Magma)
%o b:= func< n | n eq 0 select 1 else 2*Catalan(n-1) >;
%o function A(n, k)
%o if k eq n then return b(n);
%o elif k gt n then return Binomial(n+k-1, n) - Binomial(n+k-1, n-1);
%o else return Binomial(n+k-1, k) - Binomial(n+k-1, k-1);
%o end if; return A;
%o end function;
%o [(&+[A(j, n-j): j in [0..Floor(n/2)]]): n in [0..50]]; // _G. C. Greubel_, Oct 29 2022
%o (SageMath)
%o def A047072(n, k): # array
%o if (k==n): return 2*catalan_number(n-1) + 2*int(n==0)
%o elif (k>n): return binomial(n+k-1, n) - binomial(n+k-1, n-1)
%o else: return binomial(n+k-1, k) - binomial(n+k-1, k-1)
%o def A047074(n): return sum( A047072(j, n-j) for j in range((n//2)+1) )
%o [A047074(n) for n in range(51)] # _G. C. Greubel_, Oct 29 2022
%Y Cf. A047072, A047073, A047079.
%K nonn
%O 0,3
%A _Clark Kimberling_
%E Extra leading 1 removed by _Sean A. Irvine_, May 11 2021