login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A086823 Coefficient of x^2 in the n-th cyclotomic polynomial. (The same as the coefficient of x^(phi(n)-2) ). 1
0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, -1, 1, 1, 0, 0, 1, 0, 1, -1, 0, 1, 1, 0, 0, 1, 0, -1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, 0, 1, 1, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, -1, 0, 0, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, -1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
Eric Weisstein's World of Mathematics, Cyclotomic Polynomial
FORMULA
If n is odd, a(n) = 1/2 * mu(n)*(mu(n)-1), if n is even, a(n) = 1/2 * mu(n)*(mu(n)-1) - mu(n/2), where mu is Möbius mu function, A008683.
MATHEMATICA
mm[n_]:=Module[{c=MoebiusMu[n]}, If[OddQ[n], (c(c-1))/2, (c(c-1))/2-MoebiusMu[ n/2]]]; Array[mm, 110] (* Harvey P. Dale, May 20 2018 *)
PROG
(PARI) a(n) = polcoeff(polcyclo(n), 2); \\ David Wasserman
(PARI) A086823(n) = (((1/2)*moebius(n)*(moebius(n)-1)) - if(!(n%2), moebius(n/2))); \\ Antti Karttunen, Sep 27 2018
CROSSREFS
Sequence in context: A131736 A152228 A368625 * A228487 A295306 A295303
KEYWORD
sign
AUTHOR
Yuval Dekel (dekelyuval(AT)hotmail.com), Aug 07 2003
EXTENSIONS
More terms from David Wasserman, Mar 29 2005
Offset corrected by Antti Karttunen, Sep 27 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 26 18:14 EDT 2024. Contains 372004 sequences. (Running on oeis4.)