ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 06 Mar 2016 23:42:43 +0100Collect irreducible polynomialshttps://ask.sagemath.org/question/32726/collect-irreducible-polynomials/ I am trying to collect irreducible polynomials from a monic polynomial like x^n-1 in a field.
For example, n = 13 and the field is F_{3}, the monic polynomial is x^13-1. So far, I found I can use _factor()_
to get
FF.<a>=GF(3)
x = PolynomialRing(FF,"x").gen()
factor(x^13-1)
(x + 2) * (x^3 + 2*x + 2) * (x^3 + x^2 + 2) * (x^3 + x^2 + x + 2) * (x^3 + 2*x^2 + 2*x + 2)
But I want to make each of them into a list, then from that list to get higher degree irreducible polynomials, such as
`(x+2)(x^3+2*x+2),(x+2)(x^3+2*x+2)(x^3+2*x^2+2*x+2)` and so forth.
can someone give me a hint or suggestion to do that? Thanks.
I am not an English speaker, hope people can understand what I say.
SimpleSun, 06 Mar 2016 23:42:43 +0100https://ask.sagemath.org/question/32726/