The Dirichlet Class Number Formula for Imaginary Quadratic Fields HuiBin Liu* Department of Commercial Design Chienkuo Technology University No. 1, Chieh Shou N. Rd., Changhua City 500 Taiwan Abstract We prove a formula for the average value of L-functions associated to quadratic function fields (with constant field of odd characteristic ramified at one finite place and 1, which we will call "imaginary prime quadratic function field." In particular, we obtain a formula for the average class number over the associated rings of integers using the L-function average at s = 1. Keywords : Golden section, real quadratic fields, polynomial complexity. 1. Introduction Fermat stated that every rational prime p congruent to 1 modulo 4 is the sum of two squares of natural numbers. Fermat’s theorem has received many proofs [22, p. 66], although early ones did not offer a method of deterministic polynomial complexity for computing the representation p = s2 + r2, i.e. one using a number of sums and products proportional to some small power of the logarithm of p. However, a reduction algorithm of binary quadratic forms, which can be traced back to Gauss [6], produces r and s with deterministic polynomial complexity once a square root of −1 modulo p is known [13]. The question was then settled by Schoof, who discovered an algorithm for evaluating the number of points on elliptic curves over finite fields, which also furnishes a square root of small numbers, in particular −1, modulo p with *E-mail: eghm12@tin.it —————————————————– deterministic polynomial complexity [18]. Fermat also stated, and Lagrange proved, that every natural integer is the sum of at most four squares of natural numbers [17, p. 7]. Some two centuries later, Siegel proved that the only real algebraic number fields in which exist a four-square-sum representation of the totally positive integers are the rational field Q and the quadratic field Q(ð) with golden section unit ω = 1+√5 2 , [20]. A direct consequence of Siegel’s theorem is that any prime integer p ∈ Q(ð) has an associated prime which is the sum of two squares in the same field, if its field norm is a rational prime not congruent to 11 or 19 modulo 20. The paper shows that the same tools used in Q can be employed to give a proof of the two-square-sum property for primes ð in Q(ð), and provides a way of computing their representation ð = a2 + b2 with deterministic polynomial complexity. 2. Preliminaries The real quadratic field F = Q(ð) is a principal ideal domain whose integers are the elements of Z (ð), [5]. The conjugate of an element z = a + bð is ð§Ì = a + bð Ì = (a + b) − bð, and the field norm is NF(z) = zð§Ì = a2 + ab − b2. The elements of Z(ð) with norm ±1 are called units, and form a group which is the direct product of a torsion group T2 = {1, −1} of order 2, and an infinite group U of rank 1, which is generated by ð. Two integers α, β ∈ Z(ð) are said to be associated if their ratio ðŒ/ðœ is a unit. A positive integer number ðŒ = a + b ð ∈ Z(ð) is said to be totally positive if its conjugate a is also positive [15, p. 378]. Given ðŒ, one of the four associates ðŒ, − ðŒ, ðŒ ð, and − ðŒ ð is certainly totally positive; moreover, let U2 be the subgroup of U generated by ð2, every totally positive element ðŒ ∈ Z(ð) uniquely identifies a class ðŒU2 = {ðŒu : u ∈ U2} of totally positive associates. The set of primes in Q(ω) consists of: (i) a prime π5 = 2 + ω of field norm 5, and its associates; (ii) all rational primes q ≡ ±2 mod 5, and their associates; and (iii) all pairs of prime factors ðq = a + b ω and ðÌ q = a + b − b ð of every rational prime q ≡ ±1 mod 5, and their respective associates [5, p. 25], in particular πq may be chosen totally positive and such that q = ðqðÌ q = a2 + ab − b2. This explicit representation is obtained from the process that reduces the quadratic form pX2 + s5 XY + ð 52 −5 4ð Y2 27 of discriminant 5 to the canonical form X2 + XY − Y2, where s5 is the odd root of x2 = 5 mod p. This reduction algorithm, outlined by Gauss and cleverly reported in Buell [3], was described in a masterly fashion in Mathews’ book [13], and thus it will be referred to as Mathews’ reduction. It can be applied to any quadratic form of a non-perfect square discriminant. The square root s5 may be computed with deterministic polynomial complexity by distinguishing whether p is congruent 3 or 1 modulo 4. In the first case, s 5 is one of the two square roots p+1 ±5 4 mod p, and the computation clearly has deterministic polynomial complexity. In the second case Schoof’s algorithm [18, 21] is applied to compute both √−1 and √−5 modulo p, thus s5 is one of the two values ±√−1√−5 mod p. Schoof’s algorithm evaluates a square root modulo p in a number of arithmetical operations of order O(logt p) with t ≤ 10, that is with deterministic polynomial complexity [18]. A description of Schoof’s algorithm can be found in the original paper [18] or in Washington’s book [21], and is based on properties of elliptic curves that are briefly summarized. ........ 3. Representation of primes in Z(ð) 4. Computational remarks ........ The representations of primes ð ∈ Q(ω) as the sums of two squares, established by Theorems 2 and 3, are computed with deterministic poly-nomial complexity using procedures that will be described separately for the different cases. 4.1 Primes p ≡ 13, 17 mod 20 The representation p = a2 + b2 does not need any further comment, since p = 1 mod 4 is the sum of two integer squares by Fermat’s theorem, and its computation was shown in Section 2. 4.2 Primes p ≡ 1, 9 mod 20 u0 mod 5 x0 mod 5 y0 mod 5 0 0 ≠0 0 ≠0 L1 = 0 mod 5 ? x0 = 2y0 k ð¿′1 mod 5 0 2 y0 ≠ 0 3 2 y0 ≠ 0 ≠0 0 ≠0 ≠0 ð¿′1 ≠0 u0 = −2y0 1 2 y0 ≠ 0 u0= x0 − 2y0 2 x0 ≠ 0 = −( x0F2k-1 + y0 F2k) + u0 +2(x0F2k + y0F2k+1) ...... 5. Conclusions The representation of primes as sums of two squares in Z(ð) allows us to formulate a theorem concerning the representation of any integer in Z(ð): Theorem 4. In the field Q(ð), any totally positive integer ..... The computation of the two-square representation of any element in Z(ð) is equivalent to factoring, as in Z, therefore at the present time only the two-square representations of primes can be computed with deterministic polynomial complexity. References [1] B. Berndt and R. Evans, Sums of Gauss, Jacobi and Jacobsthal, Journal of Number Theory, Vol. 11 (1979), pp. 349–398. [2] J. Brillhart, Note on representing a prime as a sum of two squares, Mathematics of Computation, Vol. 26 (1972), pp. 1011–1013. [3] D. A. Buell, Binary Quadratic Forms, Springer-Verlag, New York, 1989. [4] D. A. Cox, Primes of the Form, Wiley, New York, 1989. [5] F. W. Dodd, Number Theory in the Quadratic Field with Golden Section Unit, Polygonal Pub. House, Paissac, 1983. [6] C.F. Gauss, Disquisitiones Arithmeticae, Springer-Verlag, New York, 1986. [7] G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, Oxford University Press, Oxford, 1971. [8] K. Ireland and M. Rosen, A Classical Introduction to Modern Number Theory, Springer-Verlag, New York, 1998. [9] D. E. Knuth, The Art of Computer Programming: Seminumerical Algo-rithms, Addison-Wesley, Reading, 1970. [10] S. Lang, Elliptic Functions, Springer-Verlag, New York, 1987. [11] F. Lemmermeyer, Reciprocity Laws, Springer-Verlag, New York, 2000. [12] R. Lidl and H Niederreiter, Finite Fields, Addison-Wesley, Reading 29 (MA), 1983. [13] G.B. Mathews, Theory of Numbers, Chelsea, New York, 1930. [14] J. Neukirch, Algebraic Number Theory, Springer-Verlag, New York, 1999. [15] P. Ribenboim, The Theory of Classical Valuations, Springer-Verlag, New York, 1999. [16] N. Robbins, On gibonacci and Lucas numbers which are sums of precisely four squares, Fibonacci Quarterly, Vol. 21 (1) (1983), pp. 3–5. [17] W. Scharlau and H. Opolka, From Fermat to Minkowski, SpringerVerlag, New York, 1985. [18] R. Schoof, Elliptic curves over finite fields and the computation of the square roots mod p, Mathematics of Computation, Vol. 44 (170) (April 1985), pp. 483–494. [19] J. P. Serre, Cours d’Arithmt´etique, P.U.F., Paris, 1970. [20] C. L. Siegel, The trace of totally positive and real algebraic integers, Annals of Math., Vol. 46 (1945), pp. 302–312. [21] L.C. Washington, Elliptic Curves, Number Theory and Cryptography, Chapman & Hall, New York, 2003. [22] A. Weil, Number Theory, Birkhauser,¨ Boston, 2001. Received October, 2005