The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A144110 Period 6: repeat [2, 2, 2, 1, 1, 1]. 1
2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) = 2 for n = 0,1,2 modulo 6; a(n) = 1 for n = 3,4,5 modulo 6.
LINKS
FORMULA
G.f.: (1+2*x^3)/((1-x)*(1+x)*(1-x+x^2)); a(n) = 3/2-(-1)^n/6-A057079(n)/3. [R. J. Mathar, Sep 17 2008]
a(n) = a(n-1) - a(n-3) + a(n-4) for n>3; a(n) = 1 + mod(floor((-n-1)/3), 2); a(n) = A088911(n) + 1. - Wesley Ivan Hurt, Sep 04 2014
a(n) = (9 + cos(n*Pi) + 2*cos(n*Pi/3) + 2*sqrt(3)*sin(n*Pi/3))/6. - Wesley Ivan Hurt, Jun 23 2016
MAPLE
A144110:=n->1+(floor((-n-1)/3) mod 2): seq(A144110(n), n=0..100); # Wesley Ivan Hurt, Sep 04 2014
MATHEMATICA
Table[1 + Mod[Floor[(-n - 1)/3], 2], {n, 0, 100}] (* Wesley Ivan Hurt, Sep 04 2014 *)
PROG
(Magma) [1+(Floor((-n-1)/3) mod 2) : n in [0..100]]; // Wesley Ivan Hurt, Sep 04 2014
(PARI) a(n)=[2, 2, 2, 1, 1, 1][n%6+1] \\ Edward Jiang, Sep 04 2014
CROSSREFS
Sequence in context: A211226 A306366 A135265 * A076490 A320278 A302111
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Sep 11 2008, Sep 15 2008
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 May 24 05:24 EDT 2024. Contains 372772 sequences. (Running on oeis4.)