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!)
A132380 Period 8: repeat [0, 0, 1, 1, 0, 0, -1, -1]. 6
0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
O.g.f.: x^2*(1+x)/(1+x^4). - R. J. Mathar, Apr 06 2008
For n > 0, a(n) = A109247(n)/-3. - Antti Karttunen, Aug 12 2017
a(n) = (1/2)*(1-(-1)^floor(n/2))*(-1)^floor(n/4). - Wesley Ivan Hurt, Aug 31 2019
MATHEMATICA
PadRight[{}, 120, {0, 0, 1, 1, 0, 0, -1, -1}] (* Harvey P. Dale, Mar 17 2016 *)
PROG
(PARI) a(n)=[0, 0, 1, 1, 0, 0, -1, -1][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011
(Scheme) (define (A132380 n) (list-ref '(0 0 1 1 0 0 -1 -1) (modulo n 8))) ;; Antti Karttunen, Aug 12 2017
CROSSREFS
Cf. A109247.
Sequence in context: A339824 A278587 A188257 * A021913 A285501 A288551
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Nov 10 2007
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 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)