First time here? Check out the FAQ!
answered 2021-07-23 20:18:08 +0100
Does this solve your problem?:
R.<x>=IntegerModRing(15)[] f=1+x^2+4*x^6 coeffs=(f.coefficients(sparse=False)) show(coeffs)