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!)
A027266 a(n) = Sum_{k=0..2n} (k+1) * A026519(n, k). 21
1, 6, 18, 72, 180, 648, 1512, 5184, 11664, 38880, 85536, 279936, 606528, 1959552, 4199040, 13436928, 28553472, 90699264, 191476224, 604661760, 1269789696, 3990767616, 8344332288, 26121388032, 54419558400, 169789022208 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = Sum_{k=0..2n} (k+1) * A026519(n, k).
G.f.: (1+6*x+6*x^2)/(1-6*x^2)^2.
a(n) = 12*a(n-2) - 36*a(n-4), with a(0)=1, a(1)=6, a(2)=18, a(3)=72. - Harvey P. Dale, Jun 19 2015
a(n) = ((n+1)/2)*6^((n-1)/2)*( 3*(1-(-1)^n) + sqrt(6)*(1+(-1)^n) ). - G. C. Greubel, Dec 21 2021
MATHEMATICA
CoefficientList[Series[(1+6x+6x^2)/(1-6x^2)^2, {x, 0, 30}], x] (* or *) LinearRecurrence[{0, 12, 0, -36}, {1, 6, 18, 72}, 30] (* Harvey P. Dale, Jun 19 2015 *)
PROG
(Magma) I:=[1, 6, 18, 72]; [n le 4 select I[n] else 12*(Self(n-2) - 3*Self(n-4)): n in [1..41]]; // G. C. Greubel, Dec 21 2021
(Sage) [((n+1)/2)*6^((n-1)/2)*( 3*(1-(-1)^n) + sqrt(6)*(1+(-1)^n) ) for n in (0..40)] # G. C. Greubel, Dec 21 2021
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -36, 0, 12, 0]^n*[1; 6; 18; 72])[1, 1] \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
Sequence in context: A304941 A129369 A095853 * A242278 A129796 A129790
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 September 22 17:14 EDT 2023. Contains 365531 sequences. (Running on oeis4.)