OFFSET
0,1
COMMENTS
a(0) depends on the definition of the 0th cyclotomic polynomial; Maple defines it as x, but Mathematica defines it as 1. - T. D. Noe, Jul 23 2008 [a(0) = x is correct. - N. J. A. Sloane, Aug 01 2008]
A020501[2n] = A019320[n] for all odd n > 1. (Because if m > 1 is odd, then Phi_2m(x) = Phi_m(-x) as demonstrated by Bloom). - Antti Karttunen, Aug 02 2001
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
D. M. Bloom, On the Coefficients of the Cyclotomic Polynomials, Amer.Math.Monthly 75, 372-377, 1968.
MAPLE
with(numtheory, cyclotomic); f := n->subs(x=-2, cyclotomic(n, x)); seq(f(i), i=0..64);
MATHEMATICA
Join[{-2}, Cyclotomic[Range[50], -2]] (* Paolo Xausa, Feb 26 2024 *)
PROG
(PARI) a(n) = if (n, polcyclo(n, -2), -2); \\ Michel Marcus, Mar 05 2016
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved