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!)
A136336 a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) for n>3. 2
1, 2, 4, 7, 15, 27, 59, 107, 235, 427, 939, 1707, 3755, 6827, 15019, 27307, 60075, 109227, 240299, 436907, 961195, 1747627, 3844779, 6990507, 15379115, 27962027, 61516459, 111848107, 246065835, 447392427, 984263339, 1789569707, 3937053355, 7158278827 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
From Colin Barker, Mar 17 2017: (Start)
G.f.: (1 + x - 2*x^2 - x^3) / ((1 - x)*(1 - 2*x)*(1 + 2*x)).
a(n) = (8 + (-2)^n + 21*2^n) / 24 for n>0.
(End)
MATHEMATICA
LinearRecurrence[{1, 4, -4}, {1, 2, 4, 7}, 50] (* Harvey P. Dale, Jan 14 2019 *)
PROG
(PARI) Vec((1 + x - 2*x^2 - x^3) / ((1 - x)*(1 - 2*x)*(1 + 2*x)) + O(x^50)) \\ Colin Barker, Mar 17 2017
CROSSREFS
Sequence in context: A291220 A299099 A248574 * A244456 A232394 A356626
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Mar 28 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 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)