Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #8 Dec 18 2021 04:01:30
%S 1,1,2,2,7,8,24,28,93,111,362,436,1452,1763,5880,7176,24089,29521,
%T 99386,122182,412637,508595,1721500,2126312,7211536,8923136,30312960,
%U 37563930,127790379,158563368,540082784,670893296,2287577537
%N a(n) = T(n, floor(n/2)), where T is given by A026552.
%H G. C. Greubel, <a href="/A026563/b026563.txt">Table of n, a(n) for n = 0..1000</a>
%F a(n) = A026552(n, floor(n/2)).
%t T[n_, k_]:= T[n, k]= If[k==0 || k==2*n, 1, If[k==1 || k==2*n-1, Floor[(n+2)/2], If[EvenQ[n], T[n-1, k-2] + T[n-1, k] + T[n-1, k-1], T[n-1, k-2] + T[n-1, k]]]]; (* T=A026552 *)
%t a[n_]:= a[n]= Block[{$RecursionLimit = Infinity}, T[n, Floor[n/2]]];
%t Table[a[n], {n,0,40}] (* _G. C. Greubel_, Dec 18 2021 *)
%o (Sage)
%o @CachedFunction
%o def T(n,k): # T = A026552
%o if (k==0 or k==2*n): return 1
%o elif (k==1 or k==2*n-1): return (n+2)//2
%o elif (n%2==0): return T(n-1, k) + T(n-1, k-1) + T(n-1, k-2)
%o else: return T(n-1, k) + T(n-1, k-2)
%o [T(n,n//2) for n in (0..40)] # _G. C. Greubel_, Dec 18 2021
%Y Cf. A026552, A026553, A026554, A026555, A026556, A026557, A026558, A026559, A026560, A026566, A026567, A027272, A027273, A027274, A027275, A027276.
%K nonn
%O 0,3
%A _Clark Kimberling_