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!)
A110569 Period 6: repeat [2, 1, 3, 3, 1, 2]. 3
2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2, 2, 1, 3, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Permutation of {1, 2, 3}, followed by its reversal, repeated.
LINKS
FORMULA
a(n) = 1+(A078008(n) mod 3).
G.f.: (2-x+4*x^2-x^3+2*x^4) / (1-x+x^2-x^3+x^4-x^5).
a(n) = a(n-1) - a(n-2) + a(n-3) - a(n-4) + a(n-5) for n>4.
a(n) = 2 + cos(2*Pi*n/3)/2 - sqrt(3)*sin(2*Pi*n/3)/2 - cos(Pi*n/3)/2 + sqrt(3)*sin(Pi*n/3)/6.
a(n) = a(n-6) for n>5. - Wesley Ivan Hurt, Jun 27 2016
MAPLE
A110569:=n->[2, 1, 3, 3, 1, 2][(n mod 6)+1]: seq(A110569(n), n=0..100); # Wesley Ivan Hurt, Jun 27 2016
MATHEMATICA
PadRight[{}, 100, {2, 1, 3, 3, 1, 2}] (* Wesley Ivan Hurt, Jun 27 2016 *)
PROG
(Magma) &cat [[2, 1, 3, 3, 1, 2]^^30]; // Wesley Ivan Hurt, Jun 27 2016
(PARI) x='x+O('x^50); Vec((2-x+4*x^2-x^3+2*x^4)/(1-x+x^2-x^3+x^4-x^5)) \\ G. C. Greubel, Aug 31 2017
CROSSREFS
Sequence in context: A119803 A195916 A245554 * A140815 A365958 A351963
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 27 2005
EXTENSIONS
Name changed by Wesley Ivan Hurt, Jun 27 2016
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 April 18 04:56 EDT 2024. Contains 371767 sequences. (Running on oeis4.)