Unit4 2
Unit4 2
Properties of Integers
Let us denote the set of natural numbers (also called positive integers)by N and the set of
integers by Z.
The following simple rules associated with addition and multiplication of these inte-gers are
given below:
(b). Commutative law for multiplication and addition a + b = b + a and ab = ba, for all a, b ∈z.
(d). Additive identity 0 and multiplicative identity 1 a + 0 = 0 + a = a and a.1 = 1.a = a, for all a∈Z.
Definition: Let a and b be any two integers. Then a is said to be greater than b if a − b is
positive integer and it is denoted by a > b. a > b can also be denoted by b < a.
If a is divisor of b, then we will write a/b (read as a is a divisor of b). If a is divisor of b, then
(v). If a/b and a/c, then for any integers m and n, a/bm + cn.
Proof:
Now bm + cn = (aq1)m + (aq2)n = a(q1m + q2n) = aq, where q = q1m + q2n ∈ Z=> a/mb + cn.
⇒ b(1 − q2q1) = 0
q2q1 = 1 ⇒ q2 = q1 = 1 or q2 = q1 = −1
= aq1, where q1 ∈ Z.
Now, c = b − aq2 = aq1 − aq2 = a(q1 − q2) = aq, where q = q1 − q2 ∈ Z.⇒ a/c.
Common Divisor: A non-zero integer d is said to be a common divisor of integers a and b if/a and d/b.
Example:
(gcd) of a and b if
Relatively Prime: Two integers a and b are said to be relatively prime if their greatest
Note:
ax + cy = 1 ⇒ b(ax + cy) = b
⇒ by1 = 1 − ax1——————-(1)
ax2 + by2 = 1
⇒ cy2 = 1 − ax2——————-(2)
⇒ (a/d)x + (b/d)y = 1
Since d is a divisor of both a and b, a/d and b/d are both integers.
Hence (a/d,b/d) = 1.
Given integers a and d are any two integers with b > 0, there exist a unique pair of integers q
and r such that a = dq + r, 0 ≤ r < b. The integer‘s q and r are called the quotient and the
Proof:
Consider the set, S, of all numbers of the form a+nd, where n is an integer.
S = {a - nd : n is an integer}
S contains at least one nonnegative integer, because there is an integer, n, that ensures a-nd ≥0, namely
n = -|a| d makes a-nd = a+|a| d2≥ a+|a| ≥ 0.
Now, by the well-ordering principle, there is a least nonnegative element of S, which we will
call r, where r=a-nd for some n. Let q = (a-r)/d = (a-(a-nd))/d = n. To show that r < |d|,
suppose to the contrary that r ≥ |d|. In that case, either r-|d|=a-md, where m=n+1 (if d is
positive) or m=n-1 (if d is negative), and so r-|d| is an element of S that is nonnegative and
To show uniqueness, suppose there exist q,r,q',r' with 0 ≤ r,r' < |d| such that that a=qd + r and a =q'd +
r'.
Subtracting these equations gives d(q'-q) = r'-r, so d|r'-r. Since 0 ≤ r,r' < |d|, the difference r'-r
must also be smaller than d. Since d is a divisor of this difference, it follows that the
An efficient method for finding the greatest common divisor of two integers based on the
quotient and remainder technique is called the Euclidean algorithm. The following lemma
Statement: When a and b are any two integers (a > b), if r1 is the remainder when a is
divided by r2 and so on and if rk+1 = 0, then the last non-zero remainder rk is the gcd(a, b).
Proof:
Consider now, a sequence of divisions, beginning with a divided by b giving quotient q1 and
remainder b1, then b divided by b1 giving quotient q2 and remainder b2, etc.
a=bq1+b1,
b=b1q2+b2,
b1=b2q3+b3,
...
bn-2=bn-1qn+bn,
bn-1=bnqn+1
In this sequence of divisions, 0 ≤ b1 < |b|, 0 ≤ b2 < |b1|, etc., so we have the sequence
|b| > |b1| > |b2| > ... ≥ 0. Since each b is strictly smaller than the one before it, eventually one
of them will be 0. We will let bn be the last non-zero element of this sequence.
From the last equation, we see bn | bn-1, and then from this fact and the equation before it, we
see that bn | bn-2, and from the one before that, we see that bn | bn-3, etc. Following the chain
divisor of a and b. From the first equation, a-bq1=b1, we see d|b1, and from the second,
equation, b-b1q2=b2, we see d|b2, etc. Following the chain to the bottom, we see that d|bn.
Since an arbitrary common divisor of a and b divides bn, we see that bn is the greatest
289= 17.17+ 0,
r5 = 0
112= 8.14 + 0, r4 = 0
****Example: Find the gcd of 615 and 1080, and find the integers x and y such that gcd(615,1080) =
615x + 1080y.
=(−3).615 + (4).465
=(−7).615 + (4).1080
=615x + 1080y
Example: Find the gcd of 427 and 616 and express it in the form 427x + 616y.
427x + 616y = 7.
=4.49 − 189
=4.427 + (−9).189
=13.427 + (−9).616
Example: For any positive integer n, prove that the integers 8n + 3 and 5n + 2 are relatively
prime.
n = n.1 + 0.
Then a + b = k1d........(1)
and a − b = k2d..........(2)
∴ d divides 2a and 2b
∴ d divides 3a and 3b
But d cannot be 2, since 2a + b and a + 2b are not both even [when a is even and b is odd, 2a
+ b is odd and a + 2b is even; when a is odd and b is even, 2a + b is even and a + 2b is odd;
when both a and b are odd 2a + b and a + 2b are odd.] Hence d = (2a + b, a + 2b) is 1 or 3.
Let a and b be two non-zero integers. A positive integer m is said to be a least common
In other words, if a and b are positive integers, then the smallest positive integer that is
divisible by both a and b is called the least common multiple of a and b and is denoted by
lcm(a, b).
Note: If either or both of a and b are negative then lcm(a, b) is always positive.
Prime Numbers
Definition: An integer n is called prime if n > 1 and if the only positive divisors of n are 1
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97.
Theorem: Every integer n > 1 is either a prime number or a product of prime numbers.
Proof: We use induction on n. The theorem is clearly true for n = 2. Assume it is true for
every integer < n. Then if n is not prime it has a positive divisor d ≠1, d ≠n. Hence n = cd,
where c ≠n. But both c and d are < n and > 1 so each of c, d is a product of prime numbers,
hence so is n.
Theorem: Every integer n > 1 can be expressed as a product of prime factors in one way, a part from the
order of the factor.
Proof:
There are two things to be proved. Both parts of the proof will use he Well-ordering
(1) We first prove that every a > 1 can be written as a product of prime factors. (This
includes the possibility of there being only one factor in case a is prime.)
Suppose bwoc that there exists a integer a > 1 such that a cannot be written as a product of
primes.
So b and c can be written as products of prime factors (since a is the smallest positive integer than
cannot be.)
(2) Now suppose bwoc that there exists an integer a > 1 that has two different prime
factorizations, say a = p1 ··· ps = q1 ··· qt , where the pi and qj are all primes. (We allow
repetitions among the pi and qj . That way, we don‘t have to use exponents.)
Then p1| a = q1 ··· qt . Since p1 is prime, by the Lemma above, p1| qj for some j .
Since qj is prime and p1 > 1, this means that p1 = qj .
We can now cancel p1 from both sides of the equation above to get p2 ··· ps = q2 ··· qt . But
p2 ··· ps < a and by assumption a is the smallest positive integer with a non–unique prime
factorization.
It follows that s = t and that p2,...,ps are the same as q2,...,qt , except possibly in a different
order.
But since p1 = q1 as well, this is a contradition to the assumption that these were two
different factorizations.
Thus there cannot exist such an integer a with two different factorizations
Example: Find the prime factorisation of 81, 100 and 289. Solution: 81 = 3 × 3 × 3 × 3 = 34.
, where min(a, b) represents the minimum of the two numbers a and b lcm(m, n) = p1 max(a1,b1)×
p2(a2,b2)× ... × pk(a,bk) =∏(ai,bi)
Theorem: If a and b are two positive integers, then gcd(a, b).lcm(a, b) = ab.
lcm(m, n) =p1
max(a1,b1)× p2max(a2,b2)
× ... × pk max(ak,bk)
We observe that if min(ai, bi) is ai(or bi) then max(ai, bi) is bi(or ai), i = 1, 2.., n.
=p1[min(a1,1)+max(a1,b1)].p2[min(a2,b2)+max(a2b2)]...pk[min(a,b)+max(a,b)]
=p1(a+b1).p2(a2+b2)...pk(a+b)
=( p1p2a2...pk )( p1b1p2b2...pk)
=ab.
Example: Use prime factorisation to find the greatest common divisor of 18 and 30.
Example: Use prime factorisation to find the least common multiple of 119 and 544.
Solution: Prime factorisation of 119 and 544 are119 = 20× 71× 171 544 = 25× 70× 171.
(i). (231, 1575) (ii). (337500, 21600). Verify also gcd(m, n). lcm(m, n) = mn.
⇒ log3 5 = u/v , where u and v are positive integers and prime to each other.
∴3
u/v = 5
This means that the integer n > 1 is expressed as a product (or power) of prime numbers (or a
⇒√5 = u/v, where u and v are positive integers and prime to each other.
⇒u
2 = 5v
...................(1)
⇒u
2 is divisible by 5
2 = 25m2 or v
2 = 5m2
i.e., v
i.e., v = 5n..........(3)
From (2) and (3), we see that u and v have a common factor 5, which contradicts the
assumption.
∴ √5 is irrational number.
Theorem: If n > 1 is a composite integer, then there exists a prime number p such
a > 1, is either prime or by the Fundamental theorem of arithmetic, has a primefactor. In ither
Step 2: Verify whether 2 divides n. If 2 divides n, then n is not a prime. If 2 does not divides
Step 3: Find all odd primes p ≤ √n.If there is no such odd prime, then n is prime otherwise,
Step 4: Verify whether p divides n, where p is a prime obtained in step (3). If p divides n,
then n is not a prime. If p does not divide n for any odd prime p obtained in step (3),
then n is prime.
Solution: Note that 2 does not divide 113. We now find all odd primes p such that p2≤ 113.
Solution: Note that 2 does not divide 287. We now find all odd primes p such that p2≤ 287.
These primes are 3, 5, 7, 11 and 13, since 132< 287 < 1727 divides 287.
Modular Arithmetic
Congruence Relation
If a and b are integers and m is positive integer, then a is said to be congruent to b modulo m,
if m divides a − b or a − b is multiple of m. This is denoted as a≡ b(mod m)
m is called the modulus of the congruence, b is called the residue of a(mod m). If a is not
Example:
(ii). 153 ≡ −7(mod 8), since 153-(-7)=160 is divisible by 8. Thus -7 is the residue of
(iii). 24 ̸≡3(mod 5), since 24-3=21 is not divisible by 5. Thus 24 and 3 are incon-gruent module 5
Properties of Congruence
Property 1: The relation ‖Congruence modulo m‖ is an equivalence relation. i.e., for all
Proof: (i). Let a be any integer. Then a − a = 0 is divisible by any fixed positive integer m.
divisible by m ⇒ b − a is divisible by
(i). a ± c ≡ b ± c(mod m)
Proof:
Now (a ± c) − (b ± c) = a − b is divisible by m.
∴ a ± c ≡ b ± c(mod m).
∴ ac ≡ bc(mod m).
⇒ a − b= p(cm)
Property 4: If a, b, c, d are integers and m is a positive integer such that a ≡ b(mod m) and c
(ii). ac ≡ bd(mod m)
(iii). an≡ bn