login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A027067 a(n) = Sum_{k=n..2*n} T(n,k), T given by A027052. 3

%I #10 Nov 06 2019 03:38:51

%S 1,1,4,10,27,77,220,632,1821,5257,15206,44068,127951,372173,1084382,

%T 3164498,9248241,27064057,79296978,232597316,682960523,2007206245,

%U 5904191878,17380855190,51203234981,150943862857,445250129556

%N a(n) = Sum_{k=n..2*n} T(n,k), T given by A027052.

%H G. C. Greubel, <a href="/A027067/b027067.txt">Table of n, a(n) for n = 0..1000</a>

%F a(n) ~ 3^(n + 1/2) / sqrt(Pi*n). - _Vaclav Kotesovec_, Nov 06 2019

%p T:= proc(n, k) option remember;

%p if k=0 or k=2 or k=2*n then 1

%p elif k=1 then 0

%p else add(T(n-1, k-j), j=1..3)

%p fi

%p end:

%p seq( add(T(n, k), k=n..2*n), n=0..30); # _G. C. Greubel_, Nov 06 2019

%t T[n_, k_]:= T[n, k]= If[k==0 || k==2 || k==2*n, 1, If[k==1, 0, Sum[T[n-1, k-j], {j, 3}]]]; Table[Sum[T[n, k], {k,n,2*n}], {n,0,30}] (* _G. C. Greubel_, Nov 06 2019 *)

%o (Sage)

%o @CachedFunction

%o def T(n, k):

%o if (k==0 or k==2 or k==2*n): return 1

%o elif (k==1): return 0

%o else: return sum(T(n-1, k-j) for j in (1..3))

%o [sum(T(n, k) for k in (n..2*n)) for n in (0..30)] # _G. C. Greubel_, Nov 06 2019

%K nonn

%O 0,3

%A _Clark Kimberling_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)