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!)
A154595 Period 6: repeat [1, 3, 3, -1, -3, -3]. 2
1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3, 3, -1, -3, -3, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
First differences of A154127.
LINKS
FORMULA
G.f.: ( 1+3*x+3*x^2 ) / ( (1+x)*(x^2-x+1) ). - R. J. Mathar, Dec 04 2011
From Wesley Ivan Hurt, Jun 23 2016: (Start)
a(n) + a(n-3) = 0 for n>2.
a(n) = (cos(n*Pi) + 2*cos(n*Pi/3) + 6*sqrt(3)*sin(n*Pi/3))/3. (End)
MAPLE
A154595:=n->[1, 3, 3, -1, -3, -3][(n mod 6)+1]: seq(A154595(n), n=0..100); # Wesley Ivan Hurt, Jun 23 2016
MATHEMATICA
PadRight[{}, 120, {1, 3, 3, -1, -3, -3}] (* Harvey P. Dale, Aug 09 2013 *)
PROG
(Magma) &cat [[1, 3, 3, -1, -3, -3]^^20]; // Wesley Ivan Hurt, Jun 23 2016
CROSSREFS
Cf. A154127.
Sequence in context: A295676 A088420 A103585 * A144437 A169609 A353527
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Jan 12 2009
EXTENSIONS
Edited by N. J. A. Sloane, Jan 12 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 18 08:14 EDT 2024. Contains 371769 sequences. (Running on oeis4.)