The Group of Primitive Almost Pythagorean Triples

Similar documents
Math 104B: Number Theory II (Winter 2012)

RECIPROCITY LAWS JEREMY BOOHER

MATH342 Practice Exam

Representing Integers as the Sum of Two Squares in the Ring Z n

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

QUADRATIC RECIPROCITY

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

MAS 4203 Number Theory. M. Yotov

QUADRATIC RECIPROCITY

(Workshop on Harmonic Analysis on symmetric spaces I.S.I. Bangalore : 9th July 2004) B.Sury

Introduction to Arithmetic Geometry Fall 2013 Lecture #10 10/8/2013

On the Rank of the Elliptic Curve y 2 = x(x p)(x 2)

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

3 Properties of Dedekind domains

Practice Final Solutions

Algebraic Number Theory

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

POINTS ON CONICS MODULO p

A structure theorem for product sets in extra special groups

arxiv: v5 [math.nt] 22 Aug 2013

Mersenne and Fermat Numbers

QUADRATIC RECIPROCITY

Multiplicative group law on the folium of Descartes

An Overview of Witt Vectors

Elementary Analysis in Q p

6 Binary Quadratic forms

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

GAUSSIAN INTEGERS HUNG HO

MATH 361: NUMBER THEORY EIGHTH LECTURE

Almost 4000 years ago, Babylonians had discovered the following approximation to. x 2 dy 2 =1, (5.0.2)

DIVISIBILITY CRITERIA FOR CLASS NUMBERS OF IMAGINARY QUADRATIC FIELDS

HENSEL S LEMMA KEITH CONRAD

Complex Analysis Homework 1

Practice Final Solutions

Factorability in the ring Z[ 5]

Elliptic Curves Spring 2015 Problem Set #1 Due: 02/13/2015

p-adic Measures and Bernoulli Numbers

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

DISCRIMINANTS IN TOWERS

MATH 2710: NOTES FOR ANALYSIS

GOOD MODELS FOR CUBIC SURFACES. 1. Introduction

Mobius Functions, Legendre Symbols, and Discriminants

MATH 3240Q Introduction to Number Theory Homework 7

QUADRATIC RESIDUES AND DIFFERENCE SETS

Jacobi symbols and application to primality

BOUNDS FOR THE SIZE OF SETS WITH THE PROPERTY D(n) Andrej Dujella University of Zagreb, Croatia

arxiv: v2 [math.nt] 11 Jun 2016

#A64 INTEGERS 18 (2018) APPLYING MODULAR ARITHMETIC TO DIOPHANTINE EQUATIONS

FERMAT S LAST THEOREM

THE THEORY OF NUMBERS IN DEDEKIND RINGS

Sets of Real Numbers

Solvability and Number of Roots of Bi-Quadratic Equations over p adic Fields

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

192 VOLUME 55, NUMBER 5

MAT 311 Solutions to Final Exam Practice

Primes - Problem Sheet 5 - Solutions

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

MA3H1 TOPICS IN NUMBER THEORY PART III

DIRICHLET S THEOREM ABOUT PRIMES IN ARITHMETIC PROGRESSIONS. Contents. 1. Dirichlet s theorem on arithmetic progressions

arxiv: v1 [math.nt] 4 Nov 2015

CONGRUENCES CONCERNING LUCAS SEQUENCES ZHI-HONG SUN

MATH 248A. THE CHARACTER GROUP OF Q. 1. Introduction

Factor Rings and their decompositions in the Eisenstein integers Ring Z [ω]

Diophantine Equations and Congruences

arxiv: v2 [math.nt] 9 Oct 2018

#A45 INTEGERS 12 (2012) SUPERCONGRUENCES FOR A TRUNCATED HYPERGEOMETRIC SERIES

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

Class Field Theory. Peter Stevenhagen. 1. Class Field Theory for Q

MATH 361: NUMBER THEORY ELEVENTH LECTURE

MATH 371 Class notes/outline September 24, 2013

SUBORBITAL GRAPHS FOR A SPECIAL SUBGROUP OF THE NORMALIZER OF. 2p, p is a prime and p 1 mod4

ON FREIMAN S 2.4-THEOREM

Piotr Blass. Jerey Lang

MAT4250 fall 2018: Algebraic number theory (with a view toward arithmetic geometry)

HASSE INVARIANTS FOR THE CLAUSEN ELLIPTIC CURVES

Infinitely Many Quadratic Diophantine Equations Solvable Everywhere Locally, But Not Solvable Globally

Quaternionic Projective Space (Lecture 34)

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Pythagorean triples and sums of squares

Primes of the form ±a 2 ± qb 2

THE CHARACTER GROUP OF Q

Positive decomposition of transfer functions with multiple poles

t s (p). An Introduction

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

We collect some results that might be covered in a first course in algebraic number theory.

δ(xy) = φ(x)δ(y) + y p δ(x). (1)

#A37 INTEGERS 15 (2015) NOTE ON A RESULT OF CHUNG ON WEIL TYPE SUMS

ARITHMETIC PROGRESSIONS OF POLYGONAL NUMBERS WITH COMMON DIFFERENCE A POLYGONAL NUMBER

The Euler Phi Function

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

Introduction to Group Theory Note 1

Characteristics of Fibonacci-type Sequences

#A6 INTEGERS 15A (2015) ON REDUCIBLE AND PRIMITIVE SUBSETS OF F P, I. Katalin Gyarmati 1.

MATH 210A, FALL 2017 HW 5 SOLUTIONS WRITTEN BY DAN DORE

Pell's Equation and Fundamental Units Pell's equation was first introduced to me in the number theory class at Caltech that I never comleted. It was r

Galois Fields, Linear Feedback Shift Registers and their Applications

RINGS OF INTEGERS WITHOUT A POWER BASIS

(IV.D) PELL S EQUATION AND RELATED PROBLEMS

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

A review of the foundations of perfectoid spaces

Transcription:

The Grou of Primitive Almost Pythagorean Triles Nikolai A. Krylov and Lindsay M. Kulzer arxiv:1107.2860v2 [math.nt] 9 May 2012 Abstract We consider the triles of integer numbers that are solutions of the equation x 2 + qy 2 = z 2, where q is a fixed, square-free arbitrary ositive integer. The set of equivalence classes of these triles forms an abelian grou under the oeration coming from comlex multilication. We investigate the algebraic structure of this grou and describe all generators for each q {2,3,5,6}. We also show that if the grou has a generator with the third coordinate being a ower of 2, such generator is unique u to multilication by ±1. Keywords: Pythagorean triles; Infinitely generated commutative grous 2010 Mathematics Subject Classification: 20K20, 11D09. 1 Introduction and the grou of PPTs The set of Pythagorean triles has various interesting structures. One of such structures is induced by a binary oeration introduced by Taussky in[11]. Recall that a Pythagorean trile (PT from now on) is an ordered trile (a,b,c) of natural numbers satisfying the identity a 2 +b 2 = c 2, and given two such triles (a 1,b 1,c 1 ) and (a 2,b 2,c 2 ) we can roduce another one using the following oeration A := a 1 a 2 +b 1 b 2, B := a 1 b 2 a 2 b 1, C := c 1 c 2. (1) The natural relation (a,b,c) (λa,λb,λc) for λ N, called rojectivization, is an equivalence relation on this set. The oeration mentioned above induces an abelian grou structure on the set of equivalence classes of PTs where the identity element is the class of (1,0,1). When a,b and c have no common rime divisors, the trile (a,b,c) is called rimitive. It s easy to see that every equivalence class contains exactly one rimitive Pythagorean trile. Thus the set of all rimitive Pythagorean triles (PPTs from now on) forms an abelian grou under the oeration given in (1). The algebraic structure of this grou, denoted by P, was investigated by Eckert in [3], where he roved that the grou of PPTs is a free abelian grou generated by all rimitive triles (a,b,c), where a > b and c is a rime number of the linear form c = 4n+1. Every Pythagorean trile (a,b,c) naturally gives a oint on the unit circle with rational coordinates (a/c,b/c) and 1

the equivalence class of PTs corresonds to a unique oint on the circle. Oeration (1) on the Pythagorean triles corresonds to the angle addition of rational oints on S 1 and thus the grou of PPTs is identified with the subgrou of all rational oints on S 1. Analysis of this grou was done by Tan in [10] and his Theorem 1 (see age 167) is equivalent to what Eckert roved in his Proosition on age 25 of [3]. It is not hard to notice that the comosition law (1) naturally extends to the solutions of the Diohantine equation X 2 +q Y 2 = Z 2 (2) where q is a fixed, square-free arbitrary ositive integer. Via rojectivization, we obtain a well defined binary oeration on the set of equivalence classes of solutions to (2), and the set of such classes forms an abelian grou as well. For some secial values of q, including all q {2,3,5,6,7,15}, such a grou has been considered by Baldisserri (see [1]). However, it seems that the generators (3,1,4) for q = 7, and (1,1,4) for q = 15 are missing in [1]. With the above in mind, we will consider in this aer the set of triles we call almost Pythagorean triles, which are solutions to the equation (2). As in the case of PTs, each equivalence class here contains exactly one rimitive almost Pythagorean trile and therefore the set of equivalence classes is the set of Primitive Almost Pythagorean Triles (PAPTs from now on). Inthe next two sections we give acomlete descrition ofthisgrouforq {2,3,5,6}, similar to the one given in [3]. We also rove that for all q 3 the grou of PAPTs is free abelian of infinite rank. In the last section we will discuss solutions (a,b,c) where c is even. Please note that some of the results we rove here have been obtained earlier by Baldisserri, however our roof of existence of elements of finite order is different from the one given in [1]. We also exlain that if (a,b,2 k ) is a non-trivial solution of (2) with q 3, the set of all such solutions makes an infinite cyclic subgrou of the grou of PAPTs. When q = 7 and q = 15 such a subgrou is missing in the Theorem 2. of [1]. 2 Grou of PAPTs Let T q denote the set of all integer triles (a,b,c) Z Z N such that a 2 + q b 2 = c 2. We introduce the following relation on T q : two triles (a,b,c) and (A,B,C) are equivalentifthereexistm,n Z\{0}suchthatm(a,b,c) = n(a,b,c),wherem(a,b,c) = (ma,mb, mc ). It is a straight forward check that this is an equivalence relation (also known as rojectivization). We will denote the equivalence class of (a,b,c) by [a,b,c]. Note that [a,b,c] = [ a, b,c], but [a,b,c] [ a,b,c]. We will denote the set of these equivalence classes by P q. Now we define a binary oeration on P q that generalizes the one on the set of PPTs defined by (1). Definition 1. For two arbitrary classes [a,b,c], [A,B,C] P q define their sum by the formula [a,b,c]+[a,b,c] := [aa qbb,ab +ba,cc]. 2

It is a routine check that this definition is indeendent of a articular choice of a trile and thus the binary oeration is well defined. Here are two examles: If q = 7, [3,1,4]+[3,1,4]+[3,1,4] = [3,1,4]+[2,6,16] = [ 36,20,64] = [ 9,5,16]. If q = 14, [5,2,9]+[13,2,15] = [9,36,135] = [1,4,15]. Since [a,b,c] + [1,0,1] = [a,b,c], [a,b,c] + [ a,b,c] = [ a 2 qb 2,0,c 2 ] = [c 2,0,c 2 ], and the oeration is associative (this check is left for the reader), we obtain the following (c.f. 2 of [1] or 4.1 of [12]) Theorem 1. (P q, +) is an abelian grou. The identity element is [1,0,1] and the inverse of [a,b,c] is [a, b,c] = [ a,b,c]. The urose of this aer is to see what the algebraic structure of (P q, +) is, and how it deends on q. From now on we will denote this grou simly by P q. Please note that every equivalence class [a,b,c] P q can be reresented uniquely by a rimitive trile (α,β,γ) T q, where α > 0. In articular, this gives us freedom to refer to rimitive triles to describe elements of the grou. Remark 1: The grou P q is a natural generalization of the grou P of PPTs. However, P 1 is not isomorhic to P. The key oint here is that the trile (0,1,1) / T q, when q > 1, and the inverse of [a,b,c] is [a, b,c] = [ a,b,c]. In articular, it forces the consideration of triles with a and b being all integers and not only ositive ones. As a result, the triles (1,0,1) and (0,1,1) are not equivalent in T 1. In order for the binary oeration on the set of PPTs to be well defined, the trile (0,1,1) must be equivalent to the identity trile (1,0,1) (see formulae (5) on age 23 of [3]). The relation between our grou P 1 and the grou P of PPTs is given by the following direct sum decomosition P 1 = P Z/2Z, where the 2-torsion subgrou Z/2Z is generated by the element [0,1,1]. To rove this, one uses the ma f : P Z/2Z P 1 defined by the following formula. f ( (a,b,c),n ) { [a,b,c]+[1,0,1] = [a,b,c] if n = 0 := [a,b,c]+[0,1,1] = [ b,a,c] if n = 1 It s easy to see that this f is an isomorhism. Remark 2: The grou P q also has a geometric interretation: Consider the set P(Q) of all oints (X,Y) Q Q that belong to the conic X 2 + qy 2 = 1. Let N = (1,0) and take any two A,B P(Q). Draw the line through N arallel to the line (AB), then its second oint of intersection with the conic X 2 +qy 2 = 1 will be A+B (see [4], section 2.2 and also section 1 of [5] for the details). Via such geometric oint of view, Lemmermeyer draws a close analogy between the grous P(Z) of integral oints on the conics in the affine lane and the grous E(Q) of rational oints on ellitic curves in the rojective lane ([4], [5]). One of the key characteristics of P(Z) and E(Q) is that both of the grous are finitely generated. Note however that if q > 0, the curve X 2 +qy 2 = 1 has only two integer oints (±1,0). One could consider the solutions of X 2 + qy 2 = 1 over a finite 3

field F q or over the -adic numbers Z. In each of these cases the grou of all solutions is also finitely generated and we refer the reader to section 4.2 of [5] for the exact formulas. In the resent aer we investigate the grou structure of all rational oints on the conic X 2 +qy 2 = 1 when q 2 and such grou is never finitely generated, as we exlain below. 3 Algebraic structure of P q The classical enumeration of rimitive ythagorean triles in the form ( ) u (a,b,c) = (u 2 v 2, 2uv, u 2 +v 2 2 v 2 u 2 +v 2 ) or, uv, 2 2 is a useful comonent in understanding the grou structure on the set of PPTs. We assume here that integers u and v have no common rime divisors, otherwise (a, b, c) won t be rimitive. One could use the Diohantus chord method (see for examle 1.7 of [9]) to derive such enumeration of all PPTs. This method can be generalized to enumerate all solutionsto(2) forallsquare-free q > 1. Inarticular, if arimitive trile (a,b,c) T q, then there exists a air (u,v) of integers with no common rime divisors, such that ) (a,b,c) = (±(u 2 qv 2 ), 2uv, u 2 +qv 2 ) or (± u2 qv 2 u 2 +qv 2, uv,. 2 2 We can use this enumeration right away to rove that if c is rime, and (a,b,c) T q, then such a air of integers (a,b) is essentially unique. Here is the recise statement. Claim 1. If c is rime and then (x, y) = (h 1 a, h 2 b), where h i = ±1. x 2 +qy 2 = c 2 = a 2 +qb 2, where abxy 0 Proof. We aly Lemma 5.48 from 5.5. of [12]. When 2c = u 2 + qv 2 the roof needs an additional argument exlaining why not just β/α 0 but β/(2α 0 ) will be in the ring of integers. It can be easily done considering searate cases of even and odd q and using the fact that if q is odd, then u and v used in the enumeration are both odd, and if q is even, then u will be even and v will be odd. We leave details to the reader. We will use these results when we discuss generators of P q below, but first we will find for which q > 1 the grou P q will have elements of finite order. 3.1 Torsion in P q We follow Eckert s geometric argument ([3], age 24) to understand the torsion of P q. 4

Lemma 1. If q = 2 or q > 3, then P q is torsionfree. P 3 = F3 Z/3Z, where F 3 is a free abelian grou. Proof. Let us assume that q 2, and suose the trile (a,b,c) is a solution of (2), that is we can identify oint (a/c, q b/c) with e iα on the unit circle U. Then a circle Sr 1 with radius r = α/(2π) is made to roll inside U in the counterclockwise direction. The radius r is chosen this way so that the length of the circle Sr 1 equals length of the smaller arc of U between the oints e iα and e 0 = (1,0). Let us denote the oint (1,0) by P and assume that this oint moves inside the unit disk when Sr 1 rolls inside U. When 1 = kr for some ositive integer k, this oint P traces out a curve known as a hyocycloid. In this case the oint P will mark off k 1 distinct oints on U and will return to its initial osition (1,0) so the hyocycloid will have exactly k cuss. If P doesn t return to (1,0) after the first revolution around the origin, it might come back to (1,0) after, say n, such revolutions. In that case n 2π = m α, for some m N. Thus, α is a rational multile of π, or to be more recise, α = π 2n m Due to Corollary 3.12 of [7] (see Ch.3, Sec.5), in such a case the only ossible rational values of cos(α) are 0,± 1 2,±1. Since cos(α) = a/c, where a 0, we see that P q might have a torsion only if a/c = ±1/2 or a/c = ±1. In the latter case we must have q b 2 = 0, which imlies that the element [a,b,c] is the identity of P q. Suose now a/c = ±1/2. Then qb 2 = 3a 2 and if 3 q we will have a rime t 3 dividing q. We canassume without loss of generality that gcd(a,b) = 1, hence we obtain t a and therefore t 2 qb 2. Since q is square-free, we must have t b 2, which contradicts that gcd(a,b) = 1. Therefore if q = 2 or q > 3, P q is torsionfree. Suose now q = 3. Then we obtain a = ±b and we can multily [a,b,c] by 1, if needed, to conclude that [a,b,c] = [1,1,2] or [a,b,c] = [1, 1,2]. We have [a,b,c] = Z/3Z in both these cases. It imlies that P 3 /(Z/3Z) is free abelian and hence P 3 = F3 Z/3Z. Remark 3: There is a another way to obtain this lemma via a different aroach to the grou P q, q > 0. The authors are very thankful to Wladyslaw Narkiewicz who exlained this alternative viewoint to us (cf. also with [1]). Consider an imaginary quadratic field Q( q) and the multilicative subgrou of non-zero elements whose norm is a square of a rational number. Let us denote this subgrou by A q. Obviously Q A q (Q denotes the grou of non-zero rational numbers). It is easy to see that P q = Aq /Q, and it follows from Theorem A. of Schenkman (see [8]) that A q is a direct roduct of cyclic grous. Hence the same holds for P q. If q = 1 or q = 3 the grou A q will have elements of finite order since the field Q( q) has units different from ±1. These units will generate in P q the torsion factors Z/2Z or Z/3Z, when q = 1 or q = 3 resectively. 3.2 On generators of P q when q 6 In this subsection we assume that 2 q 6, andwill describe the generators of P q similar to the way it was done by Eckert in his roosition on ages 25 and 26 of [3]. We will 5

use F q to denote the free subgrou of P q. As follows from 3.1 above, F q = P q, for q 3, and P 3 = F3 (Z/3Z). The key oint in Eckert s descrition of the generators of the grou of rimitive ythagorean triles is the fact that a rime can be a hyothenuse in a ythagorean triangle if and only if 1 (mod 4). Our next lemma generalizes this fact to the cases of rimitive triles from T q, with q {2,3,5,6}. Lemma 2. If (a,b,c) T 2 is rimitive and is a rime divisor of c, then there exist u,v Z such that = u 2 +2v 2. If (a,b,c) T 3 is rimitive and is a rime divisor of c, then either = 2 or there exist u,v Z such that = u 2 + 3v 2. If (a,b,c) T q is rimitive where q = 5 or q = 6, and is a rime divisor of c, then u,v Z such that = u 2 +qv 2 or 2 = u 2 +qv 2. Proof. Consider (a,b,c) T q. Since a 2 +qb 2 = c 2 where q {2,3,5,6}, it follows from the generalized Diohantus chordmethodthat s,t Zsuch that c = s 2 +qt 2 or2c = s 2 +qt 2. Suose c = n 1 1... n k, is the rime decomosition of c. k Case 1: q = 2. We want to show that each rime i dividing c can be written in the form i = u 2 + 2v 2 for some u,v Z (note that if q is even, i 2). It is well known that a rime can be written in the form = u 2 +2v 2 = 8n+1 or = 8n+3, for some integer n (see chater 9 of [9], or chater 1 of [2]). Thus it s enough to show that if a rime c then = 8n+1 or = 8n+3. Since c, and c = s 2 +qt 2 or 2c = s 2 +qt 2 we see that m Z such that m = s 2 +2t 2 and hence 2t 2 s 2 (mod ), i.e. the Legendre Symbol ( 2t2 ( 2 ) = 1. Using basic roerties of the Legendre symbol, it imlies that ( 2) = 1. But ) = 1 iff = 8n + 1 or = 8n + 3 as follows from the sulements to quadratic recirocity law. This finishes the case with q = 2. Case 2: Suose now that q = 3. Then (1,1,2) T 3 gives an examle when c is divisible by rime = 2. Note also that rime = 2 is of the form 2 = u 2 +3v 2. Assuming from now on that rime dividing c is odd, we want to show that there exist u,v Z such that = u 2 +3v 2, which is true if and only if n Z such that = 3n+1 (see again [9] or [2]). Hence, in our case, it suffices to show that if c then n Z such that = 3n+1. As in Case 1, m Z such that m = s 2 +3t 2 for some s,t Z. Therefore, we have that the Legendre Symbol ( 3 ) = 1, which holds iff = 3n+1. One can rove this using the quadratic recirocity law (e.g. [9], Section 6.8). Case 3: Suose now that q = 5. Note that in this case c must be odd. Indeed, if c was even, x 2 +5y 2 would be divisible by 4, but on the other hand, since both of x and y must be odd when q is odd and c is even, we see that x 2 + 5y 2 0 (mod 4). Since c then again m Z such that m = s 2 + 5t 2 for some s,t Z. I.e. ( 5 ) = 1. It is true that for any integer n and odd rime not dividing n that Legendre Symbol ( n ) = 1 iff is reresented by a rimitive form ax 2 +bxy +cy 2 of discriminant 4n such that a,b, and c are relatively rime (see Corollary 2.6 of [2]). Following an algorithm in 2.A of [2] to 6

show that every rimitive quadratic form is equivalent to a reduced from, one can show that the only two rimitive reduced forms of discriminant 4 5 = 20 are x 2 +5y 2 and 2x 2 +2xy+3y 2. Through a simle calculation its easy to see that a rime is of the form This finishes the third case. = 2x 2 +2xy +3y 2 2 = x 2 +5y 2. Case 4: Lastly, let s consider the case when q = 6. Once again since 2 and c then ( 6 ) = 1. Using the same Corollary used in case 3, we see that must be reresented by a rimitive quadratic form of discriminant 4 6 = 24. Also, following the same algorithm used in case 3 to determine such rimitive reduced forms, we find that there are only two; x 2 +6y 2 and 2x 2 +3y 2. Through a simle calculation it can be determined that a rime is of the from Thus, the lemma is roven. = 2x 2 +3y 2 2 = x 2 +6y 2. Remark 4: One could write rime divisors from this lemma in a linear form if needed. It is a famous roblem of classical number theory which rimes can be exressed in the form x 2 +ny 2. The reader will find a comlete solution of this roblem in the book [2] by Cox. For examle, if is rime, then for some n Z we have 20n+1 20n+3 = 20n+7 20n+9 if and only if = x 2 +5y 2 or = 2x 2 +2xy +3y 2. We refer the reader for the details to chater 1 of [2]. Now we are ready to describe all generators of P q, where q {2,3,5,6}. Our roof is similar to the roof given in [3] by Eckert, where he decomoses the hyothenuse of a right triangle into the roduct of rimes and after that eels off one rime at a time, together with the corresonding sides of the right triangle. His descrition of rime 1 (mod 4) is equivalent to the statement that can be written in the form = u 2 +v 2, for some integers u and v, which is the case of Fermat s two square theorem. In the theorem below we also use quadratic forms for the rimes. Theorem 2. Let us fix q {2,3,5,6}. Then P q is generated by the set of all triles (a,b,) T q where a > 0, and is rime such that u,v Z with = u 2 + qv 2, or 2 = u 2 +qv 2. Proof. Take arbitrary [r,s,d] P q and let us assume that (r,s,d) T q will be the corresonding rimitive trile with r > 0, and the following rime decomosition of 7

d = n 1 1... n k k. It is clear from what we ve said above that d will be odd when [r,s,d] F q, and d will be even only if q = 3 and [r,s,d] / F 3. Our goal is to show that [r,s,d] = k i=1 n i [a i,b i, i ], where a i > 0, n i [a i,b i, i ] := [a i,b i, i ]+ +[a i,b i, i ] }{{} n i times and i is either of the form u 2 + qv 2, or of the form (u 2 + qv 2 )/2. We deduce from our Lemma 2 that each rime i d can be written in one of these two forms. Hence, for all i, a i,b i Z such that a 2 i +qb2 i = 2 i. Indeed, if we have 2 = u2 +qv 2, then 4 2 = (u 2 qv 2 ) 2 +4q(uv) 2 and since u 2 + qv 2 is even, u 2 qv 2 will be even as well, and therefore we could write α 2 +qβ 2 = 2, where α = (u 2 qv 2 )/2 and β = uv. Thus [a i,b i, i ] P q. Since P q is a grou, the equations [r,s,d] = { [X1,Y 1,D 1 ]+[a k,b k, k ] [X 2,Y 2,D 2 ]+[ a k,b k, k ] always have a solution with (X i,y i,d i ) Z Z N. The key observation now is that only one of the triles (X i,y i,d i ) will be equivalent to a rimitive trile (x,y,d 1 ), with d 1 < d. Indeed, we have [r,s,d] = [X,Y,D]±[a,b,] or { [ ra qsb,rb sa,d] [X,Y,D] = [r,s,d]±[ a,b,] = [ra qsb,rb+sa,d] Since d, we have d 0 (mod 2 ) and hence it is enough to show that either ra+qsb rb sa 0 (mod 2 ), or ra qsb rb + sa 0 (mod 2 ) (c.f. Lemma on age 24 of [3]). From the following identity (sa rb)(sa+rb) = s 2 a 2 r 2 b 2 = s 2 (a 2 +qb 2 ) b 2 (r 2 +qs 2 ) 0 (mod 2 ), we deduce that either divides each of sa rb and sa+rb, or 2 divides exactly one of these two terms. In the first case 2sa, which is imossible if is odd, since then either a 2 > 2 or (r,s,d) won t be rimitive. If we assume = 2, then as we exlained in Lemma 2., q = 3 and therefore (a,b,) = (1,1,2) so (ra qsb,rb+sa,d) = (r 3s,r +s,2d). But r + s r 3s (mod 4) and if 4 r + s we can write (ra qsb,rb + sa,2d) = 4 ( (r 3s)/4,(r + s)/4,d 1 ), where d1 = d/2. If r + s 2 (mod 4), we will divide each element of the other trile by 4. Thus we can assume from now on that is an odd rime and that either 2 sa rb or 2 sa+rb. Let us assume without loss of generality that sa rb = k 2 for some k Z. Since the trile ( ra qsb,rb sa,d) is a solution of (2), and the last two elements are divisible by 2, it is obvious that the first element must be divisible by 2 too, i.e. that ra+qsb = t 2. That imlies that [X,Y,D] = [ ra qsb,rb sa,d] = [ t, k,d 1 ], 8

where d 1 = d/ < d, which we wanted to show. The other case is solved similarly. Note that only one of the two triles will have all three elements divisible by 4, which means that only [a,b,] or [ a,b,] can be subtracted from the original element [r,s,d] in such a way that the result will be in the required form. Thus we can eel off the trile [a k,b k, k ] from the original one [r,s,d] ending u with theelement [x,y,d 1 ], where new d 1 < d. Notethat we canalways assume that a k > 0 by using either [a k,b k, k ] or [ a k, b k, k ]. Then simly kee eeling off until all rime divisors of d give the required resentation of the element [r,s,d] as a linear combination of the generators [a i,b i, i ]. Remark 5: SincetheserimesarethegeneratorsofP q whenq {2,3,5,6}andeachrime (with excetion = 2 when q = 3) generates an infinite cyclic subgrou, it is obvious that P q contains an infinite number of elements. The same holds for P q when q 7. This can be shown through roerties of Pell s equation c 2 qb 2 = 1 where q is a square-free ositive integer different from 1. This equation can be re-written as c 2 = 1 2 +qb 2, which is in fact our equation (2) with secific solutions (1,b,c). It is a classical fact of number theory that this equation always has a nontrivial solution and in result, has infinitely many solutions (see [12], Section 4.2 or [9], Section 5.9). Note that it is not obvious that Pell s equation has a nontrivial solution for arbitrary q. For examle, the smallest solution of the equation 1 2 +61b 2 = c 2 is b = 226,153,980, c = 1,766,319,049. Let us observe that the equation a 2 + 61b 2 = c 2, where a is allowed to be any integer, has many solutions with smaller integer triles. Three examles are [3,16,125], [6,7,55], and [10,9,71]. 3.3 On generators of P q when q 7 and the triles (a,b,2 k ) It is interesting to see how the method of eeling off breaks down in secific cases of q for q 7. Here are some examles of PAPTs (a,b,c) T q, where c is divisible by a rime but there exist no nontrivial air r,s Z, such that (r,s,) T q. The rimitive trile (9,1,10) T 19 is a solution, where 10 is divisible by rimes 2 and 5, however, it is imossible to find nonzero a, b Z, such that a 2 +19b 2 = 5 2. The rimitivetrile(3,1,4) T 7 isasolution, where4isdivisible byrime2, however, it is imossible to solve a 2 +7b 2 = 2 2 in integers. In T 15 the rimitive trile (1,1,4) is a roblematic solution for the same reason. It is mentioned in [1] (see Observation #2 on age 304) that if a non-trivial and rimitive (a,b,c) solves (2), then c could be even only when q 3 (mod 4). Moreover if q 3 (mod 8), we must have c = 2 odd, but if q 7 (mod 8) we could have c divisible by any ower of 2. Indeed, as we just mentioned above, the trile (3,1,4) solves (2) with 9

q = 7, and clearly can not be resented as a sum of two smaller triles. Since P 7 is free, we see that (3,1,4) must generate a coy of Z inside P 7, and one can easily check that we have 2 [3,1,4] = ±[1,3,2 3 ], 3 [3,1,4] = ±[9,5,2 4 ], 4 [3,1,4] = ±[31,3,2 5 ],... The same holds for the trile (1,1,4) T 15 but somehow these two generators of P 7 and P 15 are not mentioned in the theorem 2 of [1]. Can we have more than one such generator for a fixed q? In other words, how many nonintersecting Z-subgrous of P q can exist, rovided that each subgrou is generated by a trile where c is a ower of 2? The following theorem shows that there could be only one such generator (for the definition of irreducible solution we refer the reader to age 304 of [1], but basically it means that this solution is a generator of the grou of PAPTs). Theorem 3. Fix q as above and assume that the trile (a,b,2 k ) is an irreducible solution of (2). If (x,y,2 r ) T q and r k, then n Z such that [x,y,2 r ] = n [a,b,2 k ] Proof. Our idea of the roof is to show that given such a trile (x,y,2 r ) T q with r k, we can always eel of (i.e. add or subtract) one coy of (a,b,2 k ) so the resulting rimitive trile will have the third coordinate 2 r 1. Thus we consider { [xa qyb, ay +xb, 2 [S,T,V] := [x,y,2 r ]±[a,b,2 k ] = r+k ] [xa+qyb, ay xb, 2 r+k ] Since a, b, x and y are all odd, either ay +xb or ay xb must be divisible by 4. Let s assume that 4 ay xb and hence we can write ay xb = 2 d R, where d 2. Clearly, it s enough to rove that d k +1. We rove it by induction, i.e. we will show that if d k, then R must be even. Since S = xa+qyb we could write ( ) ( ) ( ) 2d R b a x = S a qb y and hence ( ) x = 1 y 2 2k ( ) qb a a b which gives bs = 2 2k y a2 d R. Since (bs,bt,bv) T q, we can also write (2 2k y +a2 d R) 2 +qb 2 (2 d R) 2 = b 2 2 2r+2k. ( ) 2d R S This last identity is equivalent to the following one (after using a 2 +qb 2 = 2 2k and dividing all terms by 2 2k ) 2 2k y 2 +2 d+1 ayr+2 2d R 2 = b 2 2 2r. Furthermore, we can cancel 2 d+1 as well, because 1 < d k r, and then we will obtain that ayr = b 2 2 2r d 1 2 d 1 R 2 2 2k d 1 y 2 = even, which finishes the roof since a and y are odd. 10

Remark 6: Please note that if a rimitive trile (a,b,2 d) T q for q 7 (mod 8), it is easy to show that d must be even (comare with Observation # 2 of [1], where λ must be at least 2). When q {7, 15}, we obtain the generators (3,1,4) and (1,1,4) resectively. However, if for examle q = 23, the rimitive solution (a,b,c) where c is the smallest ower of 2 is (7,3,16) but (11,1,12) also belongs to P 23. References [1] Baldisserri, Natalia: The grou of rimitive quasi-pythagorean triles. Rend. Circ. Mat. Palermo (2) 48 (1999), no. 2, 299-308. [2] Cox, David: Primes of the form x 2 +ny 2. Fermat, class field theory and comlex multilication. A Wiley-Interscience Publication. John Wiley& Sons, Inc., New York, 1989. [3] Eckert, Ernest: The grou of rimitive Pythagorean triangles Math. Mag. 57 (1984), no. 1, 22-27. [4] Lemmermeyer, Franz: Higher Descent on Pell Conics III. The First 2-Descent, rerint 2003 [5] Lemmermeyer, Franz: Conics- a Poor Man s Ellitic Curves, rerint 2003 [6] McCullough, Darryl: Height and excess of Pythagorean triles Math. Mag. 78 (2005), no. 1, 26 44. [7] Niven, Ivan: Irrational numbers. The Carus Mathematical Monograhs, No. 11. The Mathematical Association of America. Distributed by John Wiley and Sons, Inc., New York, N.Y., 1956. [8] Schenkman, Eugene: On the multilicative grou of a field. Arch. Math. (Basel) 15 (1964), 282-285. [9] Stillwell, John: Elements of number theory, Undergraduate Texts in Mathematics. Sringer-Verlag, New York, 2003. [10] Tan, Lin: The Grou of Rational Points on the Unit Circle, Math. Mag. 69 (1996), no. 3, 163-171. [11] Taussky, Olga: Sums of squares, Amer. Math. Monthly 77 (1970), 805-830. [12] Weintraub, Steven: Factorization: unique and otherwise, CMS Treatises in Mathematics. Canadian Mathematical Society, Ottawa, ON; A K Peters, Ltd., Wellesley, MA, 2008. 11

Siena College, Deartment of Mathematics 515 Loudon Road, Loudonville NY 12211 nkrylov@siena.edu and lm15kulz@siena.edu 12