%I #14 Nov 01 2019 03:54:57
%S 1,2,4,9,18,41,82,188,376,867,1734,4020,8040,18735,37470,87735,175470,
%T 412715,825430,1949624,3899248,9245721,18491442,44003717,88007434,
%U 210121733,420243466,1006390014,2012780028,4833517551
%N a(n) = Sum_{k=0..n} T(n,k), T given by A026758.
%H G. C. Greubel, <a href="/A026765/b026765.txt">Table of n, a(n) for n = 0..1000</a>
%F Conjecture: G.f.: -(1-2*x-5*x^2+10*x^3 - sqrt(1-10*x^2+29*x^4-20*x^6) )/(2*x*(1-2*x-5*x^2+10*x^3)). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009
%F Conjecture: (n+1)*a(n) -2*a(n-1) +2*(-5*n+3)*a(n-2) +12*a(n-3) +(29*n-71)*a(n-4) -10*a(n-5) +20*(-n+5)*a(n-6)=0. - _R. J. Mathar_, Jun 30 2013
%F Conjecture: a(n) ~ (2+sqrt(5) + (-1)^n*(2-sqrt(5))) * 5^(n/2) / sqrt(2*Pi*n). - _Vaclav Kotesovec_, Feb 12 2014
%p T:= proc(n,k) option remember;
%p if n<0 then 0;
%p elif k=0 or k = n then 1;
%p elif type(n,'odd') and k <= (n-1)/2 then
%p procname(n-1,k-1)+procname(n-2,k-1)+procname(n-1,k) ;
%p else
%p procname(n-1,k-1)+procname(n-1,k) ;
%p end if ;
%p end proc;
%p seq(add(T(n,k), k=0..n), n=0..30); # _G. C. Greubel_, Oct 31 2019
%t T[n_, k_]:= T[n, k]= If[n<0, 0, If[k==0 || k==n, 1, If[OddQ[n] && k<=(n - 1)/2, T[n-1, k-1] + T[n-2, k-1] + T[n-1, k], T[n-1, k-1] + T[n-1, k] ]]]; Table[Sum[T[n,k],{k,0,n}], {n, 0, 30}] (* _G. C. Greubel_, Oct 31 2019 *)
%o (Sage)
%o @CachedFunction
%o def T(n, k):
%o if (n<0): return 0
%o elif (k==0 or k==n): return 1
%o elif (mod(n,2)==1 and k<=(n-1)/2): return T(n-1,k-1) + T(n-2,k-1) + T(n-1,k)
%o else: return T(n-1,k-1) + T(n-1,k)
%o [sum(T(n,k) for k in (0..n)) for n in (0..30)] # _G. C. Greubel_, Oct 31 2019
%Y Cf. A026758, A026759, A026760, A026761, A026762, A026763, A026764, A026766, A026767, A026768.
%K nonn
%O 0,2
%A _Clark Kimberling_