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
1, 0, 2, 2, 8, 12, 38, 66, 196, 360, 1052, 1980, 5774, 11004, 32146, 61726, 180772, 348912, 1024256, 1984608, 5837908, 11346280, 33433996, 65143716, 192239854, 375351288, 1109049320, 2169299288, 6416509142, 12569973108 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A026536(n, n).
a(n) = 2 * A026521(n-1).
MATHEMATICA
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 *)
PROG
(SageMath)
@cached_function
def T(n, k): # A026536
if k < 0 or n < 0: return 0
elif k == 0 or k == 2*n: return 1
elif k == 1 or k == 2*n-1: return n//2
elif n % 2 == 1: return T(n-1, k-2) + T(n-1, k)
return T(n-1, k-2) + T(n-1, k-1) + T(n-1, k)
def A026537(n): return T(n, n)
[A026537(n) for n in (0..35)] # G. C. Greubel, Apr 10 2022
CROSSREFS
Sequence in context: A302118 A014236 A087955 * A089248 A006663 A094941
KEYWORD
nonn
AUTHOR
STATUS
approved

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 26 05:19 EDT 2024. Contains 371989 sequences. (Running on oeis4.)