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”).

A234046
Period 7: repeat [0, 1, -1, 0, 0, -1, 1].
6
0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1, 0, 1, -1, 0, 0, -1, 1
OFFSET
0
COMMENTS
This is the sequence called c(n) in A234044 used in a formula for 2*exp(2*Pi*n*I/7) together with five other sequences: a(n) = A234044(n), b(n) = A234045(n), A(n) = A238468(n), B(n) = A238469(n) and C(n) = A238470(n). An example for n=4 is also given there.
FORMULA
G.f.: x*(1 - x - x^4 + x^5)/(1 - x^7).
a(n+7) = a(n), n>=0, with a(0) = a(3) = a(4) = 0 and a(1) = -a(2) = -a(5) = a(6) = 1.
From Wesley Ivan Hurt, Jul 19 2016: (Start)
a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) + a(n-6) = 0 for n>5.
a(n) = - floor(n/7) + 2*floor((1+n)/7) - floor((2+n)/7) + floor((4+n)/7) - 2*floor((5+n)/7) + floor((6+n)/7). (End)
MAPLE
seq(op([0, 1, -1, 0, 0, -1, 1]), n=0..20); # Wesley Ivan Hurt, Jul 19 2016
MATHEMATICA
PadRight[{}, 100, {0, 1, -1, 0, 0, -1, 1}] (* Wesley Ivan Hurt, Jul 19 2016 *)
PROG
(Magma) &cat [[0, 1, -1, 0, 0, -1, 1]^^20]; // Wesley Ivan Hurt, Jul 19 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Wolfdieter Lang, Feb 27 2014
STATUS
approved