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!)
A117378 Expansion of (1-4*x)/(1-x+x^2). 6
1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Row sums of number triangle A117377.
Period 6: repeat [1, -3, -4, -1, 3, 4]. - Philippe Deléham, Nov 03 2008
LINKS
Tanya Khovanova, Recursive Sequences
FORMULA
G.f.: (1-4*x)/(1-x+x^2).
a(n) = Sum_{k=0..n} (-1)^(n-k) * ( C(k,n-k) + 4*C(k,n-k-1) ).
a(n) = a(n-1) - a(n-2) for n>1. [Philippe Deléham, Nov 03 2008]
a(n) = (1+(-n mod 3))^(n mod 3)*(-1)^floor((n+2)/3). - Wesley Ivan Hurt, Aug 31 2014
a(n) = (3*cos(n*Pi/3) - 7*sqrt(3)*sin(n*Pi/3))/3. - Wesley Ivan Hurt, Jun 23 2016
E.g.f.: (3*cos(sqrt(3)*x/2) - 7*sqrt(3)*sin(sqrt(3)*x/2))*exp(x/2)/3. - Ilya Gutkovskiy, Jun 27 2016
MAPLE
A117378:=n->(1+(-n mod 3))^(n mod 3)*(-1)^floor((n+2)/3): seq(A117378(n), n=0..100); # Wesley Ivan Hurt, Aug 31 2014
MATHEMATICA
CoefficientList[Series[(1 - 4 x)/(1 - x + x^2), {x, 0, 200}], x] (* Vladimir Joseph Stephan Orlovsky, Jun 11 2011 *)
LinearRecurrence[{1, -1}, {1, -3}, 100] (* Harvey P. Dale, Sep 27 2018 *)
PROG
(Magma) [(1+(-n mod 3))^(n mod 3)*(-1)^Floor((n+2)/3) : n in [0..100]]; // Wesley Ivan Hurt, Aug 31 2014
CROSSREFS
Cf. A117377.
Sequence in context: A281098 A090279 A101667 * A278518 A088197 A350605
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 10 2006
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 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)