Re: [sage-support] Re: .format of RR-element

2017-04-29 Thread Gekonga Wanchoke CHACHA
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

[sage-support] How to assign each distinct irreducible polynomial as a quotient of a polynomial ring respect to n.

2017-04-13 Thread Gekonga Wanchoke CHACHA
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