numtheory(deprecated)
factorEQ
integer factorization in Z(sqrt(d)) where Z(sqrt(d)) is a Euclidean ring
Calling Sequence
Parameters
Description
Examples
factorEQ(m, d)
m
-
integer, list or set of integers in Z⁡d
d
integer where d is a Euclidean ring
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[FactorNormEuclidean] instead.
The factorEQ function returns the integer factorization of m in the Euclidean ring Z⁡d.
Given integers a and b of Z⁡d, with b≠0, there is an integer q such that a=q⁢b+r, norm⁡r<norm⁡b is true in Z⁡d. In these circumstances we say that there is a Euclidean algorithm in Z⁡d and that the ring is Euclidean.
Euclidean quadratic number fields have been completely determined. They are Z⁡d where d = -1, -2, -3, -7, -11, 2, 3, 5, 6, 7, 11, 13, 17, 19, 21, 29, 33, 37, 41, 57, and 73.
When d=2,3mod4, all integers of Z⁡d have the form a+b⁢d, where a and b are rational integers. When d=1mod4, all integers of Z⁡d are of the form a+b⁢d2 where a and b are rational integers and of the same parity.
The answer is in the form: ±1⁢u⁢f1e1⁢...⁢fnen such that m=±1⋅⁢u⁢f1e1⁢…⁢⁢fnen where f1,…,fn are distinct prime factors of m, e1,…,en are non-negative integer numbers, u is a unit in Z⁡d. For real Euclidean quadratic rings, i.e. d > 0, u is represented under the form wn or w&conjugate0;n or −wn or −w&conjugate0;n where w is the fundamental unit, and n is a positive integer.
The expand function may be applied to cause the factors to be multiplied together again.
with⁡numtheory:
factorEQ⁡38477343,11
3⁢125+34⁢11⁢125−34⁢11⁢85+16⁢11⁢85−16⁢11
expand⁡
38477343
factorEQ⁡38434⁢sqrt⁡33,33
33⁢−23+4⁢33⁢52+332⁢52−332⁢11+2⁢332⁢58+7⁢33⁢58−7⁢33
38434⁢33
factorEQ⁡408294234124−4242⁢sqrt⁡29,29
−2⁢12+292⁢12−292⁢52−2924⁢11+2⁢29⁢4+29⁢38+7⁢29⁢9558726892+331629325⁢292
408294234124−4242⁢29
See Also
expand
GIfactor
ifactor
NumberTheory[FactorNormEuclidean]
numtheory(deprecated)[sq2factor]
Download Help Document