05.01.2015 Views

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Algorithm 2.1 ( Primitive(q) )<br />

1: Let l 1 ,l 2 ,...,l k be the prime factors of q−1 and m i = q−1<br />

l i<br />

for 1 ≤ i ≤ k,<br />

2: REPEAT<br />

3: pick a random non-zero element g of F q ,<br />

4: UNTIL g mi ≠1for 1 ≤ i ≤ k,<br />

5: RETURN g.<br />

(Maple primroot, G[PrimitiveElement])<br />

We use the following theorems to estimate the number of field elements<br />

we must try in order to find a random primitive element.<br />

Theorem 2.2 #{g : g is a primitive element of F q } = φ(q − 1).<br />

Theorem 2.3 lim inf<br />

n→∞<br />

φ(n)loglogn<br />

n<br />

= e −γ ≈ 0.5614594836<br />

Example: 2isaprimitiveelementofF 5 since {2, 2 2 , 2 3 , 2 4 } = {2, 4, 3, 1}.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!