Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. sage: S.<x> = PolynomialRing(QQ)
  2. sage: factor( x^15 - 1 )
  3. (x - 1) * (x^2 + x + 1) * (x^4 + x^3 + x^2 + x + 1)
  4. * (x^8 - x^7 + x^5 - x^4 + x^3 - x + 1)
  5. sage: R.<x> = PolynomialRing(GF(11))
  6. sage: factor( x^15 - 1 )
  7. (x + 2) * (x + 6) * (x + 7) * (x + 8) * (x + 10)
  8. * (x^2 + x + 1)
  9. * (x^2 + 3*x + 9) * (x^2 + 4*x + 5) * (x^2 + 5*x + 3) * (x^2 + 9*x + 4)
  10. sage: factor(x^4 + x^3 + x^2 + x + 1)
  11. (x + 2) * (x + 6) * (x + 7) * (x + 8)
  12. sage: factor(x^8 - x^7 + x^5 - x^4 + x^3 - x + 1)
  13. (x^2 + 3*x + 9) * (x^2 + 4*x + 5) * (x^2 + 5*x + 3) * (x^2 + 9*x + 4)
  14.  
  15. > Factorization((PolynomialRing(GF(11)))!(x^15-1));
  16. [
  17. <x + 2, 1>,
  18. <x + 6, 1>,
  19. <x + 7, 1>,
  20. <x + 8, 1>,
  21. <x + 10, 1>,
  22. <x^2 + x + 1, 1>,
  23. <x^2 + 3*x + 9, 1>,
  24. <x^2 + 4*x + 5, 1>,
  25. <x^2 + 5*x + 3, 1>,
  26. <x^2 + 9*x + 4, 1>
  27. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement