Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cyclotomic Polynomials and Primitive Roots of Unity

I want to print the primitive root of unity ζm associated with the mth cyclotomic polynomial ϕm(x) where m is a power of two. I want to print the primitive root of this polynomial over Zp with p prime.

I tried the following as an example, with p=12206081 and m=16384. However this prints all the totient(16384) roots rather than just the primitive root.

x = PolynomialRing(GF(12206081), 'x').gen()

n = euler_phi(16384)

f = x^n + 1

print(f.roots())

click to hide/show revision 2
None

updated 1 year ago

Max Alekseyev gravatar image

Cyclotomic Polynomials and Primitive Roots of Unity

I want to print the primitive root of unity ζm associated with the mth cyclotomic polynomial ϕm(x) where m is a power of two. I want to print the primitive root of this polynomial over Zp with p prime.

I tried the following as an example, with p=12206081 and m=16384. However this prints all the totient(16384) roots rather than just the primitive root.

x = PolynomialRing(GF(12206081), 'x').gen()

'x').gen() n = euler_phi(16384)

euler_phi(16384) f = x^n + 1

print(f.roots())

1 print(f.roots())