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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A151899 Periodic with period 6: repeat [0,0,1,1,1,2]. 2
0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1, 1, 1, 2, 0, 0, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,6

FORMULA

a(n)=a(n)=(1/18)*{7*(n mod 6)-2*[(n+1) mod 6]+[(n+2) mod 6]+[(n+3) mod 6]-2*[(n+4) mod 6]+[(n+5) mod 6]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Aug 04 2009]

a(n) = 5/6 -cos(Pi*n/3)/3 -sin(Pi*n/3)/sqrt(3) -cos(2*Pi*n/3)/3 -sin(2*Pi*n/3)/sqrt(3) -(-1)^n/6. - R. J. Mathar, Oct 08 2011

MAPLE

f := proc(n) local j; j:=n mod 6; if (j<=1) then 0 elif (j<=4) then 1 else 2; fi; end;

CROSSREFS

Cf. A151902, A151904-A151907.

Sequence in context: A037880 A140698 A124764 * A204263 A079632 A002654

Adjacent sequences:  A151896 A151897 A151898 * A151900 A151901 A151902

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jul 31 2009

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 14 15:39 EST 2012. Contains 205635 sequences.