cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A110569 Period 6: repeat [2, 1, 3, 3, 1, 2].

Original entry on oeis.org

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
Offset: 0

Views

Author

Paul Barry, Jul 27 2005

Keywords

Comments

Permutation of {1, 2, 3}, followed by its reversal, repeated.

Crossrefs

Programs

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

Extensions

Name changed by Wesley Ivan Hurt, Jun 27 2016