First time here? Check out the FAQ!
answered 2021-05-13 11:57:29 +0100
It is quite easy:
sage: n = 11 sage: p = 3 sage: cyclotomic_polynomial(n).change_ring(GF(p)).factor() (x^5 + 2*x^3 + x^2 + 2*x + 2) * (x^5 + x^4 + 2*x^3 + x^2 + 2)