Number Theory and Its Applications (2022)
Number Theory and Its Applications (2022)
Satyabrota Kundu
Supriyo Mazumder
Levant Books
India
Dedicated to our Family Members.
First published 2022
by CRC Press
4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN
and by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
© 2022 Satyabrota Kundu and Supriyo Mazumder
CRC Press is an imprint of Informa UK Limited
The right of Satyabrota Kundu and Supriyo Mazumder to be identified as authors of this
work has been asserted in accordance with sections 77 and 78 of the Copyright, Designs
and Patents Act 1988.
All rights reserved. No part of this book may be reprinted or reproduced or utilised in any
form or by any electronic, mechanical, or other means, now known or hereafter invented,
including photocopying and recording, or in any information storage or retrieval system,
without permission in writing from the publishers.
For permission to photocopy or use material electronically from this work, access www.
copyright.com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood
Drive, Danvers, MA 01923, 978-750-8400. For works that are not available on CCC please
contact mpkbookspermissions@tandf.co.uk
Trademark notice: Product or corporate names may be trademarks or registered
trademarks, and are used only for identification and explanation without intent to infringe.
Print edition not for sale in South Asia (India, Sri Lanka, Nepal, Bangladesh, Pakistan or
Bhutan).
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library
Library of Congress Cataloging-in-Publication Data
A catalog record has been requested
ISBN: 9781032231433 (hbk)
ISBN: 9781003275947 (ebk)
DOI: 10.1201/9781003275947
Typeset in Knuth Computer Modern 10.5 pt
by Levant Books
Preface
From ancient times, number theory has always occupied the unquestioned
historical importance of the subject. Number Theory is both pure and applied
and at the same time both classical and modern. It has been the objective of
the authors for quite some time to write an accessible and inviting textbook to
number theory. Foremost, the present textbook will create an effective instru-
ment for both teaching and learning. The authors aim to integrate the richness
and beauty of the subject and at the same time the book is full of unexpected
usefulness. In the present text, the authors have worked hard to assemble many
contrasting aspects of number theory into one standard textbook.
This book is ideal for undergraduate and postgraduate level students. Cer-
tain levels of mathematical reasoning, basic algebra and real analysis are re-
quired as prerequisites to study the materials of our textbook. This textbook
is designed in such a manner that it will serve the purpose for a wide range of
readers.
Some effort has been devoted to make the first few chapters less challenging,
but gradually the chapters become more challenging. At each juncture, the
instructor has to decide how deeply to pursue a particular topic before moving
ahead to a new one.
Chapter I introduces important topics like well-ordering property, principle
of mathematical induction, Binomial theorem and many more in establishing
results to study the materials of the textbook.
Chapter II introduces the notion of divisibility, where with the help of the
Euclidean algorithm, the greatest common divisors of a set of integers are in-
troduced. Also the least common multiple and linear Diophantine equations are
discussed.
Chapter III deals with prime factorization, the fundamental theorem of arith-
metic and factorization techniques are covered.
Chapter IV introduces congruences and develops their fundamental proper-
ties. systems of linear congruences in one or more unknowns are discussed. The
Chinese remainder theorem is also developed.
Chapter V is concerned with Fermat’s Little theorem and Wilson’s theorem.
Wilson’s theorem gives a congruence for factorials. Pseudo primes, strong pseu-
doprimes and absolute pseudoprimes(Carmichael numbers) are also introduced.
Chapter VI gives a thorough discussion of the sum and number of divisors,
Möbius function and greatest integer function.
vi Number Theory and its Applications
1 Prerequisites 1
2 Theory of Divisibility 15
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2 Divisibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 20
2.4 Greatest Common Divisor . . . . . . . . . . . . . . . . . . . . . . 23
2.5 Least Common Multiple . . . . . . . . . . . . . . . . . . . . . . . 31
2.6 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 33
2.7 Linear Diophantine Equations . . . . . . . . . . . . . . . . . . . . 37
2.8 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 39
2.9 Exercises: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3 Prime Numbers 45
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.2 Primes & Fundamental Theorem of Arithmetic . . . . . . . . . . 46
3.3 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 56
3.4 Exercises: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4 Theory of Congruences 67
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.2 Congruences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
4.3 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 73
4.4 Linear Congruences . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.5 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 81
4.6 System of Linear Congruences . . . . . . . . . . . . . . . . . . . . 87
4.7 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 91
4.8 Exercises: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
viii Number Theory and its Applications
5 Fermat’s Little Theorem 95
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.2 Fermat’s Little Theorem . . . . . . . . . . . . . . . . . . . . . . . 96
5.3 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 101
5.4 Wilson’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . 106
5.5 Worked out Exercises . . . . . . . . . . . . . . . . . . . . . . . . 108
5.6 Exercises: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Bibliography 351
Index 353
1
Prerequisites
1
2 Number Theory and its Applications
subtraction and multiplication is possible. But division, the inverse operation
of multiplication is not defined on Z. In other words, if u, v are elements of Z
then uv is not always an element of Z. The set of integers plays an important
role in the study of number theory. Next we proceed with our discussion by two
important properties of natural numbers or sets of positive integers. The first
begins with a well ordering principle.
The Well-Ordering Property: Every nonempty subset A of natural numbers
has a least element. In other words, if A is a non-empty subset of N then ∃ m ∈ A
such that m ≤ a, ∀a ∈ A. In particular, N itself has the least element 1.
We now prove these two principles by taking help of each other. First we will
prove the well-ordering principle using the principle of mathematical induction.
(I)Deduction of mathematical induction by well ordering principle.
Proof. To the contrary, let A be the non empty subset of N having no least
element. Let us construct a set B of natural numbers in such a way that any
number x ∈ B is less than every member of A. Thus B = {x|x ∈ N & x < a}
for every a ∈ A. Then every member of A is either greater than or equal to each
member of B. Therefore A ∩ B = φ. Note that 1 ∈ / A, otherwise 1 will become
the least element of A. But by hypothesis A has no least element. Therefore
1 ∈ B and 1 < a for every a ∈ A.
Assume that t ∈ B. Then t < a for every a ∈ A. We assert t + 1 ∈ / B. If so,
then t + 1 be the next natural number larger than t. Then t + 1 will be the least
element of A but A does not have any least element. Hence t + 1 ∈ B. Hence by
principle of mathematical induction B ⊆ N. But A ∩ B = φ. Then N ∩ A = φ
yields A = φ, a contradiction. Therefore A must have a least element. This
completes the proof.
Prerequisites 3
(ii) P (k + 1) is true, whenever P (k) is true; then P (n) holds for all n.
Example 1.0.1. Prove that for each n ≥ 2, (n + 1)! > 2n . The inequality holds
for n = 2 since (2 + 1)! > 22 .
Solution 1.0.1. Let the inequality hold for some natural number k ≥ 2. Then
(k + 1)! > 2k . We are to prove that the inequality prevails for k + 1 ı.e. {(k +
1) + 1}! > 2k+1 . Now
Solution 1.0.3. Let P (m) : 2m + 1 < 2m be the statement, for all integers
m ≥ 3. Here for m = 3, we have 2 · 3 + 1 = 7 < 8 = 23 . Thus the statement is
true for m = 3. Hence P (3) holds. Suppose k(≥ 3) is an integer for which the
statement P (k) is true. To prove the validity of the argument of this statement
we need to show P (m) is true for m = k + 1. Now
2(k + 1) + 1 = 2k + 1 + 2
< 2k + 2[Since P (m) is true for m = k]
< 2k + 2k [since k ≥ 3]
< 2k+1 .
Solution 1.0.4. Let P (n) : n2 < 2n be the given statement for all integers
n ≥ 5. Here P (5) is true(verify!). Suppose k is a positive integer such that
k ≤ 5 and P (k) is true. We are to show P (k + 1) is true. Now
Example 1.0.5. If there is a group of 368 people in a club, then there must be
at least three people with the same birthday. The reason behind this is that the
number of possibilities of birthdays in a year is 366.
One can think that this principle is very much obvious. But this in fact would
become an useful tool once we generalize it. The statement of this generalization
is as follows:
If n objects are placed in k boxes, then there is at least one box containing
at least nk number of objects, where nk is the greatest integer not exceeding
n
k.
Another important aspect of counting techniques which can be used fre-
quently in the study of number theory is binomial theorem and it can be stated
as follows.
Theorem 1.0.4. For any two real numbers a, b and any positive integer n,
n
n
(a + b)n = an bn−r .
r=0
r
n=0 1
n=1 1 1
n=2 1 2 1
n=3 1 3 3 1
n=4 1 4 6 4 1
n=5 1 5 10 10 5 1
n=6 1 6 15 20 15 6 1
It shows that when two adjacent binomial coefficients in the triangle are added,
the binomial coefficient in the next row between these two coefficients are pro-
duced.
All the above discussions are based on integers but in our next discussion we
have highlighted those numbers which are of the form uv where u, v ∈ Z. Here v
must be nonzero, otherwise the division will not be possible. From the division
of integers, there comes the concept of decimal numbers. For example 45 = 0.8.
6 Number Theory and its Applications
2
Here we see that = 0.5 ı.e. we can cancel common multiple from both numer-
4
ator and denominator till their greatest common divisor will be 1.This extension
of set of integers leads to the notion of rational numbers, denoted by Q. Thus
any number of the form uv where u, v ∈ Z with v = 0 and gcd(u, v) = 1, is called
rational number. Actually the symbol Q comes from the German word ‘quo-
tient ’which can be translated as ‘ratio ’, appeared in Bourbaki’s Algebra(1998).
Classical greek and Indian mathematicians studied theory of national numbers,
as part of the general study of number theory. The concept of rational numbers
were from the ancient times. Those can be expressed as a ratio of two different
numbers that had no common divisors except 1. This prevalent concept which
was there over a period of time was found to be inadequate, when in 500B.C.
the Italian philosopher Hippasus proved the existence of irrational numbers. He
was also a member of group of people who were called the Pythagorean math-
ematicians. His method of finding irrational numbers involve the technique of
√
contradiction. There he had assumed that 2 is an irrational number. Then
he moved on to show that no such rational number could exist. Therefore it
should be something different. However, Pythagorus believed in the absolute-
ness of number and could not accept the existence of irrational numbers. So he
sentenced Hippasus to death by drowning. In 16th century, finally Europeans
accepted the existence of negative integers and fractional numbers. Thereby in
17th century, many mathematicians used decimal fractions with modern nota-
tions. Subsequently from 19th century onwards, the irrationals were seperated
into algebraic and transcendental part. It had remained almost dormant since
Euclid. Actually irrationals are closely associated to continued fractions, which
had received attention at the hands of Euler.
Finally we end our discussions with the two fundamental theorems.
Then r can be written as ab where gcd(a, b) = 1. Then a2 = kb2 holds. For this
positive integer k, there exists a positive integer l such that
Further,
Order Properties of R
The linear relation ‘<’ on R defined by “x < y if x, y ∈ R i.e. x is less than y”.
For the reals x, y, z, it satisfies the following properties:
The set R together with the ordered relation defined on it is said to be ordered
set. For any x ∈ R, the concept of absolute property of R is defined as
|x| = x, if x > 0
= 0, if x = 0
= −x. if x < 0.
Completeness Properties of R
Next we are going to discuss the completeness property of R. The discussion
starts with the following definition.
Example 1.0.6. Let K = {x ∈ R : 3 < x < 4}. Note that K is bounded above
and 4 is the upper bound. Also K is bounded below and 3 is the lower bound.
The last example raises the question, whether the upper bound 4 and the
lower bound 3 is greatest or least respectively. The following definition of least
upper bound and greatest lower bound will be the answer to the raised question.
1. x ≤ M, ∀ x ∈ K.
2. for arbitrary (> 0), there exists an element α ∈ K such that M − < α ≤
M.
Prerequisites 9
It is not necessary that every subset of R should have an upper bound. For
instance it can be examined that N is not bounded above and thus it has no
upper bound. Now taking help of the axiom of least upper bound, we are going
to show the existence of greatest lower bound for a non–empty bounded below
subset of R.
1. x ≥ m, ∀ x ∈ K.
2. For arbitrary (> 0), there exists an element β ∈ K such that m ≤ β <
m + .
Proof. Note that K is a non empty set, which is bounded below. Then ∃ k ∈ R
such that x ≥ k, ∀ x ∈ K. Consider K = {−x : x ∈ K}. Let y ∈ K . Then
−y ∈ K and −y ≥ K together implies y ≤ −k. This is true for all y ∈ K . This
shows K is bounded above. Then from least upper bound axiom, we obtain
M = sup K . We need to show −M = inf K. Let t ∈ K. Then −t ∈ K implies
−t ≤ M . Thus we have t ≥ −M . Let (> 0) be chosen arbitrarily. Then α ∈ K
such that
M − < α ≤ M ⇒ −M ≤ −α < −M + .
1. x ≥ m, ∀ x ∈ K.
2. for arbitrary (> 0), there exists an element β ∈ K such that m ≤ β <
m + .
Our next phase of discussion deals with the concept of functions between
two arbitrary sets. The notion of function has an paramount importance not
only in number theory. It helps to correlate between various algebraic struc-
tures. It is actually a rule of correspondence between the elements of two sets.
The idea of function was developed in the seventeenth century. During this
period mathematician Rene Descartes(1596 − 1650) used it to describe many
mathematical relationship in his book Geometry. The term function was
introduced by Gottfried Wilhelm Leibnitz(1646 − 1716), almost fifty years af-
ter the publication of Geometry. The idea was further formalized by Leonhard
Euler(1707−1783). However the present day conception of function is attributed
to Dirichlet(1805 − 1859), who in 1837 proposed the definition of a function as
10 Number Theory and its Applications
Definition 1.0.3. For two non-empty sets X and Y , a relation f from X into
Y is called a function from X into Y if
1. domain of f is set X
The concluding part of the chapter deals with the study of a special type
of real-valued function whose domain set is, in particular, a set of naturals
i.e.f : N → R, denoted by f (n) = xn where n ∈ N and xn ∈ R. In other
words, it can be interpreted as 1 → x1 , 2 → x2 , . . . and so on. Therefore, the
representation xn prevails. The set {xn : n ∈ N} is a subset of R which is said to
be the range of the sequence. For example, let us consider a function f : N → R
defined as f (n) = n+1 n
, ∀ n ∈ N. Here the sequence is { n+1 n
}n , also denoted
as { 2 , 3 , 4 , . . .}. The range set of this sequence is { n+1 : n ∈ N}. Now we are
1 2 3 n
|xn − l| < , ∀ n ≥ m.
In this case, the sequence is said to be convergent and can be written as limn→∞ xn =
l.
Proof. Let the sequence {xn } converges to l and l . Then for a pre-assigned
(> 0), ∃ m1 , m2 ∈ N such that
|xn − l| < , ∀ n ≥ m1 ,
2
and
|xn − l | < , ∀ n ≥ m2 .
2
Let m = max{m1 , m2 }. Then,
Proof. Let the sequence {xn } converges to l. Then for a pre-assigned (> 0), ∃ m
such that
If A and B be the greatest and least of the finite set {x1 , x2 , . . . , xn , . . . , l−, l+},
then B ≤ xn ≤ A ∀ n. Hence the sequence {xn } is bounded.
Note that the converse of the above theorem is not true in general. For
instance, consider the sequence {(−1)n } which is bounded but not convergent.
So, if a sequence does not converge then two possibilities may arise. Either the
sequence diverge or oscillates.
Prerequisites 13
Definition 1.0.9. A sequence {xn } is said to be divergent and diverges to +∞,
if for an arbitrary positive real number N , however large it is, ∃ m ∈ N such
that
xn > N, ∀ n ≥ m.
Also, the sequence {xn } is said to be divergent and diverges to −∞, if for an
arbitrary positive real number N , however large it is, ∃ m ∈ N such that
xn < −N, ∀ n ≥ m.
M − < xr ≤ M < M + .
Exercises:
n(n+1) 2
1. Using Mathematical induction show that 13 + 23 + · · · + n3 = 2 ,
for all positive integers n.
6. Show that in any group of n people, there are two who have an identical
number of friends within the group.