login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073845 a(1)=a(2)=1, a(n+2)=a(n+1)+a(n)+(-2)^n. 0
1, 1, 0, 5, -3, 18, -17, 65, -80, 241, -351, 914, -1485, 3525, -6152, 13757, -25163, 54130, -102105, 214169, -412224, 850521, -1658855, 3385970, -6661493, 13501693, -26714232, 53896325, -107035635, 215296146, -428610401, 860427569, -1715666480, 3439728385, -6865872687 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

Table of n, a(n) for n=1..35.

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

FORMULA

For n>3, a(n) = (-1)^n*floor{(1/5)*( 2^n + (2*sqrt(5)-3)*(-phi)^n) } where phi is the golden ratio = (1+sqrt(5))/2

a(1)=1, a(2)=1, a(3)=0, a(n)=a(n-1)+3*a(n-2)+2*a (n-3). - Harvey P. Dale, Oct 15 2015

G.f.: x*(-1-2*x+2*x^2) / ( (2*x+1)*(x^2+x-1) ). - R. J. Mathar, Nov 07 2015

MATHEMATICA

RecurrenceTable[{a[1]==a[2]==1, a[n+2]==a[n+1]+a[n]+(-2)^n}, a, {n, 40}] (* or *) LinearRecurrence[{-1, 3, 2}, {1, 1, 0}, 40] (* Harvey P. Dale, Oct 15 2015 *)

CROSSREFS

Sequence in context: A092893 A133172 A075453 * A169697 A092525 A101367

Adjacent sequences:  A073842 A073843 A073844 * A073846 A073847 A073848

KEYWORD

sign,easy

AUTHOR

Benoit Cloitre, Sep 02 2002

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 April 10 07:36 EDT 2021. Contains 342843 sequences. (Running on oeis4.)