Re: how to factor gaussian integers ?
- From: magidin@xxxxxxxxxxxxxxxxx (Arturo Magidin)
- Date: Sat, 15 Sep 2007 18:36:06 +0000 (UTC)
In article <8970362.1189855862584.JavaMail.jakarta@xxxxxxxxxxxxxxxxxxxxxx>,
tommy1729 <tommy1729@xxxxxxxxx> wrote:
how does one efficiently factor a gaussian integer ??
plz dont tell me what a gaussian prime is and how to find them ; i
already know this.
but despite knowing about gaussian primes, no efficient factoring
method for gaussian integers ??
No more efficient method than for integers, because if you can factor
gaussian integers, then by letting a be a rational integer, factor it
as a gaussian integer, and by pairing off the conjugate non-rational
gaussian primes, which can be done easily, you get a factorization of
a into rational primes.
If you have a method for factoring regular integers, then do the
following to factor Gaussian integers: Given a+bi.
(i) Compute d = gcd(a,b); factor d into integers, then factor the
rational primes (by writing them as sums of two squares) that are not
gaussian primes to get a factorization of this factor. So we may
assume that gcd(a,b)=1.
(ii) If gcd(a,b)=1, then compute a^2+b^2, and factor it into rational
primes. Divide the primes into three groups: 2, those congruent to 1
modulo 4, and those congruent to 3 modulo 4:
a^2 + b^2 = 2^r * p_1^{s_1}*...*p_n^{s_n}* q_1^{t_1}*...*q_m^{t_m}.
with r>=0, s_i,t_j positive integers, p_i pairwise distinct primes
congruent to 1 modulo 4; q_i pairwise distinct primes congruent to 3
modulo 4.
(iii) The exponents t_i will all be even. Write each p_i as a sum of
two squares, p_j = (d_j^2 + f_j^2). Then p_i factors in Gaussian
primes as (d_j + i*f_j)(d_j - i*f_j).
(iv) (a+bi)(a-bi) = a^2+b^2. Each of a+bi and a-bi will be exactly
divisible by q_j^{t_j/2}. 2 will not divide a+bi (since gcd(a,b)=1),
but 1+i may; check.
(v) The remaining factors will be up to s_i factors of d_j + if_j or
d_j - if_j in some combination. Again, not hard to figure out which
and how many.
does any integer domain factor easily ?
Oh, yes. Any integral domain with finitely many primes has very easy
factoring algorithms, and there are plenty of those.
--
======================================================================
"It's not denial. I'm just very selective about
what I accept as reality."
--- Calvin ("Calvin and Hobbes" by Bill Watterson)
======================================================================
Arturo Magidin
magidin-at-member-ams-org
.
- Follow-Ups:
- Re: how to factor gaussian integers ?
- From: tommy1729
- Re: how to factor gaussian integers ?
- References:
- how to factor gaussian integers ?
- From: tommy1729
- how to factor gaussian integers ?
- Prev by Date: Re: Infinity and limits
- Next by Date: Re: Infinity and limits
- Previous by thread: Re: how to factor gaussian integers ?
- Next by thread: Re: how to factor gaussian integers ?
- Index(es):
Relevant Pages
|
Loading