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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131078 Periodic sequence (1, 1, 1, 1, 0, 0, 0, 0). 10
1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

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

FORMULA

a(1) = a(2) = a(3) = a(4) = 1, a(5) = a(6) = a(7) = a(8) = 0; for n > 8, a(n) = a(n-8).

G.f.: 1/((1-x)*(1+x^4)).

a(n)=1/56*{-6*(n mod 8)+[(n+1) mod 8]+[(n+2) mod 8]+[(n+3) mod 8]+8*[(n+4) mod 8]+[(n+5) mod 8]+[(n+6) mod 8]+[(n+7) mod 8]}, with n>=0. - Paolo P. Lava (paoloplava(AT)gmail.com), Jun 19 2007

a(n) = floor(((n+4) mod 8)/4). [From Gary Detlefs (gdetlefs(AT)aol.com), May 17 2011]

PROG

(PARI) {m=105; for(n=1, m, print1((n-1)%8<4, ", "))}

(MAGMA) m:=105; [ [1, 1, 1, 1, 0, 0, 0, 0][ (n-1) mod 8 + 1 ]: n in [1..m] ];

CROSSREFS

Cf. A131074, A000035,

Period 2*k: repeat k ones followed by k zeros: A000035(n+1) (k=1), A133872(n) (k=2),  A088911 (k=3), A131078(n) (k=4), and A112713(n-1) (k=5).

Sequence in context: A127872 A129564 A025447 * A130657 A084846 A130093

Adjacent sequences:  A131075 A131076 A131077 * A131079 A131080 A131081

KEYWORD

nonn,easy

AUTHOR

Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), following a suggestion of Paul Curtz (bpcrtz(AT)free.fr), Jun 14 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 16 14:37 EST 2012. Contains 205930 sequences.