login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A131201
Period 24: repeat [0,1,2,5,2,9,0,9,8,5,8,1,0,-1,-2,-5,-2,-9,0,-9,-8,-5,-8,-1].
1
0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, -1, -2, -5, -2, -9, 0, -9, -8, -5, -8, -1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, -1, -2, -5, -2, -9, 0, -9, -8, -5, -8, -1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, -1, -2, -5, -2, -9, 0, -9, -8, -5, -8, -1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, -1, -2, -5, -2, -9, 0, -9, -8, -5, -8, -1, 0, 1, 2, 5, 2, 9, 0, 9, 8
OFFSET
0,3
FORMULA
O.g.f.: x(x^2+1)(x^8+8x^7+4x^6+5x^4+4x^2+2x+1)/((x^4+1)(x^8-x^4+1)) . Also a(n)=b(n-2)+b(n), n>=2, where b(n) = 1, 2, 4, 0, 5, 0, 4, 8, 1, 0, 0, 0, -1, -2, -4, 0, -5, 0, -4, -8, -1, 0, 0, 0, extended with period 24. - R. J. Mathar, Jan 15 2008
PROG
(PARI) a(n)=[0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1][n%12+1]*(-1)^(n\12) \\ Charles R Greathouse IV, Jul 26 2016
CROSSREFS
Sequence in context: A134349 A354709 A131711 * A070633 A266256 A247551
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Sep 26 2007
STATUS
approved