Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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]