login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131670 Period 5: repeat 1, 0, -1, 0, 1. 0
1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 1, 0 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,0,1)

FORMULA

a(n)=(1/50)*{(n mod 5)-9*[(n+1) mod 5]-9*[(n+2) mod 5]+11*[(n+3) mod 5]+11*[(n+4) mod 5]}, with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Oct 24 2007

G.f. ( -1+x^2-x^4 ) / ( (x-1)*(1+x+x^2+x^3+x^4) ). - R. J. Mathar, Apr 02 2011

PROG

(PARI) a(n)=abs(n%5-2)-1 [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Aug 28 2009]

CROSSREFS

Sequence in context: A176330 A177990 A113704 * A155482 A174205 A114483

Adjacent sequences:  A131667 A131668 A131669 * A131671 A131672 A131673

KEYWORD

sign,easy

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), Oct 03 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 00:09 EST 2012. Contains 205978 sequences.