Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem seems to be that X is a generator for the finite field on 9 elements, $\text{GF}(9)$, whereas R is just the integers mod 9, $\mathbb{Z}_9$.

Perhaps what you want is

sage: K(X+5)

The problem seems to be that X is a generator for the finite field on 9 elements, $\text{GF}(9)$, whereas R is just polynomial ring over the integers mod 9, $\mathbb{Z}_9$.$\mathbb{Z}_9[x]$.

Perhaps what you want is

sage: K(X+5)
click to hide/show revision 3
corrected huge mistake

The problem seems to be that X is a generator for the finite field on 9 elements, $\text{GF}(9)$, whereas R is polynomial ring over the integers mod 9, $\mathbb{Z}_9[x]$.Sorry my previous answer was completely wrong.

Perhaps what if you want isuse

sage: K(X+5)
y=R.gen()

and then

sage: R(y+5)
X+5