Professional Documents
Culture Documents
2020/21
Lecture 1
Dr Julia Wolf
julia.wolf@dpmms.cam.ac.uk
Number studies the
theory properties of
IN =
It . 2,3 , . . . }
Z =
10 ,
It I 2
,
, .
. .
}
④ =
{
Fg :
p, get ,
q
to }
Some
conjectures that will motivate us
throughout this course :
¥t¥ I
infinitely many primes pst.pt 2 is also
prime .
, pt a .
Conjecture let
Then
IT In) =
# primes en
,
let him =
{Fgf .
, .
ReautC2 11Th -
him E CI e- cage i
the > 229
Conjecture Is there a
polynomial-time algorithm that ,
N two
given any product of
primes ,
and ( g) N=pq ?
computers p st .
the
RSA depends on answer to this
question being negative .
"
In this
"
course we shall
only cover
elementary methods
,
a -_
bqtr
and Oercb .
Proof
-
let 5- { a- nb : nets .
then S contains
some non
-
b> 0 , and r -
b es
,
i. e. if a= qb for e #
g ,
"
then bla
"
we write .
b divides a
write Ya
" "
If rto ,
we b .
b is a divisor of a
Given at , az . . . -
, an EZ ,
not all zero
,
let E- that .
.
. then an Tie 23
:
.
Note that a. be I ,
lime # latmb EI .
¥3 I =D # =
{ md :
me 2} for some d>0 .
Proof
-
let d be the least element of I with d > 0 .
with Oercd (
.
, qdtr
a-
by the
Alison
Algorithm) .
then f- a- qde I
,
which tuples r-0.tl
Notation Note that ai et t i
,
so dlai ti .
Conversely , if clai Hi ,
then c divides
every
element of I ,
and in particular old ,
.
We write D=
gcd fan . . .
,
an ) or
"
greatest common
"
divisor
hot La )
d an or
simply
=
,
-
. .
, ,
"
. .
-
, an ) factor
"
Then 3-
my E7 sit .
antby
=
c ⇐7 lab) I c.
b =
qzritrz 0 Eric r ,
0 Ersatz
r,
93 rztrz
=
:
I
E- E 9k he , the k¥0
E- I =
We claim that he =
( ab) :
note that he la and b. so rue lab) .
any ms.t.hn/aandmIbalsodiiidesrkihencelaib)Erk
Note also that .
So ( ab) =
( b. r I
,
= . = Chu rk ) =
hi
. . .
, .
to determine
This also allows us
my Ehtst D= lab) .
= ant
by ,
"
Beaut 's identity
by Corollary
"
to
which are
promised us 1.5 . .
a # Clio)
coil )
EXampk let b⇐
a- 34,6=25 .
34at25y
¥
'
composite .
lemmal.9-ktpbeapn.me let aibeht then , .
non -
primes !
Proof His clear that it
pla or plb , then p lab .
so laip )=t .
therefore ,
by Corollary 15 ,
7 my # St 1
e .
antpy = .
Now b=
blaatpy) = a lab) tlbyjpisoplb.tl
ps =
9h -
-
9r
with all
pig ; prime .
since
gj prime .
Mog ja 1 . Then
IT =
pz . . . .
ps
=
92 . - -
-9 r ,
contradicting chain of n .
t
Remark If m=
II piai ,
n =
IT pisi with pi distinct primes
,
did i 30,
then (min) =
II pit with fi
= win ( ainsi ) .
Dr Julia Wolf
julia.wolf@dpmms.cam.ac.uk
Definition I. 12 with input N70 is said
An algorithm integer
pty www.ae time if it completes atter at most
"
c.
flog N )k
for K> 0 ( independent
"
constants
elementary operations ,
some c.
of N ) .
then
It the
algorithm takes input Ni , Nz .
. . .
,
Ns ,
polynomial
"
Ni )
time means
running time at most
climax log .
Exanip6sI
's
computing the greatest common divisor (
using Euclid algorithm)
-
primality testing
-
On the other hand ,
the obvious
factoring algorithm
( trial division ) nI polynomial
by integers ern is time .
If N
=p q
.
with each
pig prime ,
each of 50 digits ,
do 29 divisions 1 second
assuming we can
,
fifty
"
trial division for N takes seconds ~ 6×10
years .
We will later
in the
see
course
much more ecticient
factoring algorithms
.
Theorem there
that is
are
infinitely
ITIn) →
many
is a
primes
→ a
,
, as .
N
Then 9 7 N ,
but was
arbitrary .
D
CHAPTER2.CO/VGRUENCES-
"
a is congruent
Definitions let n> I be
integer
"
an .
to b mod n
abthttfqfnygiaisgg.gg/
( at htt) t ( btn 2) fat b) th#
÷
nZ is an ideal
lbtn #
detained?
× ÷
are woe -
kmma2.2-leta.CZ .
Then the
following are
equivalent :
Ii ) 1am)=t ;
Iii ) I be Z sit .
ab mod ni
Iii ) Ii ) :
ab = I modn ⇐ a'b- I = kn for some KEZ
Cain) =/
Iii ) Ciii ) : ab = Imodn for some belt
I
belongs to the additive of
⇐
subgroup
ZA7 generated by a
⇐ 2%2 is generated by a .
El
Notations let not .
We write 12th# for the set of units
of Ehf ,
i.e. the set of elements of ¥/n#
that have a multiplicative inverse .
with faint .
then 91mm )= 9 Im ) 9 In ) .
.
ReE Iii ) If not , ZANE is a field
every element is invertible
t ' Eaten ,
⇐ his prime I aint I
⇐ In ) = ny .
let G be
CoroUay2 a
cyclic group of order n > I. then
941 = # { g e G :
'dlg)=n }
or
#
=
generators of G.
then a
P = a mod p .
Proof
-
If
p la ,
trivially
AQ1P )
true
am
.
If pXa
I mod
,
then
2.4 and 2.7
by
=
= L7
p ,
.
We shall to simultaneous
move on
augments .
Exaiupk2.9-hndnetts.t.se
}
= 4 mod 7 t*)
k = 5 mod 12
the
Could
try solutions of the first
congruence in second .
More
systematically . . .
Exampk2.9-tindnetts.t.se
}
= 4 mod 7 t*)
k = 5 mod 12
, a ,
Suppose
)
we had UN EE s t UE1 mod 7 to mod 12
(t)
.
.
✓= 0 mod 7 v = I mad 12
Then a = 4 UT5V ,
is a solution to C*) .
How do
}
find solutions to
It) ?
we ucv UE1 mod 7 u= 0 mod 12
✓ mod 7 v= , mod 12
0 mod't
✓ = 7- m= I -
12h I
{ 1 mod 12
V= -35
4) is given
so ascension to
by a =4ut5v
= 4×36+5×1-35) = -31
In fact ,
the set of solutions to 1*7 is
{n :
n= -31 mod 843 =
fair 53 mod 843 .
The is of of the
preceding example ,
course ,
a
special case
following .
Then
positive integers
EZ 7 solution
,
and let M=
II mi .
given any a. au . . -
tak ,
n e # to the
of simultaneous mod
system Cong memes a = a i. mi
RE az Mod ma
'
'
.
K E Gk mod M k .
Moreover mod M
, n is unique .
Part II Number Theory
2020/21
Lecture 3
Dr Julia Wolf
julia.wolf@dpmms.cam.ac.uk
ChineseRemaindertheaem2 let me , me . . . . .mu be pairwise coprime
Then
positive integers
EZ 7 solution
,
and let M=
II mi .
he # to the
given any a. au . . -
tak ,
of simultaneous mod
)
system congruence's a = a i. mi
RE azmodmz *)
i
KE ak Mod Mk .
Moreover mod M
, n is unique .
)
:
my satisfy ,
E- ,
II. IIILIFII.is?iInIEIytmYdm .
a. moan .
Existence : Write
Mi=Mm ,
= IT
Fi
mj ,
for each Hill -
→
k .
since mi . . .
.mu are
pairwise coprime , lmi.mif-tti-hk.ie .
I I .
, .
Mibi
and =
Omodmj ttjei
www.IE.aibimisatisties#sinaImg:i
.
a
bi
AIgebraicviewpoiwt2.k-tfm.me . . . . .mu are pairwise coprime
and M=
II mi ,
then the map
0 :
ZIM# →
71M¥ ×
#mite ×
.
. .
×
7km #
N mod M '→
In mod mi , n mod mi , . . -
,
n mod ma )
is an isomorphism of
rings .
definition tix in 2h 0 is
By of # , a
homomorphism .
And 2.10
implies that 0 is a
bijection .
L7
In particular it ,
n= pin pin .
. . -
.pk
and
integers d. , dz .
. . .
,
an 71 ,
then
7k¥ ±
ZTp.az ×
2%12 × ×
2%92
. "
This is
very
useful as it allows us to piece together information
modulo
powers of different primes .
corokay2.B-tfm.mu .
.
. .mu are pairwise coprime , M=IImi
and EZ
a " ai . .
. ak are s t Cai ,
mi ) = I 4 El , 2 ,k . . .
,
. . - .
,
. .
Fppose Him ) > I. then 7 prime ps.t.pk and PIM Mog assume .
p 1mi .
since RE a. mod mi
, plan But then 1mi a) =p , # El .
, .
AIqebraicviewpoiwt2.14-ftlmzf-ftlm.IT#TmiE)¥.x¥mk¥ ,
"
and in particular ,
if n =p , pin pink
. .
-
#nzA×± ftp.azfx#pi*)I.xHpi*I
trolley If m.mu .mn . . . are pairwise coprime and M=IImi ,
then 9cm ) =
II 91mi) .
V-m.ns.t.lm.nl = I ffmn ) Hm )f In )
,
=
.
A function f. IN → 0 is said to be
flmn )
totally
multiplicative if V-m.in , =
Hm)f In ) .
Exampks2 -
9in )
-
Eln ) = number of positive divisors of n
old sum of positive divisors of n
-
=
"
ok In 1 =
§ d
-
d? I
'
Note that 9
dqn d 0 and Go
dqndo E
= = =
=
.
!emma2 let f be a
multiplicative function .
Then so is
g ,
defined
by ofgln )
=
&n Hd ) .
Proof If 1mm) ,
then the divisors the
product mn
glmn ) c)
Hence
§mnf (d)
§m d§n f- I did
= =
since f multiplicative =
§m £µfIdDHdz) =
gcm)g In ) .
D
EXampk2 nk In )
If f In ) =
,
then
g
=
dqndk =
0k In ) .
For now ,
we will prove one final fact about 9 .
pm ( p 1) pm ( ttp ) ;
'
then 4 (pm )
-
= - =
It -
f) i
Iii )
§ 91nA n
=
.
Proof
-
lit 9 ( pm ) = # { I E a a- pm : la , p ) = I 3
'
pm pm
-
= -
theorem2.20-liltfpisapn.me and MEN ,
pm ( p 1) pm ( ttp ) ;
'
then 4 (pm )
-
= - =
-
n -
It -
f) i
Iii )
d§9lndI=n .
=
n
II ll -
fi )
=
n It -
f) .
Iii ) 9 is multiplication dqn Qld ) is multiplicative ,
let p be a
prime , let me IN .
I +
p I
-
t
fptp)t .
. .
t
1pm pm)
-
pm
=
.
Hd )
§ =n .
0
Part II Number Theory
2020/21
Lecture 4
Dr Julia Wolf
julia.wolf@dpmms.cam.ac.uk
In this lecture we shall consider
polynomial augmenters .
Examples
-
2.21 lit it 2=0 mod 5 no solutions ( squares areIt #
hit us t I E0 mod 7 three solutions 13,516 )
Iii ) n mod 8 four solutions III. I 3)
'
-
I =
0
Delimtim2 let R = # ,
Q , #Nz ( any commutative
ring ) .
Define
RLXI { polynomials in one variable X with coats in R }
X 't ,aiER}
" "
=
{ formal sums an X t an . .
.
+ a ,Xtao : N70
.
bing.cn#gonthmforPolynomids2.24-hetfigeRLXJ ,
Proof
- By induction on n=
deg ff ) .
I Check base case .
)
If degf ) <
deg (g) ,
then 9=0 and r=f will do .
bing.cn#gonthmforPolynomids2.24-hetfigeRLXJ ,
ProofH# So
suppose that deglf ) > deg (g) and write
,
f- =
an
"
t . . . .
with nzm ,
at 0 ,
bnmt b
G =I for CER
=
. . -
some .
cnn.mg
'
Then f f-
degff )
'
= a is sit .
a n .
' '
by the inductive f-
so
hypothesis ,
=
g gtr ,
with G)
deg edeglg) .
But then f f
tanning
'
=
gtrtacnn-mg-lqttacnn.
)g tn
'
g
=
tr is the desired
decomposition .
L7
Remaindertheorem2.25-letfeRLXI.ae R Then .
Proof By the
Polynomial Division
Algorithm 2.24 with
g
= X -
in
,
7
qe RLXJ and re R ( a constant ) St .
HX7-1KA)q tr .
But f k ) Ca a) 9K) t r = r
= -
. 9
Examples
-
2.27 -
Z ④ , i
-
ZANE is an
integral domain
it and it N is
only > 1 a
prime .
theorom2.LI let R be domain and let FERLXJ
an
integral ,
be a non Zero
polynomial of
degree N70
-
Proof By induction on n .
Check n=0 is trivial If = c to ) .
.
.
,
the induction
By hypothesis q
has at most n I roots
-
,
.
R=ZTpz be a
Then the
polynomial s.t.pl an .
congruence FINE
0 mod
p
has at most n solutions that are distinct
modulo p .
Exampk2 let
p be a
prime ,
and let HX7X PI I
II. LX a)
-
"
Observe that t a =
1,2 . . .
.
.pt ,
flat XP -
I E0 mod p
f has
by 2.8 atleast roots
so -1
, p
to let p be a
prime and let HX7X? It -
II. IX -
a) .
'
But the coefficient of XP ihf is
dey A) a
p I as 0
-
, .
Hence 0 = FC0 ) =
-
I -
II 10 -
a) mod
p
= -
I -
II ( p a)
-
modp = -
I -
G- 1) !
of the above
As another
corollary ,
we obtain a result on
3 is a unit mod 7 ,
since 3.5=1 mod 7 .
M€141516
3M 3 2 6 4 5 I
Also
so
,
3
36 mod 7
this a
cyclic group of order 6 .
the Hp is a
prime , then G=¥pz)× is cyclic
of order p I -
.
""
IG1E "
Proof 9LP ) p I
§ 91 d)
-
ftp. ,
Nd
,
where Nd # { g e G and I
g) =D }
= :
.
suppose G is not
cyclic ,
ie .
G has no element of order
pt .
Then Np -
I
= 0 a 9 (p -
i ) .
% ftp.
But since Qld ) = Nd
,
, ,
CX7 x2 E G is
cyclic
=
ix. .
.
. -
,
of order d ,
so
by Corollary 2.6 it has
exactly Qld )
elements of order d .
XD I
This implies that the polynomial c-
http# LX3
-
"
has dtl did if ,
roots
,
namely 1
, . .
. .
,
a
Dr Julia Wolf
julia.wolf@dpmms.cam.ac.uk
Detinitioh2.SI A positive integer g is called a
primitive
root mod n if it
generates ⑦In # )× .
No9 ) 18 so either =
,
D= 18 or d divides one of
26=7
6 and 9 . I 1 mod 19 so DX6 ,
and
similarly ,
29 = -
I ¥ 1 mod 19 to DX9 .
Hence D= 18 ,
and 2 is
a
primitive root mod 19 .
/ 1) trtinsprimitiuRoolsconiedwe-G.mg
for which
> 1 ,
3
infinitely
many primes p g
isprimitive
a root .
a some c > 0 .
We now turn our attention to prime powers .
Exampk23 ¥82)× =
{ It it 33 .
For 47,3
" "
,
let 0 :
#2k£ )× "
→
ftT8z)× be the
obvious map n mod 2 ↳ a mod 8
"
theorem2.j.tt p
> 2 ,
then
http # ) is
cyclic
for all K71 .
pky mod
,
then up
"
= I t
pktty mod pkt2 ;
Iii ) ( Hpy )P I
pkt
"'
= t
p mod
y .
Proof
-
lit Iii ) :
Apply li ) with a =
It
py ('s
and E- 1) to get
(
Hpy )P = It
pay mod p
and k times
repeat .
lemma2.SI let p > 2 k > ,
1 , yet .
then
lit it a = It pkt
'
pky mod
,
tpkttymodpkt2.prootl§otdfNYI
lpjllpkyiPT.jp
then up = I
It
ppkyt fpj ) (pkylttpkyp
=
For 2 Ej pl ( Pj )
ftp.t/pky)I=0modp2ktt-=0modpkt2sina2ktI7kt2
I
Ep so
-
,
,
Hence nP = It
phtty mod pkt ? L7
lemma2.38-letps2.kz I .
If
g
is a primitive root mod p
p2
"
gin ftp.k E)
×
Proof let d be the order of -
Qlpk ) 19 ( pk )
"
Note that =p Cp 1) -
and d ,
so
if
g
is not a
guvnor of #pk¥)× ,
then either
(a) dI pk -2
Cp 1)-
i or
D= pk
"
(b) .
so
keep -1 .
gP" It
''
(a) mod pk
primitive root mod p .
since
g is a
,
and
"
gM ¥ I modp2 7 y¥ omodps.t.ie :=gM It py Now by 2.37 Iii )
,
"
=
-
.
,
" 4- "
xp = It
p y mod pk gP ¥ 1 mod pk # ,
so .
suppose therefore
"
we are in Case (b) ,
that is ,
for divides p
d =p e some e that
strictly I
-
gP"
e
(b) = I modpk .
But by Fermat 's little theorem 2.8 ,
"
gP=g modp ,
so
gP Eg mod p .
gP"
e e
Hence mod ¥ I modp
g
=
p ,
'
gP"
e
and thus ¥ 1 mod pk .
# a
"
theorem2.j.tt p
> 2 ,
then
htfpkz ) is
cyclic
for all K71 .
ftp.KZP
'
If
gr # I modp2 then by 2.38 g generates
, ,
Otherwise
gP =
g
mod p2 .
let h=
ftp.g .
Then hp = ( Hp
)PgP =
g
mod pl .
'
hp h mod p It follows 2.38
so . ,
again by ,
that his a
generator of
#pk#)× .
0
EXaunpk23 We saw in
Example 2.31 that 3 is a
primitive
root mod 7 .
1h the proof ,
we needed pkz KT2 , but 273 .
More ( It 2)2=-1
importantly ,
mod 8
,
1 It 2) 2=-44 mod 8
while Iii ) ( why -_
1) would
imply .
that ( It 4) 2 t 2kt
" '
mod 2kt
'
I I for K73 .
From this one can show that fork > 3 , #12k¥)× is generated
by the elements -1 lot order 2) and 5 lot order 2*4 ,
¥z¥)× I
7k¥ ×
Z%k¥ fork > 3 .