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!)
A154870 Period 6: repeat [7, 5, 1, -7, -5, -1]. 3
7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1, -7, -5, -1, 7, 5, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
The sequence b(n) = (-A153130(n)) mod 9 = A153130(n+3) = A146501(n-1) = 8, 7, 5, 1, 2, 4,... has period length 6. This here is a(n)=b(n)-A153130(n).
LINKS
FORMULA
a(n) = -a(n-3) for n>2; G.f.: (7+5*x+x^2)/((1+x)*(1-x+x^2)). [R. J. Mathar, Jan 23 2009]
a(n) = cos(n*Pi) + 6*cos(n*Pi/3) + 2*sqrt(3)*sin(n*Pi/3). - Wesley Ivan Hurt, Jun 20 2016
MAPLE
A154870:=n->[7, 5, 1, -7, -5, -1][(n mod 6)+1]: seq(A154870(n), n=0..100); # Wesley Ivan Hurt, Jun 20 2016
MATHEMATICA
PadRight[{}, 100, {7, 5, 1, -7, -5, -1}] (* Wesley Ivan Hurt, Jun 20 2016 *)
PROG
(Magma) &cat [[7, 5, 1, -7, -5, -1]^^20]; // Wesley Ivan Hurt, Jun 20 2016
CROSSREFS
Sequence in context: A254177 A021575 A334632 * A098687 A021137 A330156
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Jan 16 2009
EXTENSIONS
Edited and extended by R. J. Mathar, Jan 23 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 28 21:55 EDT 2024. Contains 372095 sequences. (Running on oeis4.)