|
|
A117444
|
|
Period 5: Repeat [0, 1, 2, -2, -1].
|
|
9
|
|
|
0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0, 1, 2, -2, -1, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
See the comments in A203571 concerning formulas of the n-th term of periodic sequences. - M. F. Hasler, Jan 13 2013
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+3*x+x^2)/(1+x+x^2+x^3+x^4) = x*(1+2*x^2-2*x^3-x^4)/(1-x^5).
a(n) = (1/2)*Sum_{k=0..5} L(k*(k^2-n)/5), where L(j/p) is the Legendre symbol of j and p.
a(n) = sqrt(2+2/sqrt(5))*sin(2*Pi*n/5)-sqrt(2-2/sqrt(5))*sin(4*Pi*n/5).
|
|
MAPLE
|
|
|
MATHEMATICA
|
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,sign
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|