Dear all
I am getting trouble on how i can find order of an element in a quotient
polynomial ring USING SAGE:
1.Example, I have this code in sage I want to find the order of polynomial
h(x) in Quotient ring $\mathbb{F}_{2}[x]/$.
F.=GF(2)[]
Q.=F.quotient(x^3+1)
h=Q.f=x+1
2. Does it need to x^3+1 t
Dear all, The code below works for finding for B each n
D=[]
F=[]
B=[]
Z=[]
for n in range(1,10,2):
Z.append(Integers(n)(2).multiplicative_order())
for r in Z:
if r%2!=0:
B.append(2^r-1)
else:
M=r/2
if r%n==-1:
B.append(n*(2^(r/2)-1))
els