Sum of Squares

In this our aim is to determine which integers can be expressed as the sum of given number of squares ie; which have the form x21+x22++x2k, where each xiZ, for a given k.

Definition: For each integer k1, let Sk={n|n=x21+x22++x2k for some x1,x2,,xkZ} , the set of all sum of k squares.

Example:

S1={0,1,4,9,} is the set of all squares. By inspection S2, the set of sum of two squares contains 0,1,2,4,5 and 8 but not 3,6, or 7.

Lemma: The set S2 contains, the sum of two squares is closed under multiplication ie; if s,tS2 , then stS2.

Proof:Let s=a21+b21 and t=a22+b22 be the elements of S2, where a1,b1,a2,b2Z. Then the identity

(a21+b21)(a22+b22)=(a1a2b1b2)2+(a1b2+b1a2)2

This shows that stS2

Example:

We have 8=22+22 and 10=32+12 so 8.10=80=(2.32.1)2+(2.1+2.3)2=42+82

Note: an equivalent identity can also be obtained by replacing b1 with b1ie:

(a21+b21)(a22+b22)=(a1a2+b1b2)2+(a1b2b1a2)2

The lemma suggest that, in determining elements of S2, we should first consider prime numbers; each integer n2 is a product of primes, and if these prime factors are all in S2 then so is n.How ever not all prime numbers are sum of two squares.prime 3 is an example.

Two square Theorem

Two square theorem was stated by Fermat in 1640 and proved by Euler in 1754.

Theorem: Each prime p1(mod4) is a sum of two squares.

Here are some examples of primes of the form 4n+1 that can be represented as the sum of two squares:
5=12+22
13=22+32
17=12+42
29=22+52
37=12+62
41=42+52

Example:
The integer 221(17.13) can be represented as sum of squares.13171(mod4).
13=32+22
17=42+12
So using the theorem the product can also be represented as sum of squares
221=(3.42.1)2+(3.1+2.4)2=102+112
We can also get a different expression using the formula (a21+b21)(a22+b22)=(a1a2+b1b2)2+(a1b2b1a2)2
221=(3.4+2.1)2+(3.12.4)2=142+52

Example:
Express 6409 as some of two squares
64091(mod4)
6409=221.29
221=102+112
29=52+22
So 6409=(10.511.2)2+(10.2+11.5)2=282+752

Theorem: A positive integer n is a sum of two squares if and only if every prime q3(mod4) divides n into an even power ( which may of course be zero if qn)

A positive integer n is expressible as the sum of two squares if and only if the exponent of each of its prime factors congruent 3 modulo 4 in the canonical decomposition of n is even.

Lemma:If a positive integer n can be expressed as the sum of two squares, then so can k2n for every positive integer k.
Example:
The integer 60=22.3.5 is not a sum of two squares , since the exponent of 3 dividing it is odd.However 180=22.32.5 is a sum of two squares.To find them first write 5 as a sum of two squares.5=22+12.Now multiplying through by 22.32, we get 180=(2.3.2)2+(2.3.1)2=122+62

Example:
Represent 5733 as sum of two squares
5733=32.72.13
It is noted that both 3 and 7 having even power.So 5733 can be represented as sum of two squares.
Since 13=22+32.So according to the leamma k2n can also be represented as some of two squares.
(3.7)2(22+32)=(3.7.2)2+(3.7.3)2=422+632

Corollary:A prime p is a sum of two squares if and only if  p=2 or p1(mod4)

The Gaussian Integers
A representation of an integer n as a difference of two squares say n=x2y2, give rise to the factorization of n as a product of two integers.
n=x2y2=(x+y)(xy)

where x+yxy(mod2).Conversely, if n=rs, where rs(mod2), then by writing  x=(r+s)/2 and y=(rs)/2 , we get n=x2y2 with x,yZ.

This link with factorisation can be extended to sum of two squares , if we write
n=x2+y2=(x+yi)(xyi)
where i=1C.Given any factorisation n=rs of this form, we now write x=(r+s)/2 and y=(rs)/2i, provided these are integers.

This suggest that we should study the complex numbers of the form x+yi(x,yZ), known as the Gaussian Integers.and in particular their factorisations.

The set
Z[i]={x+yix,yZ}

is closed under addition,subtraction and multiplication.The usual axioms associativity, distributivity etc is satisfied and Z[i] is a ring, however it is not a field, since not every non zero element of Z[i] is a unit.
Addition
(a+bi)+(c+di)=(a+c)+(b+d)i
Subtraction
(a+bi)(c+di)=(a+c)(b+d)i
Multiplication
(a+bi)(c+di)=(acbd)+(ad+bc)i

Thus Zi shares many of the basic properties of Z. So it is not surprising that many of the results of integer division and factorization extends in a natural way to Gaussian Integers.

There are two other important properties of Z shared by Zi.The first property is that if rs=0 then r=0 or s=0.A ring with this property is called Integral Domain.

The second property of Z is the division algorithm, which allows one to divide an integer a by a non zero integer b with a remainder which is small compared with b.

An Integral Domain R is Euclidean domain if  for each aR{0}, there is an integer d(a)0 such that 
(1) d(ab)d(b) for all a,b0, with equality if and only if a is a unit.
(2) for all a,bR with b0, there exist q,rR such that a=qb+r,with r=0 or d(r)<d(b)
The function d assigns a measure of size to each non zero element of R.
Example:
The ring Z[i] of Gaussian Integers is an Euclidean domain with d(z)=z.ˉz=|z|2=x2+y2, for each z=x+yiZi.This is called Norm of z, written as N(z).
d(zw)=d(z).d(w) for all z,w and the units in Z[i] are ±1 and ±i.

For each integer p=4k+3Z, the gaussian prime is p itself.
For each integer p=4k+1Z, the two gaussian primes are a±bi,where a2+b2=p
If the norm is prime not of the form 4n+3 then the Gaussian numbers are Gaussian Primes.
Example:5+2i is a gaussian prime
52+22=29 29 is prime of form 4n+1
1i is gaussian prime
12+12=2 2 is prime

Note :the number 13 is prime having factors 1,13 in Z
But we can factorize 13 in Z[i] as (2+3i)(23i) ie 13=22+32
if p is a prime integer, then p is an irreducible Gaussian integer if and only if p is not the sum of two squares.

Prime Factorisation
Using the characterization of irreducible elements, we can describe a method for factoring an arbitrary Gaussian integer into irreducibles. (This is the “prime factorization” in Z[i].)

  • First, find the prime factorization of N(a+bi)=a2+b2 over the integers Z, and write down a list of all (rational) primes pZ dividing N(a+bi)
  • Second, for each p on the list, find the factorization of p over the Gaussian integers Z[i].
  • Finally, use trial division to determine which of these irreducible elements divide a+bi in Z[i], and to which powers. (The factorization of N(a+bi) can be used to determine the expected number of powers.)
Example:: Find the prime factorization of 4+22i in Z[i].
  • We compute N(4+22i)=42+222=22·53 . The primes dividing N(4+22i) are 2 and 5.
  • Over Z[i], we find the factorizations 2=i(1+i)2 and 5=(2+i)(2i)
  • Now we just do trial division to find the correct powers of each of these elements dividing 4+22i. Since N(4+22i)=22·53 , we should get two copies of 1+i and three elements from {2+i,2i}
  • Doing the trial division yields the factorization 4+22i=i·(1+i)2·(2+i)3 . (Note that in order to have powers of the same irreducible element, we left the unit −i in front of the factorization.)

Example: Find the prime factorization of 2719i in Z[i]
  • We compute N(2719i)=272+192=2·5·109
  • Over Z[i], we find the factorizations 2=i(1+i)2,5=(2+i)(2i), and 109=(10+3i)(103i)
  • Now we just do trial division to find the correct powers of each of these elements dividing 4+22i. Since N(2719i)=2·5·109, we should get one copy of 1+i, one element from {2+i,2i}, and one element from {10+3i,103i}
  • Doing the trial division yields the factorization 2719i=i(1+i)(2+i)(103i).

Sum of Three Squares
Gauss provided that nS3 if n4e(8k+7);ie;7,15,23,28, are not sum of three squares.
;ie; n cannot be represented as sum of three squares if it is in the form 4e(8k+7)
Example:
3=12+12+12
6=22+12+12
14=32+22+12
26=42+32+12

Note:S3 is not closed under multiplication.For instance 3 and 6 are sums of three squares, but 18 is not.

Sum of Four Squares
This deals with how n can be represented as sum of squares of four numbers
Example:7=22+12+12+12



Example:
7=22+12+12+12
11=32+11+12+02
7.11.=77=(2.3+1.1+1.1+1.0)2+(2.11.3+1.01.1)2+(2.11.01.3+1.1)2+(2.0+1.11.11.3)2
=82+32+22+02

lemma: every prime can be written as the sum of four squares.

Four square Theorem By Lagrange
Theorem: Every non negative integer is a sum of 4 squares.
Proof:Let n be a positive integer. since 1=11+02+02+02, the result is true when n=1.Now assume that n2. Let n=peii be the canonical decomposition of n.By the above lemma, each pi can be written as sum of four squares and hence peii=n, can be written as the sum of four squares.

Example: write 15,795 as the sum of 4 squares
15795=35.5.13
3=12+12+12+02
5=22+12+02+02
13=32+22+02+02
Then 35=34(12+12+12+02)=92+92+92+02
5.13=(22+12+02+02)(32+22+02+02)
=82+12+02+02
15795=35.5.13=(92+92+92+02)(82+12+02+02)
=812+722+632+92

Pythagorean Triplets
This is one of the most famous result of elementary geometry.It states that if a right angled triangle has side a,b,c then
a2+b2=c2

Fermat's Last Theorem(FLT)
There are no positive integer solutions a,b,c of the equations
an+bn=cn
for integers n3




Comments

Popular posts from this blog

Number Theory CST 292 KTU IV Semester Honors Course Notes Dr Binu V P 9847390760

Well Ordering Principle