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!)
A026547 a(n) = T(n, floor(n/2)), T given by A026536. 2
1, 1, 1, 1, 5, 6, 16, 19, 65, 79, 251, 306, 1016, 1247, 4117, 5069, 16913, 20889, 69865, 86479, 290455, 360205, 1212905, 1506462, 5085224, 6324176, 21389824, 26630423, 90226449, 112439094, 381519416, 475838291, 1616684241, 2017827545 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
a(n) = A026536(n, floor(n/2)).
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, Floor[n/2]], {n, 0, 40}] (* G. C. Greubel, Apr 11 2022 *)
PROG
(SageMath)
@CachedFunction
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 A026547(n): return T(n, n//2)
[A026547(n) for n in (0..40)] # G. C. Greubel, Apr 11 2022
CROSSREFS
Cf. A026536.
Sequence in context: A118712 A130878 A104422 * A081283 A058567 A115376
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 June 9 00:14 EDT 2024. Contains 373227 sequences. (Running on oeis4.)