First time here? Check out the FAQ!
answered 2022-05-27 15:01:31 +0100
This looks like a simplest solution:
p = 2**64-2**32+1 P.<a,b,c> = PolynomialRing(GF(p)) Q.<X> = PolynomialRing(P.fraction_field()) R.<x> = Q.quotient_ring(X^3-X-1) print( 1 / (a + b*x + c*x^2) )