Professional Documents
Culture Documents
Ilovepdf Merged (17) Removed 0
Ilovepdf Merged (17) Removed 0
Ilovepdf Merged (17) Removed 0
[MTH1C05]
STUDY MATERIAL
I SEMESTER
CORE COURSE
M.Sc. Mathematics
(2019 Admission onwards)
UNIVERSITY OF CALICUT
SCHOOL OF DISTANCE EDUCATION
CALICUT UNIVERSITY- P.O
MALAPPURAM- 673635, KERALA
190555
School of Distance Education
COURSE:
MTH1C05-NUMBER THEORY
Prepared by:
Scrutinized By:
MTH1C05-NUMBER THEORY
Number Theory
School of Distance Education
University of Calicut
Anil Kumar V
Anil Kumar V. Number Theory
ii
Contents
iii
Anil Kumar V. Number Theory
3 Quadratic Residues 99
3.1 Definition and Examples . . . . . . . . . . . . . . . . . . . . . . . 99
3.2 Legendre’s symbol and its properties . . . . . . . . . . . . . . . . 101
3.3 Evalution of (−1 | p) and (2 | p) . . . . . . . . . . . . . . . . . . . 103
3.4 Quadratic reciprocity law . . . . . . . . . . . . . . . . . . . . . . 109
3.5 Jacobi symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
3.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
3.7 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
4 Cryptography 121
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4.2 Terminologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4.3 Types of Cryptography . . . . . . . . . . . . . . . . . . . . . . . 122
4.3.1 Symmetric Key Cryptography . . . . . . . . . . . . . . . . 122
4.3.2 Affine enciphering transformation . . . . . . . . . . . . . 123
4.3.3 Asymmetric Key Cryptography . . . . . . . . . . . . . . . 124
4.3.4 RSA cryptosystem. . . . . . . . . . . . . . . . . . . . . . 124
4.3.5 Hash Functions . . . . . . . . . . . . . . . . . . . . . . . . 126
4.3.6 Signatures . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
4.3.7 One way functions . . . . . . . . . . . . . . . . . . . . . . 126
4.3.8 Trapdoor One-Way Function . . . . . . . . . . . . . . . . 126
4.4 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Bibliography 135
4.5 Syllabus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4.6 Notations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
iv
Module 1
This module consists of two sections. Let N be the set of natural numbers.
Then f : N → C is called a sequence. In number theory such functions are
called arithmetical functions. In the first section introduces several arithmeti-
cal functions. The Dirichlet product of two arithmetical functions are included.
Moreover we will prove that the set of all arithmetical functions which do not
vanish at 1 form an abelian group under Dirichlet multiplication. Furthermore,
Möbius inversion is included. This section also includes generalized convolu-
tions and gives relation between associative property of Dirichlet multiplication
and convolution. Generalized inversion formula is also included. The second
section is devoted to averages of Arithmetical functions. The well known Euler’s
summation formula is derived. Several asymptotic formulas are also derived.
From the definition of µ it clear that µ(n) = 0 if and only if n has a square
1
Anil Kumar V. Number Theory
Note that µ(d) = 0 if and only if d has a square factor. Therefore µ(d) 6= 0 if
and only if
d = 1; p1 , p2 , . . . , pk ; p1 p2 , . . . , pk−1 pk ; p1 p2 p3 , . . . pk−2 pk−1 pk ; · · · , p1 p2 · · · pk .
| {z } | {z } | {z } | {z }
(k1) (k2) (k3) (kk)
Hence
X
µ(d) = µ(1) + [µ(p1 ) + µ(p2 ) + · · · + µ(pk )] + [µ(p1 p2 ) + · · · + µ(pk−1 pk )] +
d|n
2
Anil Kumar V. Number Theory
Thus
n 0
X
ϕ(n) = 1,
k=1
where dash denotes the sum is taken over those k which are relatively prime to
n. That is
n n
X X 1
ϕ(n) = 1= .
(n, k)
k=1 k=1
(k,n)=1
Proof. Let
S = {1, 2, 3, . . . , n}
We partition the set S into mutually disjoint subsets as follows:
For each divisor d of n, let
Thus
S ⊆ ∪d|n A(d). (1.2)
From equations (1.1) and (1.2) it follows that
S = ∪d|n A(d).
3
Anil Kumar V. Number Theory
Therefore X
#(S) = #(A(d)).
d|n
k ∈ A(d) ⇔ (k, n) = d
⇔ (k/d, n/d) = 1, 0 < k/d ≤ n/d
⇔ (q, n/d) = 1, 0 < q ≤ n/d
⇔ q ∈ {k : (k, n/d) = 1, 0 < k ≤ n/d}
| {z }
B
⇔q∈B
This implies that there is a one to one correspondence between the elements of
A(d) and B. Hence
#A(d) = #(B) = ϕ(n/d).
Hence equation (1.3) becomes:
X
n= ϕ(n/d) (1.4)
d|n
4
Anil Kumar V. Number Theory
Pn P
Note that for a fixed d, k=1 d|k µ(d) denotes the summation over all those
k in the set {1, 2, . . . , n} which are multiples of d.
Question: How many multiples of d are there in the set {1, 2, 3, . . . , n}?
Suppose 1 ≤ k ≤ n and k = qd. Now
1≤k≤n⇔0<k≤n
k n
⇔0< ≤
d d
k n
⇔1≤ ≤
d d
n
⇔1≤q≤
d
This implies that in the set {1, 2, . . . , n} there are n/d numbers which are mul-
tiples of d. These multiples of d are
5
Anil Kumar V. Number Theory
n = pα1 α2 αr
1 p2 · · · pr ,
Hence
Y 1
X µ(d)
n 1− =n
p d
p|n d|n
X n
= µ(d)
d
d|n
6
Anil Kumar V. Number Theory
(e) ϕ(n) is even for n ≥ 3. Moreover, if n has distinct r odd prime factors
then 2r |ϕ(n).
Proof.
(a) We have
Y 1
ϕ(n) = n 1− (theorem 1.1.24) (1.6)
p
p|n
(b)We have
Y 1
ϕ(n) = n 1− (theorem 1.1.24)
p
p|n
Therefore
ϕ(n) Y 1
= 1− . (1.10)
n p
p|n
The above equation is true for all natural numbers n. Hence it is true for mn.
Hence
ϕ(mn) Y 1
= 1− . (1.11)
mn p
p|mn
7
Anil Kumar V. Number Theory
ϕ(mn) Y 1
= 1−
mn p
p|mn
Q
1 1
Q
p|m 1 − p p|n 1 − p
= Q
1
p|d 1 − p
ϕ(m) ϕ(n)
m n
= ϕ(d)
(by theorem 1.1.24)
d
d
= ϕ(m)ϕ(n) .
ϕ(d)
a|b ⇒ b = ac, 1 ≤ c ≤ b.
ϕ(c)
ϕ(d)|ϕ(c) ⇒ ∈ N.
ϕ(d)
8
Anil Kumar V. Number Theory
But now
ϕ(b) = ϕ(ac)
d
= ϕ(a)ϕ(c)
ϕ(d)
ϕ(c)
= ϕ(a)d
ϕ(d)
Since ϕ(c)/ϕ(d) is a natural number, it follows that ϕ(a)|ϕ(b).
(e)Let n ≥ 3. Then
n = 2k m, for some odd numberm.
If m = 1, then n = 2k , where k ≥ 2(since n ≥ 3). Therefore
ϕ(n) = ϕ(2k ) = 2k − 2k−1
= 2(2k−1 − 2k−2 ) = an even number.
Assume that m is an odd number greater than 1. Then m has an odd prime
divisor say p.
Now
p|m ⇒ ϕ(p)|ϕ(n)(∵ n = 2k m)
⇒ ϕ(p)|ϕ(n)
⇒ (p − 1)|ϕ(n)
⇒ 2|ϕ(n) (p is an odd prime)
⇒ ϕ(n) is even.
Next assume that
αk
n = pα1 α2
1 p2 · · · pk ,
where p1 , p2 , . . . , pr ∈ {2, 3, 5, 7, . . .}. Then
Y 1
ϕ(n) = n 1−
p
p|n
αk 1 1 1
= pα
1
1 α2
p 2 · · · p k 1 − 1 − · · · 1 −
p1 p2 pk
= pα
1
1 −1 α2 −1
p2 · · · pkαk −1 (p1 − 1)(p2 − 1) · · · (pn − 1)
Since each pi is odd it follows that each (pi − 1) is even. This implies 2r divides
ϕ(n). This completes the proof.
9
Anil Kumar V. Number Theory
X
= f (a)f (b), (1.12)
ab=n
where the sum on the right-hand side of (1.12) runs over all ordered pairs (a, b)
of positive integers satisfying ab = n.
N α (n) = nα , ∀n ∈ N.
u(n) = 1 ∀n ∈ N.
We have
X 1
µ(d) =
n
d|n
Now
X X n
µ(d) = µ(d)u
d
d|n d|n
= (µ ∗ u)(n)
We have
X n
ϕ(n) = µ(d)
d
d|n
X n
= µ(d)N
d
d|n
= (µ ∗ N )(n).
f ∗ g = g ∗ f (Commutative law)
f ∗ (g ∗ h) = (f ∗ g) ∗ h(Associative law)
10
Anil Kumar V. Number Theory
Hence (f ∗ g) ∗ h = f ∗ (g ∗ h).
Theorem 1.1.7. For any arithmetical function f we have
f ∗ I = I ∗ f = f,
where I is the identity function.
Proof. By the definition of Dirichlet product, we have
X n
(I ∗ f )(n) = I(d)f
d
d|n
11
Anil Kumar V. Number Theory
X n
= I(1)f (n) + I(d)f
d
d|n
d>1
X 1 n
= f (n) + f
d d
d|n
d>1
= f (n) + 0 (∵ I(1) = 1I(d) = 0 if d > 1.)
= f (n).
Hence
I ∗ f = f.
Since Dirichlet product is commutative, we have f ∗ I = f .
12
Anil Kumar V. Number Theory
Define
1 X n −1
f −1 (n) := − f f (d).
f (1) d
d|n
d<n
Consider
X n
(f ∗ f −1 )(n) = f f −1 (d),
d
d|n
n X n
=f f −1 (n) + f f −1 (d)
n d
d|n
d<n
X n
= f (1)f −1 (n) + f f −1 (d)
d
d|n
d<n
1 X n −1 X n
f −1 (d)
= f (1) −
f (1) f f (d) + f
d d
d|n d|n
d<n d<n
X n X n
=− f f −1 (d) + f f −1 (d) = 0.
d d
d|n d|n
d<n d<n
This implies that the result is true for n. Hence by mathematical induction the
result is true for all natural numbers.
Proof.
Hence f ∗ g ∈ A .
Existence of inverse: Note that I is the identity element (see theorem 1.1.7).
13
Anil Kumar V. Number Theory
That is
(µ ∗ u)(n) = I(n) ∀n
This completes the proof.
Theorem 1.1.10 (Mobius inversion formula). We have
X X n
f (n) = g(d) ⇔ g(n) = f (d)µ
d
d|n d|n
That is
f = g ∗ u ⇔ g = f ∗ µ.
Proof. Note that u−1 = µ. Hence
f = g ∗ u ⇔ f ∗ u−1 = (g ∗ u) ∗ u−1
⇔ f ∗ u−1 = (g ∗ u) ∗ u−1
⇔ f ∗ µ = g ∗ (u ∗ u−1 )
⇔ f ∗ µ = g ∗ I = g.
This completess the proof.
Corollary 1. If n ≥ 1 we have
X n
ϕ(n) = dµ .
d
d|n
Proof. We have X
ϕ(d) = n = N (n).
d|n
By Mobius inversion formula,
ϕ(n) = (N ∗ µ)(n)
X n
= µ(d)N (∵ N (n) = n ∀n)
d
d|n
X n
= µ(d) .
d
d|n
14
Anil Kumar V. Number Theory
Hence
X
Λ(d) = Λ(p1 ) + Λ(p21 ) + · · · + Λ(pα 2 α2
1 ) + Λ(p2 ) + Λ(p2 ) + · · · + Λ(p2 ) + · · ·
1
d|n
15
Anil Kumar V. Number Theory
16
Anil Kumar V. Number Theory
Then we have
M ⊂C ⊆A.
Moreover M is a subgroup of (A , ∗). Unlike M , which is a group with respect to
Dirichlet product, C is closed neither with respect to addition nor convolution.
f (pα ) = f (p)α
17
Anil Kumar V. Number Theory
Proof. (a) First assume that f is multiplicative. Then f (mn) = f (m)f (n)
whenever (m, n) = 1. We prove the the result by induction on k.
Step 1:Assume that k = 1. In this case we have
f (pα α1
1 ) = f (p1 )
1
Hence the result is true for k. Hence by mathematical induction the result is
true for all natural numbers.
Conversely assume that
αk αk
f (pα1 α2 α1 α2
1 p2 · · · pk ) = f (p1 ) f (p2 ) · · · f (pk ) ∀k ∈ N.
αk β1 β2 βs
= f (pα 1
1 α2
p 2 · · · p k ) f q 1 2q · · · qk
= f (m)f (n)
Claim : f (pα ) = f (p)α for all primes p and all integers αi ≥ 1. We will prove
the theorem by induction on α.
Step 1:Assume that α = 1. Note that f (p1 ) = f (p)1 . Hence the result is true
for n = 1.
18
Anil Kumar V. Number Theory
Step 2: Assume that the result is true for all integers < k.
That is
f pi = f (p)i ∀i < k.
α−1
= [f (p)] f (p) = [f (p)]α (by assumption).
Hence by mathematical induction f (pα ) = f (p)α for all α ∈ N.
Conversely assume that
f (pα ) = f (p)α for all k.
We will prove that f is completely multiplicative. Let m, n ∈ N. Let (m, n) = d.
Then m = ad and n = bd for some a, b ∈ N.Let
αk β1 β2 γ1 γ2 γt
a = pα 1 α2 βs
1 p2 . . . pk , b = q1 q2 . . . qs , d = d1 d2 . . . dt
Then
αk γ1 γ2 γt
m = pα1 α2
1 p2 . . . pk d1 d2 . . . dt
Now
αk β1 β2 βs 2γ1 2γ2 2γt
f (mn) = f pα 1 α2
1 p2 . . . pk q1 q2 . . . qs d1 d2 . . . dt
= f (pα α2 αk
q1β1 f q2β2 · · · f qsβs
1
1
) f (p2 ) · · · f (pk ) f
f d2γ1
1
f d22γ2 · · · f d2γ t
t
(∵ f is multiplicative)
α1 α2 αk β1 β2 βs
= f (p1 ) f (p2 ) · · · f (pk ) f (q1 ) f (q2 ) · · · f (qs )
2γ1 2γ2 2γt
f (d1 ) f (d2 ) · · · f (dt ) (by assumption)
Again
α k γ1 γ2 γt β1 β2 β s γ1 γ2 γt
f (m)f (n) = f (pα
1
1 α2
p2 . . . pk d d
1 2 . . . dt ) f q q
1 2 . . . qs d d
1 2 . . . dt
αk γ1 γ2 γt
= f (pα α2
1 ) f (p2 ) · · · f (pk ) f (d1 ) f (d2 ) · · · f (dt )
1
f q1β1 f q2β2 · · · f qsβs f (dγ11 ) f (dγ22 ) · · · f (dγt t )
α1 α2 αk β1 β2 βs
= f (p1 ) f (p2 ) · · · f (pk ) f (q1 ) f (q2 ) · · · f (qs )
2γ1 2γ2 2γt
f (d1 ) f (d2 ) · · · f (dt )
Hence f (mn) = f (m)f (n) for all m, n ∈ N. That is f is completely multi-
plicative.
19
Anil Kumar V. Number Theory
Hence
I(mn) = I(m)I(n)
Case 2: Suppose m = 1 and n > 1.
In this case mn > 1. So we have
Thus
I(mn) = 0 = 1 × 0 = I(m)I(n).
Case 3: Suppose n = 1, m > 1.
In this case mn > 1. Moreover I(n) = 1, I(m) = 0 and I(mn) = 0. Hence
I(mn) = 0 = 0 × 1 = I(m)I(n).
I(mn) = 0 = 0 × 0 = I(m)I(n).
20
Anil Kumar V. Number Theory
Hence
ϕ(mn) = ϕ(8) = 4 6= 2 × 1 = ϕ(4)ϕ(2) = ϕ(m)ϕ(n).
µ(mn) = µ(m)µ(n).
µ(mn) = 0 = µ(m)µ(n).
m = p1 p2 · · · pm ,
q = q1 q2 . . . qn ,
Hence
µ(mn) = (−1)m+n = (−1)m (−1)n = µ(m)µ(n).
Hence µ is completely multiplicative. Next we will show that µ is not
completely multiplicative. Let m = 2 and n = 2. Then µ(4) = 0 and
µ(2) = −1. Note that µ(4) 6= µ(2)µ(2). Hence µ is not completely
multiplicative.
21
Anil Kumar V. Number Theory
Proof. Since f and g are multiplicative functions, we have f (1) = 1 and g(1) = 1.
Now X
(f ∗ g)(1) = f (d)g(1/d) = f (1)g(1) = 1
d|1
Now
X mn
(f ∗ g)(mn) = f (d)g
d
d|mn
X mn
= f (ab)g
ab
a|m
b|n
X m n
= f (a)f (b)g g
a b
a|m
b|n
m n
(∵ f and g are multiplicative, (a, b) = 1& , = 1)
m X n a b
X
= f (a)g f (b)
a b
a|m b|n
= (f ∗ g)(m)(f ∗ g)(n).
Proof. Observe that the arithmetical functions u and N are completely multi-
plicative. We will prove that the function f = u ∗ N is not completely multi-
plicative. To prove that f is not completely multiplicative it suffices to prove
that for any prime number p, we have f (pα ) 6= f (p)α .
Now
f (pα ) = (u ∗ N )(pα )
X
= u(d)N (pα /d)
d|pα
X pα
=
α
d
d|p
α
p pα pα pα
= + + 2 + ··· + α
1 p p p
α α−1
=p +p + · · · + 1.
22
Anil Kumar V. Number Theory
Again
f (p) = (u ∗ N )(p)
X
= u(d)N (p/d) = u(1)N (p) = p
d|1
Therefore
f (p)α = pα 6= pα + pα−1 + · · · + 1 = f (pα ) .
Hence f is not completely multiplicative.
Theorem 1.1.16. Let f, g be arithmetic functions. If both g and f ∗ g are
multiplicative, then f is also multiplicative.
Proof. Since g and f ∗ g are multiplicative, we have g(1) = 1 and (f ∗ g)(1) = 1.
Now
X 1
1 = (f ∗ g)(1) = f (d)g = f (1)g(1) = f (1)(1) = f (1).
d
d|1
Hence f 6= 0.
Claim :f is multiplicative.That is, f (mn) = f (m)f (n) whenever (m, n) = 1.
We prove the claim by induction on mn.
Step 1: Assume that mn = 1.
In this case m = n = 1. Note that
f (mn) = f (1) = 1 = f (m)f (n).
Hence the result is true for mn = 1.
Step 2: Assume that the result is true for all products ab less than mn.
Step 3: We prove the claim for mn.
Note that
X mn
(f ∗ g)(mn) = f (d)g
d
d|mn
X mn
= f (ab)g
ab
a|m
b|n
X mn
= f (mn)g(1) + f (ab)g (∵ (a, b) = 1)
ab
a|m
b|n
ab<mn
X m n m n
= f (mn) + f (a)f (b)g g ∵ , =1
a b a b
a|m
b|n
ab<mn
X m n
= f (mn) + f (a)g f (b)g + f (m)f (n) − f (m)f (n)
a b
a|m
b|n
ab<mn
23
Anil Kumar V. Number Theory
This implies that f (mn) − f (m)f (n) = 0. That is f (mn) = f (m)f (n).
Theorem 1.1.17. If g is multiplicative, then its Dirichlet multiplicative g −1 is
also multiplicative.
Proof. First observe that I = g ∗ g −1 . We have already seen that I is completely
multiplicative and hence multiplicative. Hence g and g ∗ g −1 are multiplicative.
So by theorem 1.1.16, g −1 is multiplicative.
This completes the proof.
= f (n)I(n)
(
1 if n = 1
=
0 if n > 1.
24
Anil Kumar V. Number Theory
ϕ−1 = µ−1 ∗ N −1
Proof. Let
X
g(n) = f (d)µ(d)
d|n
X
= (f µ)(d)
d|n
X n
= (f µ)(d)u
d
d|n
= (f µ ∗ u)(n)
Hence
g = f µ ∗ u.
26
Anil Kumar V. Number Theory
g(pα ) = (f µ ∗ u)(pα )
α
X p
= (f µ)(d)u
d
d|pα
X
= (f µ)(d)
d|pα
X
= f (d)µ(d)
d|pα
Let
αk
n = pα1 α2
1 p2 · · · pk ,
27
Anil Kumar V. Number Theory
λ(pα ) = (−1)α
= [λ(p)]α .
Moreover
λ−1 (n) = |µ(n)| for all n.
Proof. Let
X
g(n) = λ(d)
d|n
X n
= λ(d)u
d
d|n
Hence
g(n) = (λ ∗ u)(n)
Since λ and µ are multiplicative, λ ∗ µ is multiplicative. Putting n = pα in the
equation X
g(n) = λ(d)
d|n
we obtain:
X
g(pα ) = λ(d)
d|n
28
Anil Kumar V. Number Theory
(
1 if α is even,
=
0 if α is odd.
Let
αk
n = pα1 α2
1 p2 · · · pk ,
(
1 if each αi is even,
=
0 if at least one αi is odd.
n = p2β 1 2β2
1 p2 · · · p2β
k
k
2 2 2
= pβ1 1 pβ2 2 · · · pβkk ,
= a square
Hence (
X 1 if n is a square,
g(n) = λ(d) =
d|n
0 otherwise.
29
Anil Kumar V. Number Theory
αk
Case 3: Suppose n = pα1 α2
1 p2 · · · pk , where pi ’s are distinct primes and αi ≥ 1.
In this case
µ(n) = 0, λ(n) = (−1)α1 +α2 +···+αn
Therefore
λ(n)µ(n) = 0 = |µ(n)|.
Hence
λ−1 (n) = µ(n)λ(n) = |µ(n)| for all n.
= (N α ∗ u)(n).
Hence σα is the Dirichlet product of two multiplicative functions N α and u.
Thus σα is multiplicative.
Remark 8. If α = 0, then the divisor function σα can be written as:
X
σ0 (n) = d0
d|n
X
= 1
d|n
30
Anil Kumar V. Number Theory
Proof. We have
X
σα (n) = dα
d|n
X n
= N α (d)u
d
d|n
= (N α ∗ u)(n)
Hence σα = N α ∗ u. Therefore
αk
Theorem 1.1.22. If n > 1 and n = pα 1 α2
1 p2 · · · pk , where pi ’s distinct primes
and αi ≥ 1., then
k
Y
d(n) = (αi + 1).
i=1
To compute d (pα αi
i ) we note that the divisors of pi are
i
1, pi , p2i , . . . , pα
i
i
31
Anil Kumar V. Number Theory
d (pα
i ) = (αi + 1)
i
Hence
k
Y
d(n) = (αi + 1)
i=1
αk
Theorem 1.1.23. If n > 1 and n = pα 1 α2
1 p2 · · · pk , where pi ’s distinct primes
and αi ≥ 1., then
k
Y pα
i
i +1
−1
σ(n) = αi
i=1
p i − 1
To compute σ (pα αi
i ) we note that the divisors of pi are
i
1, pi , p2i , . . . , pα
i
i
Hence
(αi +1)
pi −1
σ (pα 2 αi
i ) = 1 + pi + pi + . . . + pi =
i
.
pi − 1
Hence
k
Y pαi +1 − 1
i
σ(n) =
i=1
pα
i −1
i
Theorem 1.1.24 (Associative property relating α and ∗). For any arithmetical
functions α and β, we have
α ◦ (β ◦ F ) = (α ∗ β) ◦ F.
32
Anil Kumar V. Number Theory
= ((α ∗ β) ◦ F )(x).
That is
G = α ◦ F ⇔ F = α−1 ◦ G.
α−1 ◦ G = α−1 ◦ (α ◦ F )
= (α−1 ∗ α) ◦ F (by theorem 1.1.24)
= I ◦ F = F.
α ◦ F = α ◦ (α−1 ◦ G)
= (α ∗ α−1 ) ◦ G(by theorem 1.1.24)
= I ◦ G = G.
33
Anil Kumar V. Number Theory
That is
G = α ◦ F ⇔ F = α−1 ◦ G = (αµ) ◦ G.
α−1 ◦ G = α−1 ◦ (α ◦ F )
= (α−1 ∗ α) ◦ F
= I ◦ F = F.
That is
α ◦ F = α ◦ (α−1 ◦ G)
= (α ∗ α−1 ) ◦ G
= I ◦ G = G.
34
Anil Kumar V. Number Theory
= (Λ ∗ u)(n).
This completes the proof.
Theorem 1.1.27. If f and g are arithmetical functions we have:
(a) (f + g)0 = f 0 + g 0 .
(b) (f ∗ g)0 = f 0 ∗ g + f ∗ g 0 .
(c) (f −1 )0 = −f −1 ∗ (f ∗ f )−1 , provided that f (1) 6= 0.
Proof. (a) By the definition of derivative, we have
(f + g)0 (n) = (f + g)(n) log n
= (f (n) + g(n)) log n
= f (n) log n + g(n) log n
= f 0 (n) + g 0 (n).
(b)Note that
(f ∗ g)0 (n) = (f ∗ g)(n) log n
X n
= f (d)g log n
d
d|n
X n n
= f (d)g log(d )
d d
d|n
X n X n n
= f (d)g log d + f (d)g log
d d d
d|n d|n
X n X n n
= f (d) log dg + f (d)g log )
d d d
d|n d|n
X n X n
= f 0 (d)g + f (d)g 0
d d
n|d d|n
= (f ∗ g)(n) + (f ∗ g 0 )(n).
0
35
Anil Kumar V. Number Theory
f −1 ∗ f ∗ (f −1 )0 = −f −1 ∗ (f 0 ∗ f −1 )
That is,
(f −1 ∗ f ) ∗ (f −1 )0 = −f 0 ∗ (f −1 ∗ f −1 )
That is
I ∗ (f −1 )0 = −f 0 ∗ (f ∗ f )−1
That is
(f −1 )0 = −f 0 ∗ (f ∗ f )−1 .
This completes the proof.
Λ ∗ u = u0 . (1.19)
Λ0 ∗ u + Λ ∗ u0 = u00 .
That is
Λ0 ∗ u + Λ ∗ (Λ ∗ u) = u00 .
That is
Λ0 + Λ ∗ Λ = u00 ∗ µ
That is
X n X n
Λ(n) log n + Λ(d)Λ = µ(d)u00
d d
d|n d|n
36
Anil Kumar V. Number Theory
X n
= µ(d)u0 log(n/d)
d
d|n
X n
= µ(d)u (log(n/d))2
d
d|n
X
= µ(d)(log(n/d))2 .
d|n
1.1.18 Exercises
1. Find all integers n such that
2. For each of the following statements either give a proof or exhibit a counter
example.
3. Prove that
n X µ2 (d)
=
ϕ(n) ϕ(d)
d|n
4. Prove that ϕ(n) > 6 for all n with at most 8 distinct prime factors.
√ √
6. Let f (n) = [ n] − n − 1 . Prove that f is multiplicative but not com-
pletely multiplicative.
37
Anil Kumar V. Number Theory
n = x2 + y 2
Note that d(p) = 2 for all primes numbers and d(n) is large when n has a
large number of divisors. Thus the values of d(n) fluctuate as n increases.
In this case it is difficult to determine their behavior as n increases. We
can prove that
d(1) + d(2) + · · · + d(n)
=1
n log n
In chapter paper, we will examine averages of several different arithmetic func-
tions.
38
Anil Kumar V. Number Theory
means that
f (x) − h(x) = O(g(x))
Rx Rx
• If f (t) = O(g(t)) for some t ≥ a, then a f (t) dt = O( a g(t) dt)
Proof. Note that f (t) = O(g(t)) means that there exists a constant M > 0 such
that
|f (t)| ≤ M g(t), for t ≥ a
This implies that
Z x Z x
|f (t)|dt ≤ M g(t)dt, for x ≥ a
a a
That is, Z
x
Z x
f (t)dt ≤ M g(x), for x ≥ a
a a
That is Z x Z x
f (t) dt = O g(t) dt .
a a
Theorem 1.2.1.
1. If f1 is O(g1 ) and f2 is O(g2 ), then (f1 + f2 ) is O(max{g1 , g2 }).
2. If f1 and f2 are both O(g), then (f1 + f2 ) is O(g).
3. If f1 is O(g1 ) and f2 is O(g2 ), then (f1 f2 ) is O(g1 g2 ).
4. If f1 is O(f2 ) and f2 is O(f3 ), then f1 is O(f3 ).
39
Anil Kumar V. Number Theory
[x]
X X
f (n) = f (n)
n≤x n=1
Equivalently,
X Z x Z x
f (n) = f (t)dt + {t}f 0 (t)dt + f (y){y} − f (x){x},
y<n≤x y y
k Z
X n
= (n − 1)f 0 (t)
m+1 n−1
k
X
= (n − 1)[f (n) − f (n − 1)]
m+1
k
X
= ([nf (n) − (n − 1)f (n − 1)] − f (n))
m+1
40
Anil Kumar V. Number Theory
k
X k
X
= ([nf (n) − (n − 1)f (n − 1)]) − f (n)
m+1 m+1
X
= kf (k) − mf (m) − f (n)
y<n≤x
X Z k
f (n) = − [t]f 0 (t) dt + kf (k) − mf (m)
y<n≤x m
Z x Z y Z x
=− [t]f 0 (t)dt − [t]f 0 (t) + [t]f 0 (t)dt + kf (k) − mf (m)
y m k
Z x Z k Z x Z k Z y Z ! x
∵ = + = − +
y y k m m k
Z x Z y Z x
=− [t]f 0 (t)dt − mf 0 (t) + kf 0 (t)dt + kf (k) − mf (m)
y m k
Z x
=− [t]f 0 (t)dt − m[f (y) − f (m)] + k[f (x) − f (k)] + kf (k) − mf (m)
y
Z x
=− [t]f 0 (t)dt − mf (y) + kf (x)
y
Z x
=− [t]f 0 (t)dt − [y]f (y) + [x]f (x)
y
Z x
=− [t]f 0 (t)dt + (y − [y]) f (y) − (x − [x]) f (x) + xf (x) − yf (y)
y
Z x
=− [t]f 0 (t)dt + {y}f (y) − {x}f (x) + xf (x) − yf (y)
y
Z x Z x Z x
=− [t]f 0 (t)dt + {y}f (y) − {x}f (x) + tf 0 (t)dt + f (t)dt
y y y
Z x Z x
= (t − [t])f 0 (t)dt + {y}f (y) − {x}f (x) + f (t)dt
y y
Z x Z x
0
= {t}f (t)dt + f (t)dt + {y}f (y) − {x}f (x).
y y
Z x Z x
tf 0 (t)dt =tf (t)]xy − f (t)dt
y y
Z x
=xf (x) − yf (y) − f (t)dt.
y
41
Anil Kumar V. Number Theory
x1−s
1
+ ζ(s) + O(x−s ) if s > 0, s 6= 1.
P
(b) n≤x ns = 1−s
1
= O(x1−s ) if s > 1.
P
(c) n>x ns
xα+1
ns = + O(xs ) if α ≥ 0.
P
(d) n≤x α+1
(1.20)
That is
Z x
X 1 t − [t] x − [x]
= log x − 2
dt −
n 1 t x
1<n≤x
Equivalently,
Z x
X 1 t − [t] x − [x]
= log x − 2
dt + 1 − (1.21)
n 1 t x
1≤n≤x
42
Anil Kumar V. Number Theory
43
Anil Kumar V. Number Theory
Z x
x−s+1
1 t − [t] x − [x]
= − −s dt −
1−s 1−s 1 ts+1 xs
−s+1 Z x
x 1 t − [t] 1
= − −s dt + O
1−s 1−s 1 ts+1 xs
Therefore,
Z x
x−s+1
X 1 1 t − [t] 1
s
= + 1 − − s s+1
dt + O
n 1−s 1−s 1 t xs
1≤n≤x
Z ∞ Z ∞
x1−s
1 t − [t] t − [t] 1
= − +1−s s+1
dt − s+1
dt + O s
1−s 1−s 1 t x t x
∞
x1−s
t − [t]
Z
1 1 1
= − +1−s s+1
dt + O s
+O s
1−s 1−s 1 t x x
∞
x1−s
t − [t]
Z
1 1
= + 1− −s s+1
dt +O s
. (1.24)
1−s 1−s 1 t x
| {z }
B(s)
t − [t] s
s =O
ts+1 tZs+1
∞ Z ∞
t − [t] s
⇒ s s+1 dt = O dt
x t x ts+1
1
=O
xs
x1−s
1
+ ζ(s) + O(x−s ).
P
That is ζ(s) = B(s). Hence if s > 1, n≤x ns = 1−s
Thus equation (2.31) becomes:
X 1 x1−s
s
= + ζ(s) + O(x−s ).
n 1−s
n≤x
44
Anil Kumar V. Number Theory
Then we have
X x X x
H(x) = f (n)G = g(n)F .
n n
n≤x n≤x
Proof. Let (
0 if 0 < x < 1,
U (x) =
1 if x ≥ 1.
Claim 1:F = f ◦ U .
Now
X x
(f ◦ U )(x) = f (n)U
n
n≤x
X x
= f (n) ∵ 0 < x ≤ n ⇒ > 1 ⇒ U (x/n) = 1.
n
n≤x
= F (x).
Claim 2: G = g ◦ U.
Now
X x
(g ◦ U )(x) = g(n)U
n
n≤x
X x
= g(n) ∵ 0 < x ≤ n ⇒ > 1 ⇒ U (x/n) = 1.
n
n≤x
= G(x).
Claim 3: h ◦ U = H.
X x
(h ◦ U )(x) = h(n)U
n
n≤x
X
= h(n) = H(x).
n≤x
Claim 4: H = f ◦ G.
Now
f ◦ G = f ◦ (g ◦ U ) = (f ∗ g) ◦ U = h ◦ U = H.
Claim 5: H = g ◦ F.
Now
g ◦ F = g ◦ (f ◦ U ) = (g ∗ f ) ◦ U = h ◦ U = H.
This completes the proof.
46
Anil Kumar V. Number Theory
P
Theorem 1.2.5. thm33 If F (x) = f (n) we have
n≤x
XX X hxi X x
f (d) = f (n) = F .
n n
n≤x d|n n≤x n≤x
H = f ◦ G, and
H = g ◦ F.
If g = 1, then we have:
X
G(x) = 1 = [x].
n≤x
Now
H(x) = (f ◦ G)(x)
X x
= f (n)G
n
n≤x
X hxi
= f (n) (1.25)
n
n≤x
Again
H(x) = (g ◦ F )(x)
X x
= g(n)F
n
n≤x
X x
= F (1.26)
n
n≤x
Also
X
H(x) = h(n)
n≤x
X
= (f ∗ g)(n)
n≤x
XX x
= f (n)g . (1.27)
n
n≤x d|n
47
Anil Kumar V. Number Theory
and X hxi
Λ(n) = log[x]!.
n
n≤x
X hxi XX X
Λ(n) = Λ(d) = log n = log[x]!.
n
n≤x n≤x d|n n≤x
48
Anil Kumar V. Number Theory
X µ(n) X nxo
=x − µ(n)
n n
n≤x n≤x
Therefore
n x o
X µ(n) X
x = 1 + µ(n)
n≤x n n
n≤x
X nxo
≤1+
n
n≤x
X nxo
= 1 + {x} +
n
2≤n≤x
X
< 1 + {x} + 1 (∵ 0 ≤ {y} < 1)
2≤n≤x
X
= 1 + {x} + [x] − 1 ∵ 1 = [x]
n≤x
= 1 + x − [x] + [x] − 1 = x.
Dividing by x we obtain:
X
µ(n)
<1
n≤x n
Proof. We have
X hxi
Λ(n) = log[x]! (see theorem 1.2.3)
n
n≤x
49
Anil Kumar V. Number Theory
50
Anil Kumar V. Number Theory
Note that
t − [t]1/t
= t − [t] < 1 ⇒ (t − [t])1/t = O(1/t)
1/t
Therefore
x Z x
t − [t]1/t
Z
1
dt = O dt
1 1/t 1 t
Also
log x([x] − x)
= |[x] − x| < 1 ⇒ log x([x] − x) = O(log x)
log x
= x log x − x + O(log x)
That is
Therefore,
X x m
log[x]! = Λ(p ) m
p
pm ≤x
X h x i X h x i
= Λ(2m ) m + Λ(3m ) + ···
2 m
2 3m
2,2 ,...2 ≤x 3,32 ,...3m ≤x
51
Anil Kumar V. Number Theory
∞
X X x
= Λ(pm ) m
p
m=1
p≤x
pm ≤x
∞
X X x
= log p
pm
p≤x m=1
pm ≤x
∞
X X x
= log p
pm
p≤x m=1
pm ≤x
XX ∞
X x x
= Λ(p) + Λ(pm ) m
p p
p≤x p≤x m=2
∞
X x XX x
= Λ(p) + log p m .
p m=2
p
p≤x p≤x
Therefore
∞
X x XX x
Λ(p) = log[x]! − log p m
p m=2
p
p≤x p≤x
∞
XX x
= x log x − x + O(log x) − log p (by theorem 1.2.9)
pm
p≤x m=2
(1.29)
P∞ h i
x
P
Claim : p≤x m=2 log p pm = O(x).
∞ XX∞
XX x x
log p ≤ log p m
pm p
p≤x m=2 m=2 p≤x
∞
X X x
= log p
m=2
pm
p≤x
∞
XX 1
=x log p
pm
p≤x m=2
X 1 1
=x log p 2 + 3 + · · ·
p p
p≤x
X 1 1
=x log p 2 1 + + · · ·
p p
p≤x
X 1 1
=x log p 2
p 1 − 1/p
p≤x
52
Anil Kumar V. Number Theory
X 1 p
=x log p
p2 p − 1
p≤x
X log n
≤x
n(n − 1)
n≤x
| {z }
<∞
= x log x + O(x).
Proof. Let
X
F (x) = f (n),
n≤x
X
G(x) = g(n) and
n≤x
X
H(x) = h(x), h = f ∗ g. (1.30)
n≤x
Then
XX n
H(x) = f (d)g
d
n≤x d|n
X
= f (d)g(q). (1.31)
q,d
qd≤x
Since a and b are positive real numbers such that ab = x it follows that (a, b) is
a point on the rectangular hyperbola qd = x.
53
Anil Kumar V. Number Theory
The sum H(x) in equation (1.31) is extended over all lattice points in the first
quadrant of (q, d)- plane, below the rectangular hyperbola qd = x between the
two lines q = 1 and d = 1. Let
D = {(d, q) : q ≥ 1, d ≥ 1, qd ≤ x}
A = {(d, q) : d ≥ 1, q > b, qd ≤ x}
B = {(d, q) : q ∈ [1, a], d ∈ [1, b]}
C = {(d, q) : d > a, q ≥ 1, qd ≤ x}.
Then
D = A ∪ B ∪ C.
Now
X X X
= f (d)g(q)
(d,q)∈A∪B d≤a q≤x/d
X X
= f (d) g(q)
d≤a q≤x/d
X x
= f (d)G
d
d≤a
54
Anil Kumar V. Number Theory
X x
= f (n)G
n
n≤a
X X X
f (d)g(q) = f (d)g(q)
(d,q)∈B∪C q≤b d≤x/q
X X
= g(q) f (d)
q≤b d≤x/q
X x
= g(q)F
q
q≤b
X x
= g(n)F .
n
n≤b
X XX
= f (d)g(q)
(d,q)∈B d≤a q≤b
X X
= f (d) g(q)
d≤a q≤b
= F (a)G(b).
Hence
X X
f (d)g(q) = f (d)g(q)
d,q (d,q)∈D
qd≤x
X X X
= f (d)g(q) + −
(d,q)∈A∪B (d,q)∈B∪C (d,q)∈B
X x X x
= f (n)G + g(n)F − F (a)G(b).
n n
n≤a n≤b
1.2.5 Exercises
1. Use Euler’s summation formula to deduce the following for x ≥ 2:
P log n 1 2 log x
(a) n≤x n = 2 log x + A + O x , where A is constant.
1 1
P
(b) 2≤n≤x n log n = log(log x) + B + O x log x , where B is a constant.
55
Anil Kumar V. Number Theory
56
Module 2
57
Anil Kumar V. Number Theory
Note that the sum in (2.1) is a finite sum. For, if x1/m < 2 then
P
p≤x1/m log p =
0 ( that is the summation is empty). Now
1 log x
x1/m < 2 ⇒ log x < log 2 ⇒ m > = log2 x.
m log2
Hence if m > log2 x, the sum in (2.1) is zero. Hence ψ(x) can be written as:
X X
ψ(x) = log p.
m≤log2 x p≤x1/m
Hence
X X
0 ≤ ψ(x) − ϑ(x) = log p
2≤m≤log2 x p≤x1/m
X
= ϑ(x1/m ) (2.2)
2≤m≤log2 x
We have
X
ϑ(x) = log p
p≤x
58
Anil Kumar V. Number Theory
X
< log x
p≤x
< x log x.
Therefore
ϑ(x1/m ) < x1/m log x1/m
Hence (2.2) can be written as
X
0 ≤ ψ(x) − ϑ(x) < x1/m log(x1/m )
2≤m≤log2 x
= x1/2 log x1/2 + x1/3 log x1/3 + · · · + x1/ log2 x log x1/ log2 x
1 1/2 1 x1/ log2 x
= x log x + x1/3 log x + · · · + log x
2 3 log2 x
1 1/2 1 1
≤ x log x + x1/2 log x + · · · + x1/2 log x (∵ log is increasing)
2 3 log2 x
1 1/2 1 1
≤ x log x + x1/2 log x + · · · + x1/2 log x
2 2 2
1 1/2 1 1/2 1
≤ x log x log2 x = x log x log x
2 2 log 2
√
x (log x)2
=
2 log 2
Dividing by x we obtain:
ψ(x) ϑ(x) (log x)2
0≤ − ≤ √
x x 2 x log 2
This completes the proof.
Corollary 3. We have
ψ(x) ϑ(x)
lim − = 0.
n→∞ x x
Proof. We have
ψ(x) ϑ(x) (log x)2
0≤ − ≤ √
x x 2 x log 2
To prove the result it suffices to show that
(log x)2
lim √ = 0.
x→∞ 2 x log 2
59
Anil Kumar V. Number Theory
2(log x) 2( x1 ) 4
= lim √ = lim 1 = lim √ = 0.
n→∞ x log 2 n→∞ √
2 x
log 2 n→∞ x log 2
60
Anil Kumar V. Number Theory
k−1
X k−1
X
= A(n)f (n) + A(k)f (k) − A(m)f (m + 1) − A(n)f (n + 1)
n=m+1 n=m+1
k−1
X
= A(n)[f (n) − f (n + 1)] + A(k)f (k) − A(m)f (m + 1)
n=m+1
k−1
X Z n+1
=− A(n) f 0 (t)dt + A(k)f (k) − A(m)f (m + 1)
n=m+1 n
X k−1
X Z n+1
a(n)f (n) = − A(t)f 0 (t)dt + A(k)f (k) − A(m)f (m + 1)
y<n≤x n=m+1 n
Z k
=− A(t)f 0 (t) + A(k)f (k) − A(m)f (m + 1) (2.3)
m+1
Now
Z m+1 Z m+1
0
A(t)f (t) = A(m)f 0 (t)dt
y y
= A(m)[f (m + 1) − f (y)]
= A(m)f (m + 1) − A(m)f (y)
= A(m)f (m + 1) − A(y)f (y)
Therefore
Z m+1
A(m)f (m + 1) = A(y)f (y) + A(t)f 0 (t)dt (2.4)
y
Again
Z x Z x
A(t)f 0 (t) = A(k)f 0 (t)dt
k k
= A(k)[f (x) − f (k)]
= A(k)f (x) − A(k)f (k)
= A(x)f (x) − A(k)f (k)
Therefore
Z x
A(k)f (k) = − A(t)f 0 (t)dt + A(x)f (x) (2.5)
k
61
Anil Kumar V. Number Theory
Putting the values A(m)f (m + 1) and A(k)f (k) in equation (2.3), we obtain:
X Z k Z x
a(n)f (n) = − A(t)f 0 (t)dt − A(t)f 0 (t)dt + A(x)f (x) − A(y)f (y)
y<n≤x m+1 k
Z m+1
− A(t)f 0 (t)dt
y
"Z #
m+1 Z k Z x
0 0 0
=− A(t)f (t)dt + A(t)f (t)dt + A(t)f (t)dt
y m+1 k
62
Anil Kumar V. Number Theory
Then we have
X
π(x) = 1
p≤x
X
= a(n) = A(x).
n≤x
and
X X
ϑ(x) = log p = a(n) log n
p≤x n≤x
We have
X Z x
a(n)f (n) = A(x)f (x) − A(y)f (y) − A(t)f 0 (t)dt.
y<n≤x y
63
Anil Kumar V. Number Theory
Z 2 Z x
π(t) π(t)
= π(x) log x − dt − dt
1 t 2 t
Z x
π(t)
= π(x) log x − dt (π(t) = 0 if t < 2)
2 t
Therefore we have
X
ϑ(x) = log p
p≤x
X
= a(n) log n = B(x)
n≤x
and
X X b(n)
π(x) = a(n) =
log n
n≤x n≤x
1
Putting f (t) = log t and y = 3/2 in the Abel’s identity, we obtain:
x
−1
Z
X b(n) 1 1
= B(x) − B(3/2) − B(t) dt.
log n log x log(3/2) 3/2 (log t)2
3/2<n≤x
π(x) log x
lim = 1. (1)
x→∞ x
64
Anil Kumar V. Number Theory
ϑ(x)
lim = 1. (2)
x→∞ x
ψ(x)
lim = 1. (3)
x→∞ x
Therefore, we have
Z x
ϑ(x) π(x) log x 1 π(t)
lim = lim − lim dt
x→∞ x x→∞ x x→∞ x 2 t
1 x π(t)
Z
= 1 − lim dt (2.9)
x→∞ x 2 t
1 x π(t)
Z
lim dt = 0.
x→∞ x 2 t
Note that
π(x) log x
lim = 1.
x→∞ x
The above limit can be written as:
π(x)
x
lim = 1.
x→∞ 1
log x
65
Anil Kumar V. Number Theory
1 ∞ π(t)
Z Z ∞
1 1
dt ≤ M dt (2.10)
x 2 t x 2 log t
Now,
√
Z x Z x Z x
1 1 1
dt = dt + √
dt
2 log t 2 log t x log t
√
Z x Z x
1 1
≤ dt + √ dt
2 log 2 x log x
1 √ 1 √
≤ ( x − 2) + √ (x − x)
log 2 log x
1 √ 1 √
≤ x+ √ (x − x)
log 2 log x
Therefore, we have
Z x √
1 1 1 1
0≤ dt ≤ √ + √ (x − x)
x 2 log t x log 2 x log x
1 x π(t)
Z
lim dt = 0.
x→∞ x 2 t
π(x) log x
lim = 1.
x→∞ x
From theorem 2.2.2, we have
Z x
ϑ(x) ϑ(t)
π(x) = + dt
log x 2 t log2 t
66
Anil Kumar V. Number Theory
By hypothesis,
ϑ(x)
lim =1
x→∞ x
This implies that
θ(t) = O(t).
Therefore
Z x Z x
log x ϑ(t) log x ϑ(t)dt
dt = O (2.11)
x 2 t log2 t x 2 log2 t
Now
√
Z x Z x Z x
ϑ(t)dt 1 1
= dt + dt
2 log2 t 2 log2 t √
x log2 t
√
Z x Z x
1 1
≤ 2 dt + √ 2 √ dt
2 log 2 x log x
1 √ 1 √
= 2 [ x − 2] + 2 √ (x − x)
log 2 log x
√
x 4 √
≤ 2 + 2 (x − x)
log 2 log x
Therefore
x √
√
Z
log x ϑ(t)dt log x x log x 4
2 ≤ 2 + 2 (x − x)
x 2 log t x log 2 x log x
√
1 log x 4(x − x)
= √ +
log2 2 x x log x
67
Anil Kumar V. Number Theory
Theorem 2.3.2. Let pn denote the n th prime. Then the following asymptotic
relations are logically equivalent:
π(x) log x
lim = 1. (1)
x→∞ x
π(x) log π(x)
lim = 1. (2)
x→∞ x
pn
lim = 1. (2)
n→∞ n log n
68
Anil Kumar V. Number Theory
69
Anil Kumar V. Number Theory
pn ≤ x ≤ pn+1 . (2.12)
Thus
pn+1
lim = 1.
n→∞ n log n
pn+1
Inserting limn→∞ n log n = 1 in equation (2.13), we obtain:
x
lim = 1.
n→∞ n log n
70
Anil Kumar V. Number Theory
Equivalently,
x
lim = 1.
n→∞ π(x) log π(x)
(2) ⇒ (1) :
Assume that (2) holds. That is
Equivalently,
log log π(x) log x
lim log π(x) 1 + − = 0.
x→∞ log π(x) log π(x)
That is
log log π(x) log x
1+ log π(x) − log π(x)
lim = 0.
x→∞ 1/ log π(x)
71
Anil Kumar V. Number Theory
Now
π(x) log x log x π(x) log π(x)
lim = lim ×
x→∞ x x→∞ log π(x) x
log x π(x) log π(x)
= lim × lim
x→∞ log π(x) x→∞ x
= (1)(1) = 1.
72
Anil Kumar V. Number Theory
2m 2m 2m
=2 + +
m m−1 m+1
2m
>2 > 2 × 2m = 2m+1 .
m
That is,
2n!
2n < < 4n .
(n!)2
P∞ h i
where α(p) = m=1 pxm .
Taking logarithms we obtain:
X
log[x]! = α(p) log p,
p≤n
That is
∞
XX x
log[x]! = log p (2.17)
m=1
pm
p≤x
h i
x
Note that if x < pm , we have x/pm < 1 and hence pm = 0. Now
73
Anil Kumar V. Number Theory
Hence
log 2n log n
X [Xlog p ]
2n
X [X
log p ]
n
log 2n! − 2 log n! = log p − 2 log p
pm pm
p≤2n m=1 m=1
p≤n
log 2n log n
X [ X ] 2n
log p
X [X
log p ]
n
= log p − 2 log p
pm pm
p≤2n m=1 m=1
p≤n
[ log 2n
log p ]
X X n
−2 log p
p>n m=[ log n ]+1
pm
log p
| {z }
=0
log 2n
[ log p ]
X X 2n
n
=
pm − 2 m
log p (2.19)
p
p≤2n m=1 | {z }
0 or 1
log 2n
X [X] log p
X log 2n
≤ log p = log p
log p
p≤2n m=1 p≤2n
X log 2n X
≤ log p = log 2n 1 = log(2n)π(2n).
log p
p≤2n p≤2n
Thus
log 2n! − 2 log n! ≤ π(2n) log(2n). (2.20)
74
Anil Kumar V. Number Theory
75
Anil Kumar V. Number Theory
log 2n
X 2n
n X [X log p ]
2n
n
= −2 log p + −2 log p
p p p p
p≤2n p≤2n m=2
X 2n
n
≥ −2 log p
p p
p≤2n
X 2n
n
≥ p −2 p log p
n<p≤2n | {z } |{z}
=1 =0
X
= log p
n<p≤2n
X X
= log p − log p
p≤2n p≤n
= ϑ(2n) − ϑ(n).
Hence
Hence
76
Anil Kumar V. Number Theory
X
< log p (∵ log nα < log p)
nα <p≤n
Hence
4n log 2
π(n) < + π(nα )
α log n
4n log 2
< + nα
α log n
n 4 log 2 log n
= + 1−α (2.27)
log n α n
Note that the function f attains its maximum at x = e1/c and the maximum
value of f is 1/ce.
Putting α = 2/3 in equation (2.27), we obtain:
n 4 log 2 log n
π(n) < + 1/3
log n 2/3 n
n −1/3
= [6 log 2 + n log n]
log n
n
≤ [6 log 2 + 3/e] < 6n/ log n
log n
1 k k
< π(k) < 6 . (2.28)
6 log k log k
77
Anil Kumar V. Number Theory
Also f 0 (x) = 0 implies that x = e2 . One can easily verify that f 00 (e2 ) < 0.
Hence the function f has a maximum at x = e2 and the maximum value is
given by 2/e. Hence equation (2.31) can be written as:
√ 6n log pn 2 12n
pn < √ < 6n = . (2.31)
pn e e
Taking logarithms we obtain:
1 12
log pn < log + log n
2 e
This implies that
12
log pn < 2 log + 2 log n (2.32)
e
Hence equations (2.29) and (2.32) we have:
12
pn < 6n 2 log + 2 log n
e
12
= 12 n log n + n log
e
This completes the proof of the theorem.
78
Anil Kumar V. Number Theory
P∞ 1
Corollary 5. The series k=1 pn is divergent.
Then
Proof. Let
X
S(x) = a(n),
n≤x
X hx i
T (x) = a(n) .
n
n≤x
79
Anil Kumar V. Number Theory
It is given that
X hxi
a(n) = x log x + O(x) for all x ≥ 1.
n
n≤x
That is,
First we prove (b). For this first we establish the following inequality:
x x
S(x) − S ≤ T (x) − T .
2 2
Now
x X hxi hxi
X
T (x) − 2T = a(n) −2 a(n)
2 n 2n
n≤x n≤x/2
X hxi X hxi X hxi
= a(n) + a(n) −2 a(n)
n n 2n
n≤x/2 x/2<n≤x n≤x/2
X h x i h x i X hxi
= a(n)
n − 2 + a(n)
{z 2n } n
n≤x/2 | x/2n≤x
0 or 1
X hxi
≥ a(n)
n
x/2<n≤x
X hxi X hxi
= a(n) − a(n)
n n
n≤x n≤x/2
x
= S(x) − S
2
Hence
x x
S(x) − S ≤ T (x) − T
2 2
Now
x hx
x x i
T (x) − T = [x log x + O(x)] − 2 +Olog
2 2 2 2
x
= x log x + O(x) − x log x + x log 2 + O
2
= x log 2 + O(x) = O(x) + O(x) = O(x).
Hence
x
T (x) − T = O(x)
2
80
Anil Kumar V. Number Theory
That is
S(x) ≤ Bx
That is,
X
a(n) ≤ Bx.
n≤x
This completes the proof of (b). Next we prove (a). Note that
x hxi
− <1
n n
This implies that
hxi x
− = O(1).
n n
Hence
X hxi
T (x) = a(n)
n
n≤x
X x
= + O(1) a(n)
n
n≤x
X a(n) X
=x +O a(n)
n
n≤x n≤x
81
Anil Kumar V. Number Theory
X a(n)
=x + O(S(x))
n
n≤x
X a(n)
=x + O(x) (∵ S(x) ≤ Bx)
n
n≤x
Hence
X a(n) 1
= T (x) + O(1)
n x
n≤x
1
= [x log x + O(x)]
x
= log x + O(1).
This completes the proof of (a).
Finally, we prove (c). Let
X a(n)
A(x) =
n
n≤x
82
Anil Kumar V. Number Theory
X a(n) 1 X 1
≤ < a(n) = S(x).
n αx αx
n≤x n≤x
Thus
S(x) 1
> A(x) − A(αx) ≥ 1 if x ≥ .
αx α
Thus
1
S(x) ≥ αx if x ≥ .
α
Taking A = α and x0 = 1/α we have
and
ψ(x) ≥ c2 x for all sufficiently large x.
Proof. We have
X hxi
Λ(n) = log[x]!
n
n≤x
= x log x − x + O(log x)
= x log x + O(x) + O(log x)
= x log x + O(x).
Hence X hxi
Λ(n) = x log x + O(x)
| {z } n
n≤x
a(n)
83
Anil Kumar V. Number Theory
and
Define
(
log p if n is a prime
Λ1 (n) =
0 otherwise
84
Anil Kumar V. Number Theory
X
(b) Λ1 (n) ≤ C1 x, for all x ≥ 1.
n≤x
for all x ≥ 1.
X
(c) Λ1 (n) ≥ C2 x,
n≤x
ϑ(x) ≥ c2 x,
and
X x
ϑ = x log x + O(x).
n
n≤x
Then
X hxi X x
Λ(n) = ψ (2.35)
n n
n≤x n≤x
85
Anil Kumar V. Number Theory
Again we have
X X
ϑ(x) = log p = Λ1 (n).
n≤x n≤x
Then
X hxi X x
Λ1 (n) = ϑ
n n
n≤x n≤x
But
X hxi
Λ1 (n) = x log x + O(x).
n
n≤x
Hence
X x
ϑ = x log x + O(x).
n
n≤x
Proof. Let
X log p
A(x) =
p
n≤x
and let
(
1 if n is prime,
a(n) =
0 otherwise
Then
X1 X a(n) X a(n)
= and A(x) = log n.
p n n
n≤x n≤x n≤x
86
Anil Kumar V. Number Theory
That is
Z x
X a(n) A(x) A(t)
= + dt.
3/2<n≤x
n log x 3/2 t log2 t
Thta is
X1 Z 2 Z x
A(x) A(t) A(t)
= + 2 dt + 2 dt
p log x 3/2 t log t 2 t log t
p≤x
Z x
A(x) A(t)
= + 2 dt (2.37)
log x 2 t log t
Now
X log n
A(x) = a(n)
n
n≤x
X log p
=
p
p≤x
= log x + O(1)
Inserting the value of A(x) in equation (2.37) we obtain:
X1 Z x
log x + O(1) log t + R(t)
= + dt, R(t) = O(1).
p≤x
p log x 2 t log2 t
Z x Z x
1 1 R(t)
=1+O + dt + 2 dt (2.38)
log x 2 t log t 2 t log t
Now
Z x Z x
1 1/t
dt = dt
2 t log t 2 log t
x
= (log log t)2 = log(log x) − log(log 2).
Also
Z x Z ∞ Z ∞
R(t) R(t) R(t)
dt = dt − dt (2.39)
2 t log2 t 2 t log2 t x t log2 t
87
Anil Kumar V. Number Theory
Note that
R(t) = O(1)
Therefore
Z ∞ Z ∞ Z ∞
R(t) 1 d −1 1
dt = O dt = O = O
x t log2 t x t log2 t x dt log t log x
The exact bounds of M (x) is not known. Numerical evidence suggests that
√
|M (x)| < x, if x > 1.
88
Anil Kumar V. Number Theory
Putting y = 1, a(n) = µ(n) and f (t) = log t in the Abel’s identity we obtain
Z x
X 1
µ(n) log(n) = M (x) log x − M (1) log 1 − M (t) dt.
y t
1<n≤x
That is,
Z x
X M (t)
µ(n) log(n) = M (x) log x − dt.
1 t
1<n≤x
| {z }
H(x)
That is
Z x
M (t)
H(x) = M (x) log x − dt.
1 t
Dividing both sides by x log x we obtain:
Z x
H(x) M (x) 1 M (t)
= − dt.
x log x x x log x 1 t
That is
Z x
M (x) H(x) 1 M (t)
− = dt
x x log x x log x 1 t
Therefore
Z x
M (x) H(x) 1 M (t)
lim − = lim dt.
x→∞ x x log x x→∞ x log x 1 t
R x M (t)
1
Claim: limx→∞ x log x 1 t dt = 0. But we have the trivial estimate M (x) =
O(x) so
Z x Z x
M (t)
dt = O dt = O(x),
1 t 1
Therefore
Z x
1
M (t) 1
dt = O(x)
1x log x
t x log x
1
=O
log x
R x M (t)
1
This implies that limx→∞ x log x 1 t dt = 0.
89
Anil Kumar V. Number Theory
M (x)
lim = 0.
x→∞ x
Proof. By theorem 2.8.1 we have
M (x) H(x)
lim − = 0.
x→∞ x x log x
H(x)
lim = 0.
x→∞ x log x
x
P P
Claim:− n≤x µ(n) log n = n≤x µ(n)ψ n . We have
X
log n = Λ(d).
d|n
Hence
X
Λ(n) = − µ(d) log d
d|n
90
Anil Kumar V. Number Theory
Hence
X XX n
− µ(n) log n = µ(d)Λ
d
n≤x n≤x d|n
X
= (µ ∗ Λ)(n)
n≤x
X X
= µ(n) Λ(n)
n≤x n≤x/n
X x
= µ(n)ψ
n
n≤x
Hence
X X x
−H(x) = − µ(n) log n = µ(n)ψ
n
n≤x n≤x
We know that
π(x) log x ψ(x)
lim = 1 ⇔ lim = 1.
x→∞ x x→∞ x
ψ(x)
Hence prime number theorem is equivalent to ψ(x) ∼ x. Since limx→∞ x = 1,
given > 0 there exists A > 0 such that
ψ(x)
x − 1 < for all x ≥ A.
Now
hxi x
n≤y⇒n≤ <
A A
x
⇒A≤ .
n
Hence from equation (2.40) we have
x x x
− < for all n ≤ y.
n n n
ψ
91
Anil Kumar V. Number Theory
Consider
X x
I1 = µ(n)ψ
n
n≤y
X hx
xi x
= µ(n) +ψ −
n n n
n≤y
X µ(n) X h x xi
=x + µ(n) ψ −
n n n
n≤y n≤y
Therefore
X µ(n) X x x
|I1 | ≤ y + |µ(n)| −
n ψ
n n
n≤y n≤y
Xx
≤ x(1) +
n
n≤y
X1 Z y
1
=x+x < x + x dx
n 1 x
n≤y
Now
hxi
y<n≤x⇒ < n ≤ [x]
hA
xi
⇒ +1≤n
A
⇒y+1≤n
1 1
⇒ ≥
y+1 n
x x
⇒ ≥ (2.42)
y+1 n
Also
x A 1
y≤ <y+1⇒ > (2.43)
A x y+1
92
Anil Kumar V. Number Theory
< xψ(A).
Hence
|H(x)| 2 + ψ(A)
<+ for all x ≥ A. (2.44)
x log x log x
Note that
2 + ψ(A)
lim = 0.
x→∞ x log x
2 + ψ(A)
< for all x ≥ B. (2.45)
x log x
Hence
|H(x)|
< + for all x ≥ max{A, B}. (2.46)
x log x
93
Anil Kumar V. Number Theory
M (x) = o(x)asx → ∞
We have
X
σ0 (n) = 1
n≤x
Also we have
X n
Λ(n) = µ(d) log (2.49)
d
d|n
X
1
= µ(d) (2.50)
n
d|n
94
Anil Kumar V. Number Theory
P
Claim: µ(d)f (q) = o(x) as x → ∞.
q,d
qd≤x P
By theorem 1.2.11 we can write q,d µ(d)f (q) in the following form:
qd≤x
X X x X x
µ(d)f (q) = µ(n)F + f (n)M − F (a)M (b),
n n | {z }
q,d n≤b n≤a
qd≤x | {z } | {z } I3
| {z } I1 I2
I
Now
X
F (x) = f (n)
n≤x
X
= [σ0 (n) − log n − 2C]
n≤x
X X X
= σ0 (n) − log n − 2C 1
n≤x n≤x n≤x
√
= [x log x + (2C − 1)x + O( x)] − [x log x − x + O(log x)] − 2C[x + O(1)]
√
= O( x) + O(log x) + O(1)
√ √ √
= O( x) + O( x) + O( x)
√
= O( x).
Hence √
F (x) = O( x).
This implies that there exists B > 0 such that
√
|F (x)| ≤ B x for x ≥ 1. (2.52)
Now
X x X x
|I1 | = µ(n)F ≤
n n
F
n≤b n≤x
√ X 1
r
X x
≤B =B x √
n n
n≤b n≤x
√
Z b
1 √ √ √
≤B x √ dt = 2B[ b − 1] < 2B x b
1 t
√ √ Ax A
= A x b = √ < x if √ <
a a
95
Anil Kumar V. Number Theory
Hence
|I1 | < x.
By hypothesis
M (x)
lim = 0.
x→∞ x
Then corresponding to the same > 0 there exits c > 0 such that
|M (x)|
≤ for x ≥ c,
x K
P |f (n)|
where K = n≤x n . Now
X x
|I2 | = | f (n)M |
n
n≤a
X
≤ |f (n)||M (x/n)|
n≤x
X x x
≤ |f (n)| for ≥c
n K n
n≤x
x
= for ≥ c.
n
Hence
Now
Hence
|I3 | < x
Thus
96
Anil Kumar V. Number Theory
the relation
A(x) = o(1) as x → ∞
implies prime number theorem. In other words, the prime number theorem is a
consequence of the statement that the series
∞
X µ(n)
n=1
n
µ(n)
Taking y = 1, f (t) = t and a(n) = in Abel’s identity we obtain:
n
X µ(n) Z x
n = A(x)x − A(t)dt
n 1
1<n≤x
That is,
X Z x
µ(n) = A(x)x − A(t)dt
n≤x 1
That is,
Z x
M (x) = A(x)x − A(t)dt
1
Therefore
Z x
M (x) 1
= A(x) − A(t)dt (2.53)
x x 1
|A(x)| < ∀x ≥ c.
97
Anil Kumar V. Number Theory
Now
Z x Z c
1 x
Z
1 1
x A(t)dt=
x A(t)dt + A(t)dt
1 1 x c
Z c Z x
1 1
≤ A(t)dt + A(t)dt
x 1 x c
Z c
1 x
Z
1
= A(t)dt + A(t)dt
x 1 x c
1 c 1 x
Z Z
≤ |A(t)| dt + |A(t)| dt
x 1 | {z } x c | {z }
<1 <
1 c 1
< (c − 1) + (x − c) = − (1 + c + )
x x x x
Therefore
Z
1 x
lim A(t)dt = 0.
x→∞ x 1
M (x)
lim = 0.
x→∞ x
This completes the proof of the theorem.
98
Module 3
Quadratic Residues
x2 ≡ n(mod p)
99
Anil Kumar V. Number Theory
Hence the quadratic residues mod 11 are 1, 3, 4, 5, 9, and the non residues
are 2, 6, 7, 8, 10.
Remark 13. Since (−x)2 ≡ x2 (mod p), to find the quadratic residues mod p
we need only consider x2 , 0 < x < [p/2].
Remark 14. The nonzero residues (mod p) can be listed as:
Z×
p = {1, 2, 3, . . . , p − 1}.
Note that Z× ×
p is a group under multiplication. The elements of Zp can be written
as:
Z×
p = {1, 2, 3, . . . , (p − 1)/2, (p + 1)/2, . . . , p − 1}
| {z } | {z }
<p/2 >p/2
Z×
p = {1, 2, . . . , (p − 1)}
100
Anil Kumar V. Number Theory
Proof. Note that Z×p is a field. Let Q denote the set of quadratic residues mod
p. Define a map ϕ : Z× ×
p → Zp by
ϕ(r) = r2 (mod p)
Then
ker(ϕ) = {x ∈ Z×
p : ϕ(x) = 1}
= {x ∈ Z× 2
p : r ≡ 1(mod p)}
= {1, −1}.
Also
im(ϕ) = {r ∈ Z×
p : ϕ(x) = r}
= {r : r ≡ x2 (mod p)}
= Q.
By the first isomorphism theorem of group theory,
|ker(ϕ)||im(ϕ)| = |Z×
p|
That is
p−1
2|Q| =
2
Threfore |Q| = p−1
2 . This implies that the number of quadratic nonresidues in
p−1
Zp is also 2 . Since Zp is a group, x (mod p) ∈ Z×
× × 2
p for x = 1, 2, · · · , (p − 1)/2.
Next, we will show that 12 , 22 , 32 , . . . , ((p − 1)/2)2 are all distinct.
Assume that
p−1
x2 ≡ y 2 (mod p), 1 ≤ x, y ≤
2
⇒(x − y)(x + y) ≡ (mod p)
⇒(x − y) ≡ (mod p)(∵ 1 < x + y < p)
⇒x ≡ y(mod p).
101
Anil Kumar V. Number Theory
Hence
n(p−1)/2 ≡ (n|p)(mod p)
xp−1 ≡ 1(mod p)
102
Anil Kumar V. Number Theory
Therefore
That is
f (mn) = f (m)f (n) for all m, n ∈ N.
103
Anil Kumar V. Number Theory
Equivalently,
(−1 | p) − (−1)(p−1)/2 ≡ 0(mod p)
Note that (−1 | p) ∈ {1, −1} and (−1)(p−1)/2 ∈ {1, −1}. So
(−1 | p) = (−1)(p−1)/2
Now
(−1 | p) = 1 ⇔ (−1)(p−1)/2 = 1
⇔ (p − 1)/2 = 2m for some m ∈ Z
⇔ p = 1 + 4m
⇔ p ≡ 1(mod 4)
Also,
(−1 | p) = −1 ⇔ (−1)(p−1)/2 = −1
⇔ (p − 1)/2 = 2m + 1 for some m ∈ Z
⇔ p = 3 + 4m
⇔ p ≡ 3(mod 4)
p − 1 ≡1(−1)1 (mod p)
2 ≡2(−1)2 (mod p)
p − 3 ≡3(−1)3 (mod p)
4 ≡4(−1)4 (mod p)
..
.
p−1
r≡ (−1)(p−1)/2 (mod p)
2
104
Anil Kumar V. Number Theory
Hence
p2 − 1
≡ 1(mod 8)
8
2
−1)/8
Thus (−1)(p = (−1)1 = −1.
105
Anil Kumar V. Number Theory
aj ≡ ak (mod p) ⇔ jn ≡ kn(mod p)
⇔ (jn − kn) ≡ 0(mod p)
⇔ (j − k)n ≡ 0(mod p)
⇔ (j − k) ≡ 0(mod p)(∵ (p, n) = 1)
⇔ j = k.
That is,
p−1 p−1
n(p−1)/2 ! ≡ (−1)m !(mod p)
2 2
This implies that
n(p−1)/2 ≡ (−1)m (mod p)
This completes the proof.
106
Anil Kumar V. Number Theory
If n is odd,
(p−1)/2
X tn
m≡ (mod 2).
t=1
p
Proof. Let
p−1
S= n, 2n, 3n, . . . , n
2
For t = 1, 2, . . . , (p − 1)/2, write
tn tn tn
= + ,
p p p
n o
tn
where 0 < p < 1.[Note that {x} = x − [x] for all x ∈ R with 0 ≤ {x} < 1
and {x} = 0 if and only if x is an integer]
So for t = 1, 2, . . . , (p − 1)/2
tn tn
tn = p +p
p p
tn
=p + rt , (3.4)
p
107
Anil Kumar V. Number Theory
p−1
Then k + m = 2 and A ∪ B = {r1 , r2 , . . . , r(p−1)/2 }. That is,
Note that
Therefore
p−1
1, 2, 3, . . . , = {a1 , a2 , . . . , ak , p − b1 , p − b2 , . . . , p − bm }
2 | {z } | {z } | {z }
c1 c2 cm
= {a1 , a2 , . . . , ak , c1 , c2 , . . . , cm } (3.6)
| {z } | {z }
0<rt <p/2 0<rt <p/2
p2 − 1
mp ≡ −pS(n, p) + (n − 1) (mod 2)
8
108
Anil Kumar V. Number Theory
Hence
p2 − 1
m ≡ S(n, p) + (n − 1) (mod 2) (∵ p ≡ 1(mod 2), −1 ≡ 1(mod 2)
8
If n is odd, then n − 1 ≡ 0(mod 2). So
(p−1)/2
X tn
m≡ (mod 2).
t=1
p
q/p 3 5 7 11 13 17 19 -
3 0 -1 1 -1 +1 -1 +1 -
5 -1 0 -1 +1 -1 -1 +1 -
7 -1 -1 0 + -1 -1 -1 -
11 +1 +1 -1 0 -1 -1 -1 -
13 +1 -1 -1 -1 0 +1 -1 -
17 -1 -1 -1 -1 +1 0 +1 -
19 -1 +1 +1 + -1 +1 0 -
- - - - - - - - -
We observe that row-5 and column-5 are identical in the above table. Similar is
the case for row-13, column-13, and row-17, column-17. There is slightly more
complicated regularity in cases of 3, 7, 11, and 19. There is a flip in sign when
both
p, q ≡ 3(mod 4).
If one of p or q is of the form 4k + 1, then it seems that (p | q)(q | p) = 1. and if
both are of the form 4k + 3, then it seems that (p | q)(q | p) = −1. The relation
was guessed by Euler and an incomplete proof was given by Legendre. Gauss
rediscovered it at the age of 18 and obtained the first complete proof. In fact
he gave several proofs. It is well known as Quadratic Reciprocity Law,
(p|q)(q|p) = (−1)((p−1)/2)((q−1)/2)
The law states that if one of p or q has remainder 1 when divided by 4, then
either both are solvable or both are unsolvable. If the remainders of both p and
q are 3, then if one is solvable then the other is not.
109
Anil Kumar V. Number Theory
Theorem 3.4.1. (Quadratic Reciprocity Law) Let p and q are distinct odd
primes. Then
(
((p−1)/2)((q−1)/2) −1 if p ≡ q ≡ 3(mod 4)
(p|q)(q|p) = (−1) =
1 p ≡ 1(mod 4) or q ≡ 1(mod 4)
110
Anil Kumar V. Number Theory
111
Anil Kumar V. Number Theory
That is (m | P ) = (n|P ).
(d)
112
Anil Kumar V. Number Theory
Proof. Let
P = p1 p2 . . . pm
where pi ’s are not necessarily distinct primes. This can also be written as
m
Y m
Y m
X X
P = pi = (1 + pi − 1) = 1 + (pi − 1) + (pi − 1)(pj − 1) + · · ·
i=1 i=1 i=1 i6=j
| {z }
divisible by 4
Hence
m
X
P −1≡ (pi − 1)(mod 4)
i=1
or
m
P − 1 X (pi − 1)
≡ (mod 2)
2 i=1
2
Therefore
m
Y
(−1|P ) = (−1|pi )
i=1
Ym
= (−1)(pi −1)/2
i=1
Pm
= (−1) i=1 (pi −1)/2
= (−1)(P −1)/2
Proof. Let
P = p1 p2 . . . pm
where pi ’s are not necessarily distinct primes. This can also be written as
m
Y m
Y m
X X
P2 = p2i = (1 + p2i − 1) = 1 + (p2i − 1) + (p2i − 1) (p2j − 1) + · · ·
| {z } | {z }
i=1 i=1 i=1 i6=j
≡0(mod 8) ≡0(mod 8)
Hence
m
X
2
P −1≡ (p2i − 1)(mod 64)
i=1
113
Anil Kumar V. Number Theory
or
m
P 2 − 1 X (p2i − 1)
≡ (mod 8)
8 i=1
8
This implies that
m
X (p2 − 1)i P2 − 1
= + 8m for some m ∈ Z
i=1
8 8
Therefore
m
Y
(2|P ) = (2|pi )
i=1
m
Y 2
= (−1)(pi −1)/8
i=1
Pm 2
= (−1) i=1 (pi −1)/8
2 2
−1)/8+8m −1)/8
= (−1)(P = (−1)(P
Theorem 3.5.4. (Reciprocity law for Jacobi symbols)If P and Q are positive
odd integers with (P, Q) = 1, then
(P |Q)(Q|P ) = (−1)(P −1)(Q−1)/4
Proof. Let P = p1 p2 · · · pm and Q = q1 q2 · · · qn , where the pi and qi are primes
not necessarily distinct. Then
!
Yn Ym
(P |Q)(Q|P ) = (P |qj ) (Q|pi ) (By the definition of Legendre symbol)
j=1 i=1
!
m
Y n
Y n
Y m
Y
= (pi |qj ) (qj |pi )
i=1 j=1 j=1 i=1
m Y
Y n
= (pi |qj )(qj |pi )
i=1 j=1
Ym Y n
= (−1)(pi −1)(qi −1)/4 (By the reciprocity of Legendre symbols)
i=1 j=1
Pm Pn
(pi −1)(qj −1)/4
= (−1) i=1 j=1
Pm Pn
= (−1) i=1 (pi −1)/2 j=1 (qj −1)/2
m m
!
(P −1)/2(Q−1)/2
X (pi − 1) P −1 X (qi − 1) Q−1
= (−1) ∵ ≡ (mod 2), ≡ (mod 2) .
i=1
2 2 i=1
2 2
114
Anil Kumar V. Number Theory
y 2 = x3 + k, k ∈ Z \ {0}
y 2 = x3 + k (3.9)
y 2 ≡ x3 − 1(mod 4) (3.11)
115
Anil Kumar V. Number Theory
Now
p1 p2 · · · pk ≡ −1(mod 4) (3.13)
Equation (3.13) tells us that all its prime factors cannot be ≡ 1(mod 4). There
fore some prime pi ≡ −1(mod 4). We denote the prime number pi by p. Then
p ≡ −1(mod 4). Now
p|p1 p2 · · · pk ⇒ p | x2 − ax + a2
116
Anil Kumar V. Number Theory
⇒ p | y 2 + 4m2
⇒ y 2 + 4m2 ≡ 0(mod 4)
⇒ y 2 ≡ −4m2 (mod 4)
⇒ (y 2 |p) = (−4m2 |p)
⇒ 1 = (−4m2 |p)(∵ p - y)
⇒ 1 = (22 |p)(m2 |p)(−1|p)
⇒ 1 = 1(−1|p)(∵ p - m)
⇒ 1 = −1(by theorem 3.3.1),which is absurd.
3.6 Problems
Problem 1. Determine whether 219 is a quadratic residue or nonresidue mod
383.
(219|383) = 1
117
Anil Kumar V. Number Theory
(888|1999) = (4|1999)(2|1999)(111|1999)
2
−1)/8
= (1)(−1)(1999 (111|1999)
= (111|1999)
= −(1999|111)(by Reciprocity law)
= −(1|111)(∵ 1999 ≡ −1(mod 111))
= −1
Therefore 888 is a quadratic nonresidue of 1999.
Problem 3. Determine whether −104 is a quadratic residue or nonresidue mod
997.
118
Anil Kumar V. Number Theory
3.7 Exercise
1. Determine whether 219 is a quadratic residue or nonresidue mod 383.
2. Determine those odd primes p for which (−3|p) = 1 and those for which
(−3|p) = −1.
3. Prove that 5 is a quadratic residue of an odd prime if p ≡ ±1(mod 10))
and that 5 is a non residue if p ≡ ±1(mod 10)).
4. Find all quadratic residues a mod p (in the range −p/2 < a < p/2) for
p = 17, 19 and 23.
5. Use Gauss’ Lemma to compute the following Legendre symbols
119
Anil Kumar V. Number Theory
120
Module 4
Cryptography
4.1 Introduction
The fundamental goal of cryptography is to allow two people, Alice and Bob, to
exchange messages over an insecure channel in such a way that their opponent,
Eve, cannot discover their content.
4.2 Terminologies
• Plaintext: The message you want to send, like “HELLO”. The plaintext
is written in some alphabet consisting of a certain number N of letters.
The term “letter” (or “character”) can refer not only to the familiar A−Z,
but also to numerals, blanks, punctuation marks, or any other symbols
that we allow ourselves to use when writing the messages. (If we don’t
include a blank, for example, then all of the words are run together, and
the messages are harder to read).
• Encryption: The process of disguising a message in such a way as to
hide its substance is encryption.
• Ciphertext: The disguised message, like XQABE.
• Message unit:The plaintext and ciphertext are broken up into message
units. A message unit might be a single letter, a pair of letters (digraph),
a triple of letters (trigraph), or a block of 50 letters
• Decryption: The process of turning ciphertext back into plaintext is
decryption.
• Encode: The processes of converting plaintext into a number, numbers is
called encloding.The first step is to “label” all possible plaintext message
units and all possible ciphertext message units by means of mathematical
objects from which functions can be easily constructed. These objects are
121
Anil Kumar V. Number Theory
often simply the integers in some range. For example, if our plaintext and
ciphertext message units are single letters from the 26-letter alphabet A-Z,
then we can label the letters using the integers 0, 1, 2, . . . , 25, which we call
their “numerical equivalents.” Thus, in place of A we write 0, in place of
S we write 18, in place of X we write 23, and so on. As another example,
if our message units are digraphs in the 27-letter alphabet consisting of
A-Z and a blank, we might first let the blank have numerical equivalent 26
(one beyond Z), and then label the digraph whose two letters correspond
to x, y ∈ {0, 1, 2, . . . , 26} by the integer
f f −1
P→C → P
Any such set-up is called a cryptosystem.
122
Anil Kumar V. Number Theory
C = f (P ) ≡ P + b(mod N ),
we can compute
P = f −1 (C) = C − b(mod N ).
. For example, say we take P = 18 to C = 26, in modular N = 32, so we
substitute P and C in the forms of C ≡ P + b(mod N ) and get
26 ≡ 18 + b(mod 32).
By solving for key of b, and b = 8 and both sender and recipient know this
key. Now, when the recipient only gets the ciphertext C from the sender, he
can eventually decipher the message byP = C − b = 26 − 8 ≡ 18(mod 32). 2).
This is correct.
C ≡ aP + b(mod N )
C − 4 ≡ 3P (mod 26)
and
3−1 (C − 4) ≡ P (mod26)
123
Anil Kumar V. Number Theory
. Now
3−1 ≡ 9(mod 26)
(since 3.9 ≡ 1(mod 26)). So P ≡ 9(C − 4) ≡ 9C − 36 ≡ 9C + 16(mod 26). In
general encryption:
C ≡ aP + b(modN )
and decryption:
P ≡ a−1 (C − b)(modN )
. Here (a−1 , −a−1 b) is the decryption key.
3. Randomly pick e satisfying the property of 1 < e < ϕ(n) with gcd(e, ϕ(n)) =
1.
5. At the end of the process, the public enciphering key is kE = (n; e) and
private deciphering key is kD = (n; d).
Example 1:
5. So the public enciphering key is kE = (320629; 997) and the private deci-
phering key is kD = (320629; 263321).
124
Anil Kumar V. Number Theory
Example 2:
• Bob choose two secrete primes p = 7 and q = 17
• Bob computes n = p.q = 7 × 17 = 119.
• Bob computes ϕ(n) = (p − 1)(q − 1) = 96
• Bob chooses a public encrypition exponent e with the property that
Take e = 5.
• Find d ≡ e−1 (mod 96). Then d = 77
• Public Key: (119, 5), Private Key: (119, 77)
RSA Encryption
m = 19 satisfying 1 ≤ m ≤ 119.
RSA Decryption
125
Anil Kumar V. Number Theory
4.3.6 Signatures
Authentication when people send the message, we often need to verify the iden-
tity of the sender. We often call this the signature. We can construct a digital
signature similar to a physical signature while communicating the message. Sup-
pose Alice wants to send message P to Bob. She sends her signature SA along
with her message. Let fA be the enciphering transformation for Alice and fB be
the same for Bob and make them public. First, Alice composes Bob’s fB with
her own private key fA−1 to obtain fB fA−1 (SA). When Bob gets the message, he
first applies his own private key fB−1 to obtain fA−1 (SA). Then he applies Alice’s
public enciphering transformation fA , and obtains SA. Since he can decipher
the signature, he concludes this message was indeed sent by Alice.
126
Anil Kumar V. Number Theory
4.4 Problems
Problem 5. In the 27 letter alphabet(with blank =26), use affine enciphering
transformation with key a = 13, b = 9 to encipher the message “HELP ME”.
The affine enciphering transformation is
c(P ) = aP + b(mod 27)
P c(P ) = 13P + 9 C
H 13 × 7 + 9 = 100 ≡ 19(mod 27) T
E 13 × 4 + 9 = 61 ≡ 7(mod 27) H
L 13 × 11 + 9 = 152 ≡ 17(mod 27) R
P 13 × 15 + 9 = 204 ≡ 15(mod 27) P
blank 13 × 26 + 9 = 347 ≡ 23(mod 27) X
M 13 × 12 + 9 = 165 ≡ 3(mod 27) R
The required message is “ THRPXDH”.
Problem 6. In a long string of ciphertext which was encrypted by means of an
affine map on single-letter message units in the 26-letter alphabet, you observe
that the most frequently occurring letters are “Y” and “V”, in that order. As-
suming that those ciphertext message units are the encryption of “E” and “T”,
respectively, read the message “QAOOYQQEVHEQV”.
The affine deciphering transformation is
P ≡ a0 C + b0 (mod 26)
Given that “Y” and “V” are encryptions of “E” and “T” respectively. So we
have the following equations:
4 ≡ 24a0 + b0 (mod 26) (4.1)
127
Anil Kumar V. Number Theory
P ≡ a0 C + b0 (mod 37)
Given that “0(zero)” and “7” are encryptions of “B” and “9” respectively. So
we have the following equations:
Eqn(3)-Eqn(4) gives:
128
Anil Kumar V. Number Theory
C ≡ aP + b(mod 729)
P ≡ a0 C + b0 (mod 729)
, here a, b form the enciphering key, and a0 , b0 form the deciphering key.
digraph Numerical equivalent(27x + y(mod 729))
“ZA ” 27 × 25 + 0 = 675(mod 729)
“E ” 27 × 4 + 26 = 134(mod 729)
“IA” 27 × 8 + 0 = 216(mod 729)
“S ” 27 × 18 + 26 = 512(mod 729)
“IW” 27 × 8 + 22 = 238(mod 729)
“ T” 27 × 26 + 19 = 721(mod 729)
By hypothesis we have the following equations:
129
Anil Kumar V. Number Theory
Eqn(5)-Eqn(6) gives:
130
Anil Kumar V. Number Theory
1 = 13 − 2 × 6
= 13 − 2(19 − 1 × 13)
= −2 × 19 + 3 × 13
= −2 × 19 − 3(355 − 18 × 19)
= 3 × 355 − 56 × 19
= 3 × 355 − 56(374 − 1 × 355)
= −56 × 374 + 59 × 355
= −56 × 374 − 115 × 374
= −155 × 374(mod 729)
131
Anil Kumar V. Number Theory
Note that (21, 26) = 1 so D has inverse in Z26 and D−1 = 21−1 = 5. Therefore
−1
D d −D−1 b
A−1 =
−D−1 c D−1 a
5 × 8 −5 × 3
=
−5 × 7 5 × 2
40 −15 14 11
= =
−35 10 17 10
Problem 10. Solve the following system of simultaneous congruences:
2x + 3y ≡ 1mod 26
7x + 8y ≡ 2mod 26
The given system is equivalent to matrix:
2 3 x 1
≡ (mod 26)
7 8 y 2
132
Anil Kumar V. Number Theory
Therefore
−1
x 2 3 1
≡
y 7 8 2
14 11 1 10
≡ ≡
17 10 2 11
Problem
11.
Suppose we are working in the 26-letter alphabet, use the matrix
2 3
A= to encipher the message “NO”.
7 8
Note that the matrix corresponding to the digraph unit “NO” is
13
P =
14
Therefore
2 3 13 16
C = AP = = → “QV ”
7 8 14 21
Problem
12.
Suppose we are working in the 26-letter alphabet, use the matrix
2 3
A= to encipher the message “NOANSWER”.
7 8
The matrix corresponding to “NOANSWER” is
13 0 18 4
P =
14 13 22 17
Therefore
68 39 102 59 16 13 24 7
C = AP = =
203 104 302 164 21 0 16 6
The coded message is “QVNAYQHI”
Problem
13.
Suppose we are working in the 26-letter alphabet, use the matrix
2 3
A= to decipher the message “FWMDIQ”.
7 8
The matrix corresponding to “FWMDIQ” is
5 12 8
C=
22 3 16
We have
C = AP
Therefore
14 11 5 12 8 0 19 2
P = A−1 C = =
17 10 22 3 16 19 0 10
The decoded message is “ATTACK”
133
Anil Kumar V. Number Theory
Problem 14. Suppose that we know that our adversary is using a 2 × 2 enci-
phering matrix with a 29-letter alphabet, where A–Z have the usual numerical
equivalents, blank=26, ?=27, ! =28. We receive the message
“GFPYJP X?UYXSTLADPLW, ”
and we suppose that we know that the last five letters of plaintext are our ad-
versary’s signature “KARLA.” Decipher the message
“GFPYJP X?UYXSTLADPLW ”
We have
C = AP
Therefore
3 11 0 11
=A
15 22 17 0
So −1
−1 0 11 3 11 21 19
A = =
17 0 15 22 22 18
Now
C = AP
Therefore
P = A−1 P
21 19 6 15 9 26 27 24 18 11 3 11
=
22 18 5 24 15 23 20 23 19 0 15 22
18 17 10 26 19 13 14 28 0 11
=
19 8 4 0 26 14 13 10 17 0
= “ST RIKE AT N OON !KARLA.”
134
Bibliography
135
Anil Kumar V. Number Theory
4.5 Syllabus
Semester 1
Module 1
Arithmetical functions and Dirichlet multiplication; Averages of arithmeti-
cal functions [Chapter 2: sections 2.1 to 2.14, 2.18, 2.19; Chapter 3: sections
3.1 to 3.4, 3.9 to 3.12 of Text 1]
Module 2
Some elementary theorems on the distribution of prime numbers [Chapter
4: Sections 4.1 to 4.10 of Text 1]
Module 3
Quadratic residues and quadratic reciprocity law [Chapter 9: sections 9.1 to
9.8 of Text 1] Cryptography, Public key [Chapters 3 ; Chapter 4 sections 1 and
2 of Text 2.]
136
Anil Kumar V. Number Theory
4.6 Notations
137