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!)
A159286 Expansion of (x-1)^2/(1-x^2-2*x^3). 5
1, -2, 2, 0, -2, 4, -2, 0, 6, -4, 6, 8, -2, 20, 14, 16, 54, 44, 86, 152, 174, 324, 478, 672, 1126, 1628, 2470, 3880, 5726, 8820, 13486, 20272, 31126, 47244, 71670, 109496, 166158, 252836, 385150, 585152 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A floretion-generated sequence: 'i + 0.5('ij' + 'ik' + 'ji' + 'jk' + 'ki' + 'kj').
LINKS
Creighton Dement, Online Floretion Multiplier [broken link].
FORMULA
a(n) = A159288(n) - 3*A159287(n+1). - R. J. Mathar, Apr 10 2009
a(1)=1, a(2)=-2, a(3)=2, a(n) = 1*a(n-2) + 2*a(n-3) for n >= 3. - Harvey P. Dale, Apr 24 2011
a(n) = A078026(n)-A078026(n-1). - R. J. Mathar, Mar 23 2023
MATHEMATICA
CoefficientList[Series[(x-1)^2/(1-x^2-2*x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[{0, 1, 2}, {1, -2, 2}, 40] (* Harvey P. Dale, Apr 24 2011 *)
PROG
(PARI) a(n)=([0, 1, 0; 0, 0, 1; 2, 1, 0]^n*[1; -2; 2])[1, 1] \\ Charles R Greathouse IV, Oct 03 2016
(Magma) I:=[1, -2, 2]; [n le 3 select I[n] else Self(n-2) + 2*Self(n-3): n in [1..30]]; // G. C. Greubel, Jun 27 2018
CROSSREFS
Sequence in context: A074823 A226177 A159916 * A355837 A261277 A006462
KEYWORD
easy,sign
AUTHOR
Creighton Dement, Apr 08 2009
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 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)