|
|
A014016
|
|
Expansion of inverse of 7th cyclotomic polynomial; period 7: repeat [1, -1, 0, 0, 0, 0, 0].
|
|
7
|
|
|
1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, -1, 0, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: 1 / ( 1+x+x^2+x^3+x^4+x^5+x^6 ). - R. J. Mathar, Mar 11 2011
a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) + a(n-6) for n>5.
a(n) = 1 + floor(n/7) + floor((5+n)/7) - 2*floor((6+n)/7). (End)
|
|
MAPLE
|
with(numtheory, cyclotomic); c := n->series(1/cyclotomic(n, x), x, 80);
|
|
MATHEMATICA
|
CoefficientList[Series[1/Cyclotomic[7, x], {x, 0, 100}], x] (* Vincenzo Librandi, Apr 03 2014 *)
PadRight[{}, 120, {1, -1, 0, 0, 0, 0, 0}] (* or *) LinearRecurrence[{-1, -1, -1, -1, -1, -1}, {1, -1, 0, 0, 0, 0}, 120] (* Harvey P. Dale, Jan 11 2015 *)
|
|
PROG
|
(Magma) &cat[[1, -1, 0, 0, 0, 0, 0]: n in [0..20]]; // Vincenzo Librandi, Apr 03 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|