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!)
A136408 a(n) = 3*a(n-1) - 4*a(n-2) + 6*a(n-3) - 4*a(n-4). 2
1, 2, 4, 7, 13, 27, 55, 107, 211, 427, 859, 1707, 3403, 6827, 13675, 27307, 54571, 109227, 218539, 436907, 873643, 1747627, 3495595, 6990507, 13980331, 27962027, 55925419, 111848107, 223693483, 447392427, 894790315, 1789569707, 3579128491 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
From R. J. Mathar, Apr 04 2008: (Start)
O.g.f.: (1 - x + 2*x^2 - 3*x^3)/((1-x)*(1-2*x)*(1+2*x^2)).
a(n) = (5*2^n + 2 - A077966(n))/6. (End)
MATHEMATICA
LinearRecurrence[{3, -4, 6, -4}, {1, 2, 4, 7}, 41] (* Harvey P. Dale, Aug 12 2016 *)
PROG
(PARI) a(n)=(5<<n - imag(quadgen(-8)^(n+1)) + 2)/6 \\ Charles R Greathouse IV, Mar 30 2022
(Magma) [(5*2^n +2 -((n+1) mod 2)*(-2)^Floor((n+1)/2))/6: n in [0..40]]; // G. C. Greubel, Jan 19 2023
(SageMath) [(5*2^n +2 -((n+1)%2)*(-2)^((n+1)//2))/6 for n in range(41)] # G. C. Greubel, Jan 19 2023
CROSSREFS
Cf. A077966.
Sequence in context: A112740 A309050 A265580 * A317718 A357931 A103104
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Mar 31 2008
EXTENSIONS
More terms from R. J. Mathar, Apr 04 2008
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 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)