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.

A136571 Irregular triangle of coefficients of the minimal polynomial of 2*cos(2*Pi/n) in decreasing powers.

Original entry on oeis.org

1, -2, 1, 2, 1, 1, 1, 0, 1, 1, -1, 1, -1, 1, 1, -2, -1, 1, 0, -2, 1, 0, -3, 1, 1, -1, -1, 1, 1, -4, -3, 3, 1, 1, 0, -3, 1, 1, -5, -4, 6, 3, -1, 1, -1, -2, 1, 1, -1, -4, 4, 1, 1, 0, -4, 0, 2, 1, 1, -7, -6, 15, 10, -10, -4, 1, 1, 0, -3, -1, 1, 1, -8, -7, 21
Offset: 1

Views

Author

T. D. Noe, Jan 07 2008

Keywords

Comments

The degree of the n-th polynomial is A023022(n), the half-totient function for n>2. These polynomials are integral, monic and irreducible over the integers. Hence 2*cos(2*Pi/n) is an algebraic integer. When n is prime, the n-th row is the same as the n-th row of A066170. Carlitz and Thomas give an algorithm for computing these polynomials.

Examples

			x-2, x+2, x+1, x, x^2+x-1, x-1, x^3+x^2-2x-1, x^2-2, x^3-3x+1, x^2-x-1
		

Programs

  • Mathematica
    Flatten[Table[Reverse[CoefficientList[MinimalPolynomial[2Cos[2Pi/n],x],x]], {n,25}]]