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!)
A026534 a(n) = Sum_{i=0..2*n} Sum_{j=0..n-1} A026519(j, i). 23
1, 4, 10, 28, 64, 172, 388, 1036, 2332, 6220, 13996, 37324, 83980, 223948, 503884, 1343692, 3023308, 8062156, 18139852, 48372940, 108839116, 290237644, 653034700, 1741425868, 3918208204, 10448555212, 23509249228, 62691331276 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = Sum_{i=0..2*n} Sum_{j=0..n-1} A026519(j, i).
G.f.: x*(1+3*x)/((1-x)*(1-6*x^2)). - Ralf Stephan, Feb 03 2004
a(n) = (1/60)*( 6^((n+1)/2)*( (4*sqrt(6) - 9)*(-1)^n + (4*sqrt(6) + 9) ) - 48 ). - G. C. Greubel, Dec 20 2021
MATHEMATICA
LinearRecurrence[{1, 6, -6}, {1, 4, 10}, 40] (* G. C. Greubel, Dec 20 2021 *)
PROG
(Magma) I:=[1, 4, 10]; [n le 3 select I[n] else Self(n-1) +6*Self(n-2) -6*Self(n-3): n in [1..40]]; // G. C. Greubel, Dec 20 2021
(Sage)
@CachedFunction
def T(n, k): # T = A026519
if (k<0 or k>2*n): return 0
elif (k==0 or k==2*n): return 1
elif (k==1 or k==2*n-1): return (n+1)//2
elif (n%2==0): return T(n-1, k) + T(n-1, k-2)
else: return T(n-1, k) + T(n-1, k-1) + T(n-1, k-2)
@CachedFunction
def a(n): return sum( sum( T(j, i) for i in (0..2*n) ) for j in (0..n-1) )
[a(n) for n in (1..40)]
(PARI) Vec((1+3*x)/((1-x)*(1-6*x^2))+O(x^99)) \\ Charles R Greathouse IV, Jan 24 2022
CROSSREFS
Sequence in context: A340568 A038579 A133726 * A034920 A274597 A335548
KEYWORD
nonn,easy
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 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)