Number Theory Revision Notes
Number Theory Revision Notes
Number Theory Revision Notes
DIVISIBILITY
Let a and b be any two integers where a≠0. If there exists an integer k such that a =
bk then we say that b divides a and we write it as b|a. Here the
symbol | denotes divides.
So, we have b|a if and only if a=bk for some integer k.
b|a means b divides a or b is a factor of a or a is a multiple of b.
Similarly we can write a|b if and only if b=ak for some integer k.
a|b means a divides b or a is a factor of b or b is a multiple of a.
Divisibility Rule of 1
Every number is divisible by 1. Divisibility rule for 1 doesn’t have any condition. Any number
divided by 1 will give the number itself, irrespective of how large the number is. For example, 3
is divisible by 1 and 3000 is also divisible by 1 completely.
Divisibility Rule of 2
If a number is even or a number whose last digit is an even number i.e. 2,4,6,8 including 0, it is
always completely divisible by 2.
Example: 508 is an even number and is divisible by 2 but 509 is not an even number, hence it is
not divisible by 2. Procedure to check whether 508 is divisible by 2 or not is as follows:
Consider a number, 308. To check whether 308 is divisible by 3 or not, take sum of the digits
(i.e. 3+0+8= 11). Now check whether the sum is divisible by 3 or not. If the sum is a multiple of
3, then the original number is also divisible by 3. Here, since 11 is not divisible by 3, 308 is also
not divisible by 3.
Similarly, 516 is divisible by 3 completely as the sum of its digits i.e. 5+1+6=12, is a multiple of 3.
Divisibility Rule of 4
If the last two digits of a number are divisible by 4, then that number is a multiple of 4 and is
divisible by 4 completely.
Example: Take the number 2308. Consider the last two digits i.e. 08. As 08 is divisible by 4, the
original number 2308 is also divisible by 4.
Divisibility Rule of 5
Numbers, which last with digits, 0 or 5 are always divisible by 5.
Example: 10, 10000, 10000005, 595, 396524850, etc.
Divisibility Rule of 6
Numbers which are divisible by both 2 and 3 are divisible by 6. That is, if the last digit of the
given number is even and the sum of its digits is a multiple of 3, then the given number is also a
multiple of 6.
From the rule stated remove 3 from the number and double it, which becomes 6.
Remaining number becomes 107, so 107-6 = 101.
Repeating the process one more time, we have 1 x 2 = 2.
Remaining number 10 – 2 = 8.
As 8 is not divisible by 7, hence the number 1073 is not divisible by 7.
Divisibility Rule of 8
If the last three digits of a number are divisible by 8, then the number is completely divisible by
8.
Example: Take number 24344. Consider the last two digits i.e. 344. As 344 is divisible by 8, the
original number 24344 is also divisible by 8.
Divisibility Rule of 9
The rule for divisibility by 9 is similar to divisibility rule for 3. That is, if the sum of digits of the
number is divisible by 9, then the number itself is divisible by 9.
Example: Consider 78532, as the sum of its digits (7+8+5+3+2) is 25, which is not divisible by 9,
hence 78532 is not divisible by 9.
Divisibility Rule of 10
Divisibility rule for 10 states that any number whose last digit is 0, is divisible by 10.
i.e., Sum of digits in odd places – Sum of digits in even places = 0 or a multiple of 11
In order to check whether a number like 2143 is divisible by 11, below is the following
procedure.
Group the alternative digits i.e. digits which are in odd places together and digits in even
places together. Here 24 and 13 are two groups.
Take the sum of the digits of each group i.e. 2+4=6 and 1+3= 4
Now find the difference of the sums; 6-4=2
If the difference is divisible by 11, then the original number is also divisible by 11. Here 2
is the difference which is not divisible by 11.
Therefore, 2143 is not divisible by 11.
A few more conditions are there to test the divisibility of a number by 11. They are explained
here with the help of examples:
If the number of digits of a number is even, then add the first digit and subtract the last digit
from the rest of the number.
Example: 3784
Number of digits = 4
Now, 78 + 3 – 4 = 77 = 7 × 11
If the number of digits of a number is odd, then subtract the first and the last digits from the
rest of the number.
Example: 82907
Number of digits = 5
Form the groups of two digits from the right end digit to the left end of the number and add the
resultant groups. If the sum is a multiple of 11, then the number is divisible by 11.
253 := 2 + 53 = 55 = 5 × 11
Subtract the last digit of the number from the rest of the number. If the resultant value is a
multiple of 11, then the original number will be divisible by 11.
Example: 9647
957 := 95 – 7 = 88 = 8 × 11
Divisibility Rule of 12
If the number is divisible by both 3 and 4, then the number is divisible by 12 exactly.
Example: 5864
The given number 5864 is divisible by 4 but not by 3; hence, it is not divisible by 12.
→ 279 + (20)
→ 299
→ 29 + (9 x 4)
→ 29 + 36
→65
Properties of divisibility:
1) For any two integers a and b, a|b and b|a => a=±b.
2) Transitive property: If a|b and b|c then a|c.
3) If a|b and a|c then i) a|(b+c) ii) a|(b-c) iii) a|bc.
4) If a|b and x is any integer then a|bx
5) If a|b and c|d then ac|bd
6) If ac|bc then a|b.
Division algorithm:
In a normal division, it is known that the dividend can be written as the sum of the remainder
and the product of divisor and quotient. The same thing is defined as division algorithm and is
mathematically defined as follows.
“For any two integers a and b, there exists integers q and r such that a=bq+r, where 0≤r<b.”
15/5 = 3
10/5 = 2
If a and b are two numbers then the greatest common divisor of both the numbers is denoted
by gcd(a, b).
Prime Numbers:- A prime number is a positive integer having exactly two factors, i.e. 1 and the
number itself. If p is a prime, then its only factors are necessarily 1 and p itself
Some of the properties of prime numbers are listed below:
Every number greater than 1 can be divided by at least one prime number.
Every even positive integer greater than 2 can be expressed as the sum of two primes.
Except 2, all other prime numbers are odd. In other words, we can say that 2 is the only
even prime number.
Two prime numbers are always coprime to each other.
Each composite number can be factored into prime factors and individually all of these
are unique in nature.
Fundamental Theorem of Arithmetic
It states that every integer greater than 1 is either a prime number or can be expressed in the
form of primes. In other words, all the natural numbers can be expressed in the form of the
product of its prime factors
α1 α2 α3 α
n=p 1 p2 p 3 ⋯ p n
CONGURENCE
If a and b are two integers and n is positive integer , then a is said to be congruent modulo n, if
n divides (a-b)
It is denoted by a ≡ b ( modn )
Properties
Reflexivity: a ≡ a (mod m)
Symmetry: a ≡ b (mod m) if b ≡ a (mod m).
Transitivity: If a ≡ b (mod m) and b ≡ c (mod m), then a ≡ c (mod m)
If a1 ≡ b1 (mod m) and a2 ≡ b2 (mod m), or if a ≡ b (mod m), then:[1]
It states that if p is a prime number, then for any integer a, the number a p – a is an
integer multiple of p.
ap ≡ a (mod p).
If a is not divisible by p, Fermat’s little theorem is equivalent to the statement that a p-1-
1 is an integer multiple of p.
ap-1 ≡ 1 (mod p)
Euler’s Function
The Euler's totient function φ for integer m is defined as the number of positive integers
not greater than and coprime to m. A few first values: φ(1) = 1, φ(2) = 1, φ(3) = 2, φ(4) =
2, φ(5) = 4, φ(6) = 2, φ(7) = 6, = φ(9) = 6, φ(10) = 4, φ(11) = 10, φ(12) = 4, φ(13) = 12, etc
α α α α
If n=p 1 p2 p 3 ⋯ p n
1 2 3
(
ϕ ( n )=n 1−
1
p1)(
1−
1
p2
1−
)(
1
p3
…
)
Euler's Theorem
Let a and m be coprime. Then aφ(m) = 1 (mod m)
IMPORTANT PROPERTIES: -
[ ]
n
m
where [ ⋅ ] denotes GIF
[ ][ ][ ]
+¿ ⋯ ¿
n n n
+ 2 + 3
p p p