On algebraic number fields in Sage

asked 2021-03-08 19:24:02 +0200

klaaa gravatar image

updated 2021-03-08 19:35:18 +0200

Assume I have an irreducible monic polynomial $f$ over $\mathbb{Z}$ of degree n (take for example $f=x^4+x+1$) and let $K$ be the algebraic number field associated to it and $O$ the ring of integers in $K$. Assume that $K$ has solveable Galois group so that in principle we (can) know that roots of the polynomial.

Question 1: How can I obtain all the roots of the polynomial $f$ via Sage? If they are called $x_1,...,x_n$, and I define $y$ to be a linear combination of the $x_i$, how can I check whehter $y$ is a primitive element for $K$ via Sage?

Question 2: How can I check whether $O$ is monogenic, that is $O=\mathbb{Z}[y]$ for some element $y$? As in question 1, how can I check for a specific $y$ that is a linear combination of the $x_i$ whether $O=\mathbb{Z}[y]$?

Question 3: How can I check via Sage whether $O$ is norm-Euclidean?

edit retag flag offensive close merge delete