cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A317272 Numbers k such that Phi(k,x) is a cyclotomic polynomial with middle coefficient different from -1, 0, 1.

Original entry on oeis.org

385, 770, 1155, 1365, 1540, 1925, 2065, 2145, 2310, 2415, 2465, 2695, 2717, 2730, 2737, 2821, 2849, 3003, 3080, 3255, 3315, 3465, 3619, 3850, 4095, 4130, 4199, 4235, 4277, 4290, 4543, 4620, 4785, 4830, 4845, 4879, 4930, 4991
Offset: 1

Views

Author

Greg Dresden, Jul 25 2018

Keywords

Comments

n is in the sequence if and only if A204455(n) is in the sequence. - Robert Israel, Apr 17 2019

Examples

			385 is the first item in the list because Phi(385,x) is the first cyclotomic polynomial with middle coefficient different from -1,0,1 (the middle term is -3x^120)
		

Crossrefs

Cf. A013590, A023022 (phi(n)/2), A204455.

Programs

  • Maple
    filter:= proc(n) local p,d;
       p:= numtheory:-cyclotomic(n,x);
       d:= degree(p,x);
       abs(coeff(p, x, d/2))>1
    end proc:
    select(filter, [$3..5000]); # Robert Israel, Apr 17 2019
  • Mathematica
    Select[Range[3, 4000],
    Abs[Coefficient[Cyclotomic[#, x], x, EulerPhi[#]/2]] > 1 &]
  • PARI
    isok(n) = (n > 2) && (abs(polcoeff(polcyclo(n), eulerphi(n)/2)) > 1); \\ Michel Marcus, Aug 02 2018