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

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

1,1

COMMENTS

Second column of triangular array T defined in A131022.

a(n) = A021823(n+2).

LINKS

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

FORMULA

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

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

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

PROG

(PARI) {m=105; for(n=1, m, r=(n-1)%6; print1(if(r<2, 2, if(r==2||r==5, 1, 0)), ", "))}

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

CROSSREFS

Cf. A131022, A021823. Other columns of T are in A088911, A131027, A131028, A131029, A131030.

Sequence in context: A024712 A164965 A021823 * A014604 A015199 A051168

Adjacent sequences:  A131023 A131024 A131025 * A131027 A131028 A131029

KEYWORD

nonn,easy

AUTHOR

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