login
This site is supported by donations 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

Colin Barker, Table of n, a(n) for n = 0..1000

Index entries for linear recurrences with constant coefficients, signature (1,4,-4).

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 A115178

Adjacent sequences:  A136333 A136334 A136335 * A136337 A136338 A136339

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 17 16:51 EDT 2019. Contains 328120 sequences. (Running on oeis4.)