A Brief Introduction to Classical and Adelic Algebraic ... - William Stein
A Brief Introduction to Classical and Adelic Algebraic ... - William Stein
A Brief Introduction to Classical and Adelic Algebraic ... - William Stein
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
54 CHAPTER 8. FACTORING PRIMES<br />
Thus 5 fac<strong>to</strong>rs in OK as<br />
5OK = (5, 7a + 1) 2 · (5, 7a + 4) · (5, (7a) 2 + 3(7a) + 3).<br />
If we replace a by b = 5a <strong>and</strong> try the above algorithm with Z[b], then the method<br />
fails because the index of Z[b] in OK is divisible by 5.<br />
> f:=MinimalPolynomial(5*a);<br />
> f;<br />
x^5 + 35*x^4 + 375*x^2 - 625*x + 3125<br />
> Discriminant(f) / Discriminant(MaximalOrder(K));<br />
95367431640625 // divisible by 5<br />
> Fac<strong>to</strong>rization(S!f);<br />
[<br />
<br />
]<br />
8.1.2 A Method for Fac<strong>to</strong>ring that Always Works<br />
There are numbers fields K such that OK is not of the form Z[a] for any a ∈ K.<br />
Even worse, Dedekind found a field K such that 2 | [OK : Z[a]] for all a ∈ OK, so<br />
there is no choice of a such that Theorem 8.1.3 can be used <strong>to</strong> fac<strong>to</strong>r 2 for K (see<br />
Example 8.1.6 below).<br />
Most algebraic number theory books do not describe an algorithm for decomposing<br />
primes in the general case. Fortunately, Cohen’s book [Coh93, §6.2]) describes<br />
how <strong>to</strong> solve the general problem. The solutions are somewhat surprising, since the<br />
algorithms are much more sophisticated than the one suggested by Theorem 8.1.3.<br />
However, these complicated algorithms all run very quickly in practice, even without<br />
assuming the maximal order is already known.<br />
For simplicity we consider the following slightly easier problem whose solution<br />
contains the key ideas: Let O be any order in OK <strong>and</strong> let p be a prime of Z. Find<br />
the prime ideals of O that contain p.<br />
To go from this special case <strong>to</strong> the general case, given a prime p that we wish<br />
<strong>to</strong> fac<strong>to</strong>r in OK, we find a p-maximal order O, i.e., an order O such that [OK : O]<br />
is coprime <strong>to</strong> p. A p-maximal order can be found very quickly in practice using the<br />
“round 2” or “round 4” algorithms. (Remark: Later we will see that <strong>to</strong> compute OK,<br />
we take the sum of p-maximal orders, one for every p such that p 2 divides Disc(OK).<br />
The time-consuming part of this computation of OK is finding the primes p such<br />
that p 2 | Disc(OK), not finding the p-maximal orders. Thus a fast algorithm for<br />
fac<strong>to</strong>ring integers would not only break many cryp<strong>to</strong>systems, but would massively<br />
speed up computation of the ring of integers of a number field.)<br />
Algorithm 8.1.4. Suppose O is an order in the ring OK of integers of a number<br />
field K. For any prime p ∈ Z, the following (sketch of an) algorithm computes the<br />
set of maximal ideals of O that contain p.