1 | initial version |
Short answer: reduction modulo 3 not defined
because you apply it to elements of Zmod(71)
, where it is indeed not defined.
Overall, the code does not quite make sense. For example, you define X
via R.<X> = Zmod(n)[]
as a variable in the polynomial ring over $\mathbb{Z}/71\mathbb{Z}$ and then you extract the coefficients of polynomial X
via X[0]
etc. and redefine X
as a list of integers via X = psi(X)
. If you plan to work with lists integers, why do you even define polynomial rings?