The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A026537 a(n) = T(n,n), T given by A026536. Also a(n) = number of integer strings s(0), ..., s(n), counted by T, such that s(n)=0. 3

%I #9 Apr 11 2022 14:57:32

%S 1,0,2,2,8,12,38,66,196,360,1052,1980,5774,11004,32146,61726,180772,

%T 348912,1024256,1984608,5837908,11346280,33433996,65143716,192239854,

%U 375351288,1109049320,2169299288,6416509142,12569973108

%N a(n) = T(n,n), T given by A026536. Also a(n) = number of integer strings s(0), ..., s(n), counted by T, such that s(n)=0.

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

%F a(n) = A026536(n, n).

%F a(n) = 2 * A026521(n-1).

%t T[n_, k_]:= T[n, k]= If[k==0 || k==2*n, 1, If[k==1 || k==2*n-1, Floor[n/2], If[EvenQ[n], T[n-1, k-2] + T[n-1, k-1] + T[n-1, k], T[n-1, k-2] + T[n-1, k]] ]]; Table[T[n, n], {n, 0, 35}] (* _G. C. Greubel_, Apr 10 2022 *)

%o (SageMath)

%o @cached_function

%o def T(n, k): # A026536

%o if k < 0 or n < 0: return 0

%o elif k == 0 or k == 2*n: return 1

%o elif k == 1 or k == 2*n-1: return n//2

%o elif n % 2 == 1: return T(n-1, k-2) + T(n-1, k)

%o return T(n-1, k-2) + T(n-1, k-1) + T(n-1, k)

%o def A026537(n): return T(n,n)

%o [A026537(n) for n in (0..35)] # _G. C. Greubel_, Apr 10 2022

%Y Cf. A026521, A026536.

%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 May 16 08:41 EDT 2024. Contains 372552 sequences. (Running on oeis4.)