login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A286390 a(n) = a(n-2) - 2*a(n-3) + a(n-4) for n>3, a(0)=0, a(1)=2, a(2)=-1, a(3)=3. 1
0, 2, -1, 3, -5, 7, -12, 20, -31, 51, -83, 133, -216, 350, -565, 915, -1481, 2395, -3876, 6272, -10147, 16419, -26567, 42985, -69552, 112538, -182089, 294627, -476717, 771343, -1248060, 2019404, -3267463, 5286867, -8554331, 13841197, -22395528, 36236726 (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 (0,1,-2,1).

FORMULA

a(n) = A286311(-n).

b(n) = A286311(n) + (period 6 sequence : repeat [0, 1, 0, 0, 0, -1]) = 0, 2, 1, 3, 5, 7, 12, 20, 31, 51, 83, 133,  ... . See A134667(n).

a(n) = -(-1)^n*b(n).

G.f.: x*(2 - x + x^2) / ((1 + x - x^2)*(1 - x + x^2)). - Colin Barker, May 08 2017

MATHEMATICA

LinearRecurrence[{0, 1, -2, 1}, {0, 2, -1, 3}, 38] (* or *)

CoefficientList[Series[x (2 - x + x^2)/((1 + x - x^2) (1 - x + x^2)), {x, 0, 37}], x] (* Michael De Vlieger, May 08 2017 *)

PROG

(PARI) concat(0, Vec(x*(2 - x + x^2) / ((1 + x - x^2)*(1 - x + x^2)) + O(x^60))) \\ Colin Barker, May 08 2017

CROSSREFS

Cf. A134667, A286311.

Sequence in context: A006769 A075643 A076074 * A135017 A070168 A246646

Adjacent sequences:  A286387 A286388 A286389 * A286391 A286392 A286393

KEYWORD

sign,easy

AUTHOR

Paul Curtz, May 08 2017

EXTENSIONS

Typo in data fixed and more terms added by Colin Barker, May 08 2017

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

License Agreements, Terms of Use, Privacy Policy .

Last modified February 20 21:53 EST 2018. Contains 299387 sequences. (Running on oeis4.)