Professional Documents
Culture Documents
b d
c
2
d
2
b c
c
2
d
2
a d
c
2
d
2
|
CCS U Quadrat ic Int e ge r S LIDES . nb 7
[I] has a norm
For = a + b I [I], the following is a norm: N( a + b I) = a
2
+ b
2
Note that N() =
2
, where | . | is the absolute value in .
Theorem N() = N()*N()
Proof Let = a + b I, = c + d I, and just compute:
(a c - b d)^2 + (b c + a d)^2 // Factor
a
2
b
2
c
2
d
2
=
p q
r s
x
y
= Px, then f and g are equivalent if f(x) = g(Px).
Proper equivalence means det(P) = 1, and improper equivalence means det(P) = -1.
The discriminant of f is D = b
2
4 a c = 4 det
a b 2
b 2 c
Also note that a change of coordinates on x
T
Ax can be written as:
(Px
T
AP x = x
T
P
T
AP x, and that det(P
T
AP) = detP
2
det(A) = det(A)
since det(P) = 1. Thus if f and g are equivalent, they have the same discriminant.
Chapter 1, Section 2A of David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication,
Wiley, 1989.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 29
Reduced forms
Define a primitive, positive definite form f to be reduced if we have either
(1) |b| < a < c or
(2) 0 s |b| = a s c or
(3) 0 s |b| s a = c.
Theorem 2.8. Every primitive, positive definite form is properly equivalent
to a unique reduced form.
Recall that f primitive means gcd(a, b, c) = 1, and proper equivalence means
the transformation matrix P satisfies det(P) = 1.
Chapter 1, Section 2A of David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication,
Wiley, 1989.
|
30 CCS U Quadrat ic Int e ge r S LIDES . nb
Gauss introduces class numbers
Gauss makes the following definitions in his Disquisitiones Arithmeticae
(see page 29 of Cox (1989).)
Two forms are in the same class if they are properly equivalent.
Let h(D) = the number of reduced forms with discriminant D.
Gauss computed about 100 values of h(D) in Article 303 of his
Disquisitiones Arithmeticae.
Chapter 1, Section 2A of David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication,
Wiley, 1989.
Carl Friedrich Gauss, Disquisitiones Arithmeticae, Yale University Press, 1965. Translated by Arthur A. Clarke.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 31
Table of h(D) and reduced forms
D h (D) Reduced Forms
4 1 x
2
y
2
8 1 x
2
2 y
2
12 1 x
2
3 y
2
20 2 x
2
5 y
2
, 2 x
2
2 x y 3 y
2
28 1 x
2
7 y
2
56 4 x
2
14 y
2
, 2 x
2
7 y
2
, 3 x
2
2 x y 5 y
2
Above is equation 2.14, page 29 of Cox (1989). Gauss computed a more
extensive version of the first two rows here in Article 303 of Gauss (1965)
though in a different format.
Chapter 1, Section 2A of David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication,
Wiley, 1989.
Carl Friedrich Gauss, Disquisitiones Arithmeticae, Yale University Press, 1965. Translated by Arthur A. Clarke.
|
32 CCS U Quadrat ic Int e ge r S LIDES . nb
Gauss' conjecture for D < 0
Below is a plot of square-free D vs. class number.
Gauss conjectured that as D -o, min h(D) o.
This was proved by Heilbronn (1934) according to
http://mathworld.wolfram.com/GausssClassNumberConjecture.html.
class = {}; max = 5000;
Do[If[SquareFreeQ[d], AppendTo[class, {-d, NumberFieldClassNumber [Sqrt[d]]}], Null],
{d, -1, -max, -1}]
ListPlot[class, AxesLabel - {"Square-free D", "Class number"}]
1000 2000 3000 4000 5000
Squarefree D
20
40
60
80
100
120
Class number
"Gauss's Class Number Conjecture" at Wolfram MathWorld. http://mathworld.wolfram.com/GausssClassNumberConjecture-
.html
accessed 9/2010.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 33
Gauss' conjecture for class number = 1, D > 0
Gauss conjectured that there are an infinite number of rings with
class number D for D > 0. This is still an open problem.
class = {}; max = 5000;
Do[If[SquareFreeQ[d],
AppendTo[class, {d, NumberFieldClassNumber [Sqrt[d]]}], Null], {d, 1, max}]
ListPlot[class, AxesLabel - {"Square-free D", "Class number"}]
1000 2000 3000 4000 5000
Squarefree D
2
4
6
8
Class number
|
34 CCS U Quadrat ic Int e ge r S LIDES . nb
Class number = 1 and unique factorization
From Alaca and Williams (2004):
Theorem 12.1.1. Let K be an algebraic number field. Then
h(K) = 1 = O
K
is a PID = O
K
is a UFD.
From Weintraub (2008):
Theorem 2.8. Let R = O( D ). Then R is a Euclidean domain for
D = -11, -7, -3, -2, -1, 2, 3, 5, 6, 7, 11, 13, 17, 21, and 29.
Proof: Weintraub proves this with elementary methods. .
Note that D = 33, 37, 41, 57, 73 also make R a Euclidean domain, and
these are all the values of D that make R a Euclidean domain with
respect to its norm. However, note the following theorem:
Trivia: Theorem (Clark (1994)). The ring of integers of ( 69 ) is
Euclidean but not norm-Euclidean.
From Wikipedia:
Stark-Heegner Theorem. -D = 1, 2, 3, 7, 11, 19, 43, 67, 163 is an
exhaustive list of D that make R = O( D ) a UFD.
Gauss conjectured that this was true in 1801. The proof was finally
finished in the 1950s and 1960s.
Saban Alaca and Kenneth Williams, Introductory Algebraic Number Theory, Cambridge, 2004.
David Clark, "A Quadratic Field which is Euclidean but not Norm-Euclidean," Manuscripta Mathematica, Vol 83, pages
327-330, 1994.
Steven Weintraub, Factorization : Unique and Otherwise, A. K. Peters, 2008.
"StarkHeegner theorem," http://en.wikipedia.org/wiki/Stark%E2%80%93Heegner_theorem.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 35
Non-unique factorization of irreducibles in [ 5 ]
A common example in books or on the web of
non-unique factorization is 2*3 = (1+ 5 ) (1- 5 ).
For example, this appears on Wikipedia under
"Unique Factorization Domain." This is an old example,
one that appears in Dedekind's Theory of Algebraic Integers,
first example of equation (1), page 87. However, finding
examples using Mathematica does not take that much work.
The steps are:
(1) Produce irreducibles
(2) Multiple these irreducibles together
(3) Match up identical products
"Unique Factorization Domain" on Wikipedia at http://en.wikipedia.org/wiki/Unique_factorization_domain. Accessed 9/2010.
Richard Dedekind, Theory of Algebraic Integers, Cambridge University Press, 1996. Translated by John Stillwell from 1877
edition.
|
36 CCS U Quadrat ic Int e ge r S LIDES . nb
Some irreducibles in [ 5 ]
list = {}; max = 100;
Do[ If[1 < a^2 + 5 b^2 < max, AppendTo[list, a + b Sqrt[-5]], Null],
{a, -Floor[Sqrt[max]], Floor[Sqrt[max]]}, {b, -Floor[Sqrt[max / 5]], Floor[Sqrt[max / 5]]}]
reducibles = Table[Expand[i j], {i, list}, {j, list}] // Flatten // Union;
irreducibles = Complement[list, reducibles];
irreducibles = SortBy[irreducibles, Abs[]^2 &]
2, 2, 5 , 5 , 1 5 , 1 5 , 1 5 , 1 5 , 3, 3, 2 5 , 2 5 ,
2 5 , 2 5 , 3 5 , 3 5 , 3 5 , 3 5 , 4 5 , 4 5 ,
4 5 , 4 5 , 1 2 5 , 1 2 5 , 1 2 5 , 1 2 5 , 3 2 5 , 3 2 5 ,
3 2 5 , 3 2 5 , 6 5 , 6 5 , 6 5 , 6 5 , 1 3 5 , 1 3 5 ,
1 3 5 , 1 3 5 , 7, 7, 2 3 5 , 2 3 5 , 2 3 5 , 2 3 5 , 4 3 5 ,
4 3 5 , 4 3 5 , 4 3 5 , 8 5 , 8 5 , 8 5 , 8 5 , 7 2 5 ,
7 2 5 , 7 2 5 , 7 2 5 , 9 5 , 9 5 , 9 5 , 9 5 , 3 4 5 ,
3 4 5 , 3 4 5 , 3 4 5 , 7 3 5 , 7 3 5 , 7 3 5 , 7 3 5
|
CCS U Quadrat ic Int e ge r S LIDES . nb 37
Examples of non-unique factorizations in [ 5 ]
6 (3) (2)
6 (1 5 ) (1 5 )
4 2 5 (1 5 ) (1 5 )
4 2 5 (2 5 ) (2)
3 3 5 (3) (1 5 )
3 3 5 (2 5 ) (1 5 )
9 (3) (3)
9 (2 5 ) (2 5 )
8 2 5 (3 5 ) (1 5 )
8 2 5 (4 5 ) (2)
2 4 5 (3 5 ) (1 5 )
2 4 5 (1 2 5 ) (2)
11 5 (3 5 ) (2 5 )
11 5 (1 2 5 ) (1 5 )
9 3 5 (4 5 ) (1 5 )
9 3 5 (3 5 ) (3)
9 3 5 (1 2 5 ) (1 5 )
|
38 CCS U Quadrat ic Int e ge r S LIDES . nb
Dedekind's solution: Unique factorization of ideals
Dedekind showed that one could define divisibility for ideals of a ring
in his book Dedekind (1996). Here is an example of his
theory from page 173, Section 5.6 of Weintraub (2008).
Convert 6 = 2*3 = (1 + 5 )(1 - 5 ) to principal ideals in [ 5 ]:
(6) = (2)(3) = (1 + 5 )(1 - 5 ) (*)
Let I
1
= 2, 1 + 5 and I
2
= 3, 1 + 5 .
One can show that (2) = I
1
2
, (3) = I
2
I
2
, (1 + 5 ) = I
1
I
2
, and (1 - 5 ) = I
1
I
2
.
So (*) becomes (6) = (I
1
2
I
2
I
2
) = I
1
I
2
I
1
I
2
), which is just an reordering of the ideals.
Hence uniqueness (with respect to ideal factorization) is regained.
Richard Dedekind, Theory of Algebraic Integers, Cambridge University Press, 1996. Translated by John Stillwell from 1877
edition.
Steven Weintraub, Factorization: Unique and Otherwise, A. K. Peters, 2008.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 39
Plots of the ideals (1 + 5 ), I
1
, I
2
max = 10; plotmax = 20;
m0 = Graphics[Circle[{0, 0}, 1]];
grid = Flatten[Table[Table[{i, j Sqrt[-d]}, {j, -max, max}], {i, -max, max}], 1];
a = 1; b = 1;
trangrid1 = Map[({{a, -b Sqrt[5]}, {b Sqrt[5], a}}.) &, grid];
g1 = ListPlot[trangrid1, AspectRatio - 1, PlotMarkers - {m0, 0.02},
PlotRange - {{-plotmax, plotmax}, {-plotmax, plotmax}}]
max = 4; plotmax = 20;
m0 = Graphics[Circle[{0, 0}, 1]];
grid = Flatten[Table[Table[{i, j Sqrt[-d]}, {j, -max, max}], {i, -max, max}], 1];
a1 = 2; b1 = 0; a2 = 1; b2 = 1;
trangrid1 = Map[({{a1, -b1 Sqrt[5]}, {b1 Sqrt[5], a1}}.) &, grid];
trangrid2 = Map[({{a2, -b2 Sqrt[5]}, {b2 Sqrt[5], a2}}.) &, grid];
trangrid = Table[i + j, {i, trangrid1}, {j, trangrid2}] // Union;
g = ListPlot[trangrid, AspectRatio - 1, PlotMarkers - {m0, 0.012},
PlotRange - {{-plotmax, plotmax}, {-plotmax, plotmax}}]; Show[g]
a1 = 3; b1 = 0; a2 = 1; b2 = 1;
trangrid1 = Map[({{a1, -b1 Sqrt[5]}, {b1 Sqrt[5], a1}}.) &, grid];
trangrid2 = Map[({{a2, -b2 Sqrt[5]}, {b2 Sqrt[5], a2}}.) &, grid];
trangrid = Table[i + j, {i, trangrid1}, {j, trangrid2}] // Union;
g = ListPlot[trangrid, AspectRatio - 1, PlotMarkers - {m0, 0.012},
PlotRange - {{-plotmax, plotmax}, {-plotmax, plotmax}}]; Show[g]
20 10 10 20
20
10
10
20
40 CCS U Quadrat ic Int e ge r S LIDES . nb
20 10 10 20
20
10
10
20
20 10 10 20
20
10
10
20
As Stillwell (1998) points out on pages 244-5, the last two ideals are not rectangular lattices, hence
they are not principal ideals.
John Stillwell, Numbers and Geometry, Springer UTM/RIM Series, 1997.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 41
References
Sukumar Adhikari, An Introduction to Commutative Algebra and Number Theory, CRC Press, Narosa Publishing House, 2001.
Saban Alaca and Kenneth Williams, Introductory Algebraic Number Theory, Cambridge, 2004.
Michael Artin, Chapter 11 of Algebra, Prentice Hall, 1991.
David Clark, "A Quadratic Field which is Euclidean but not Norm-Euclidean," Manuscripta Mathematica, Vol 83, pages
327-330, 1994.
Keith Conrad, "The Gaussian Integers" is available at http://www.math.uconn.edu/~kconrad/blurbs/ugradnumthy/Zinotes.pdf.
David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication, Wiley, 1989.
Richard Dedekind, Theory of Algebraic Integers, Cambridge University Press, 1996. Translated by John Stillwell from 1877
edition.
Harold Edwards, Fermat's Last Theorem: A Genetic Introduction to Algebraic Number Theory, Springer, 1977.
Leonard Euler (Translated by Rev. John Hewlett), Elements of Algebra, Springer, 1984. This is based on an 1840 edition
published by Longman, Orme, and Co.
Carl Friedrich Gauss, Disquisitiones Arithmeticae, Yale University Press, 1965. Translated by Arthur A. Clarke.
William Gilbert, "The Division Algorithm in Complex Bases," Canadian Mathematical Bulletin, Volume 39, 1996.
William Gilbert, "Arithmetic in Complex Bases," Mathematics Magazine, Volume 57, 1984.
Thomas Hungerford, Algebra, Springer, 1980.
Kenneth Ireland and Michael Rosen, A Classical Introduction to Modern Number Theory, 2nd Edition, Springer, 1990.
I. Katai and J. Szabo, "Canonical number systems for complex integers," Acta Sci. Math., Volume 37, 1975.
Donald Knuth, The Art of Computer Programming, Volume 2, Seminumerical Algorithms, 2nd Ed., Addison-Wesley, 1981.
William LeVeque, Fundamentals of Number Theory, Addison-Wesley, 1977.
William Stein, Algebraic Number Theory, A Computational Approach, 2008. Available at http://modular.math.washington.edu/-
books/ant/ant.pdf.
John Stillwell, Numbers and Geometry, Springer UTM/RIM Series, 1997.
Steven Weintraub, Factorization: Unique and Otherwise, A. K. Peters, 2008.
Wikipedia, http://www.wikipedia.org/.
Kenneth Williams, "Some Refinements of an Algorithm of Brillhart," Canadian Mathematical Society Conference Proceedings,
Volume 15, 1995.
Wolfram MathWorld, http://mathworld.wolfram.com/.
|
42 CCS U Quadrat ic Int e ge r S LIDES . nb
Does Bill Gates do number theory on the side?
"Because both the system's privacy and the security of
digital money depend on encryption, a breakthrough in
mathematics or computer science that defeats the
cryptographic system could be a disaster. The obvious
mathematical breakthrough would be the
development of an easy way to factor large prime numbers."
(Gates 1995, The Road Ahead, p. 265).
We have seen above that some primes in do factor in [I] and [ 2 ].
For example, 97 = (4 + 9 i )(4 - 9 i )= 13 6 2 13 6 2 .
William Stein suggests "However, perhaps Gates is an algebraic
number theorist, and he really meant what he said: then we might imagine that
he meant factorization of primes of Z in rings of integers of number fields."
See page 47 of Stein (2008).
William Stein, Algebraic Number Theory, A Computational Approach, 2008. Available at http://modular.math.washington.edu/-
books/ant/ant.pdf.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 43
Characterizations of all ideals in [ 5 ]
Theorem 9.5 of Adhikari (2001).
"If I is a non-zero ideal of the ring [ 5 ] and a non-zero element of I of
minimal absolute value r, then either I is the principal ideal () with lattice
basis (, 5 ) or I is not a principal ideal and has the lattice basis
(, ( + 5 )/2). The second case occurs only when ( + 5 )/2
is an element of I."
Sukumar Adhikari, An Introduction to Commutative Algebra and Number Theory, CRC Press, Narosa Publishing House, 2001.
|
44 CCS U Quadrat ic Int e ge r S LIDES . nb
How to find z for the Brillhart-Hermite Algorithm?
This can be done by quadratic reciprocity: (p/q)(q/p) = (-1)^((p-1)/2 (q-1)/2)
(This is Theorem 1 of Ireland and Rosen (1990).)
For p = 1000000009 and q = 11, (p/q) (q/p) = 1
since (p-1) is divisible by 4, hence (p-1)/2 is even.
Note that (p/q) = (8/11) = (2/11)^3, but (2/11) = -1
by quadratic reciprocity: (2/q) = (-1)^((q^2-1)/8) = (-1)^15 = -1.
Hence (p/q) = (q/p) = -1.
By Proposition 5.1.2 of Ireland and Rosen (1990), q^((p-1)/2) (q/p) = -1 (mod p).
Hence z q^((p-1)/4) 11^250000002 (mod p).
p = 1 000 000 009; q = 11;
JacobiSymbol[q, p]
z = PowerMod[q, (p - 1) / 4, p]
1
569 522 298
Kenneth Ireland and Michael Rosen, A Classical Introduction to Modern Number Theory, 2nd Edition, Springer, 1990.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 45
Modular arithmetic in [I]
Since the Euclidean algorithm works in [I], we are able to do
modular arithmetic in [I]. One example of this is that there's
an analog of Fermat's Little Theorem that holds in the Gaussian integers.
Below combines Keith Conrad's Theorems 7.12 and 7.14 of his
"The Gaussian Integers."
Theorem. Let be a Gaussian prime and note that the number of Gaussian integers
modulo is N() =
-
. If 0 mod , then
N1
1 mod .
Steven Weintraub, Factorization: Unique and Otherwise, A. K. Peters, 2008.
Keith Conrad, "The Gaussian Integers" is available at http://www.math.uconn.edu/~kconrad/blurbs/ugradnumthy/Zinotes.pdf.
|
46 CCS U Quadrat ic Int e ge r S LIDES . nb
Gaussian integer bases
Gilbert (1996) points out that Knuth (1981) notes that one can write
complex numbers in binary notation for the base (-1 + I). Gilbert gives
the example (-2-I)/2 = 110.01
1+I
. Gilbert (1996) also notes that
using the digits {0, 1, 2, ..., N(b)-1}, Katai and Szabo (1975) proved that
the bases (-n I), where n is a positive integer, are the only ones possible.
Finally, Gilbert (1984) shows how to add, subtract, multiply complex numbers
in this notation, while Gilbert (1996) shows how to divide in this notation.
William Gilbert, "The Division Algorithm in Complex Bases," Canadian Mathematical Bulletin, Volume 39, 1996.
William Gilbert, "Arithmetic in Complex Bases," Mathematics Magazine, Volume 57, 1984.
I. Katai and J. Szabo, "Canonical number systems for complex integers," Acta Sci. Math., Volume 37, 1975.
Donald Knuth, The Art of Computer Programming, Volume 2, Seminumerical Algorithms, 2nd Ed., Addison-Wesley, 1981.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 47
Rank plot for D > 0
class1 = {}; max = 1000;
Do[If[SquareFreeQ[d] && NumberFieldClassNumber [Sqrt[d]] = 1,
AppendTo[class1, d], Null], {d, 1, max}]
class1[[1 ;; 50]]
ListPlot[class1, AxesLabel - {"Rank", D}]
{1, 2, 3, 5, 6, 7, 11, 13, 14, 17, 19, 21, 22, 23, 29, 31, 33,
37, 38, 41, 43, 46, 47, 53, 57, 59, 61, 62, 67, 69, 71, 73, 77, 83, 86,
89, 93, 94, 97, 101, 103, 107, 109, 113, 118, 127, 129, 131, 133, 134]
50 100 150 200 250
Rank
200
400
600
800
1000
D
"Gauss's Class Number Conjecture" at Wolfram MathWorld. http://mathworld.wolfram.com/GausssClassNumberConjecture-
.html
accessed 9/2010.
|
48 CCS U Quadrat ic Int e ge r S LIDES . nb
Euler proves Fermat's conjectures for x
2
+ n y
2
Page 12 of Cox (1989) says it took Euler 40 years from the time he first heard
about Fermat's conjectures concerning x
2
+ n y
2
, n = 1, 2, 3, until 1772, when
he was able to prove all of them. His proof used his knowledge of quadratic
reciprocity, a result that he failed to prove in general. In Euler's notes
(see page 16 of Cox (1989)), he conjectures that (below uses modern notation):
(N/p) = 1 = p = (mod 4N) for odd values of that need to be determined.
David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication, Wiley, 1989.
|
CCS U Quadrat ic Int e ge r S LIDES . nb 49
Definite and indefinite forms
Equation (2.4) of Cox (1989) states: 4 a f(x, y) = (2a x + b y
2
D y
2
.
So if D > 0, then f can be both positive and negative and is called indefinite.
If D < 0 and a > 0, then f is always positive and is called positive definite.
If D < 0 and a < 0, then f is always negative and is called negative definite.
From now on, we are only interested in positive definite forms such as x
2
+ n y
2
.
Chapter 1, Section 2A of David Cox, Primes of the Form x
2
+ n y
2
: Fermat, Class Field Theory, and Complex Multiplication,
Wiley, 1989.
|
50 CCS U Quadrat ic Int e ge r S LIDES . nb
[(1+ 3 )/2] vs. [ 3 ]
NEED CONCRETE EXAMPLE HERE.
Let = e
2 i3
= (-1 + 3 )/2. That is, is a cube root of unity. Let a, b below.
= Exp[2 Pi I / 3]
Solve[x^2 - (2 a - b) x + (a^2 - a b + b^2) = 0, x] // Expand
2
3
x a
b
2
1
2
3 b, x a
b
2
1
2
3 b
The real and imaginary parts of the solution above are either
both integer or both half-integers. Hence, the Eisenstein integers are
not [ 3 ] but are []. This is a technicality that Euler missed.
See http://en.wikipedia.org/wiki/Quadratic_integer and http://en.wikipedia.org/wiki/Eisenstein_integer (accessed 9/2010.)
|
CCS U Quadrat ic Int e ge r S LIDES . nb 51