First time here? Check out the FAQ!
answered 2020-09-14 11:50:56 +0100
To expand on my comment:
S.u> = PolynomialRing(GF(5)) L.<x> = PolynomialRing(S) f = x^5 + u*x^2 - u*x a = {} a[0] = 2 k = 50 for n in range(k): a[n+1] = f(a[n]).truncate(n+1) a[49]