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

%I #13 Sep 27 2018 17:54:47

%S 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,

%T 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,

%U 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

%N Coefficient of x^2 in the n-th cyclotomic polynomial. (The same as the coefficient of x^(phi(n)-2) ).

%H Antti Karttunen, <a href="/A086823/b086823.txt">Table of n, a(n) for n = 1..65539</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/CyclotomicPolynomial.html">Cyclotomic Polynomial</a>

%F 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.

%t 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 *)

%o (PARI) a(n) = polcoeff(polcyclo(n), 2); \\ _David Wasserman_

%o (PARI) A086823(n) = (((1/2)*moebius(n)*(moebius(n)-1)) - if(!(n%2),moebius(n/2))); \\ _Antti Karttunen_, Sep 27 2018

%Y Cf. A008683, A000010.

%K sign

%O 1

%A Yuval Dekel (dekelyuval(AT)hotmail.com), Aug 07 2003

%E More terms from _David Wasserman_, Mar 29 2005

%E Offset corrected by _Antti Karttunen_, Sep 27 2018

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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)