unit - 5
unit - 5
THEORY
REGULATION : 2017
n
(1)(mod p) (1)n (mod p)
r1
Fermat’s Little Theorem:
1. State and prove Fermat’s little theorem.
If p is a prime and a is any integer not divisible by p, then a 1(mod p)
p1
Proof:
Given p is a prime and a is any integer not divisible by p
When an integer is divided by p, the set of possible remainders are 0, 1, 2, 3, ...,p 1
Consider the set of integers 1 a, 2 a,3 a, ....( p 1) a ------------- (1)
Suppose ia ≡ 0(mod p), then p ia.
But p a .∙. p i, which is impossible, since i < p.
ia 0(mod p) for i = 1, 2, .. ,p 1.
So, no term of (1) is zero.
Next we prove they are all distinct
Suppose ia ≡ ja(mod p), where 1≤ i,j≤ p1.
Then (i j)a ≡ 0(mod p) p (i j) a
Since pa, pij and i, j < p i j < p.
i - j = 0 i ≡ j(mod p)
.∙. i≠ j ia ≠ ja.
This means, no two of the integers in (1) are congruent modulo p.
.∙. The least residues (or remainders) of the integers a, 2a, 3a, ...,(p l)a modulo p are the same as the
integers 1, 2, 3,... ,p 1 in some order.
So, their products are congruent modulo p.
a . 2 a ∙ 3 a ... (p l) a ≡ 1 ∙2 ∙ 3.... (p 1) (mod p)
l∙2∙3. (p l)∙ a P-1 ≡ (p l)!(mod p)
(p l)! aP-1 ≡ (p-l)!(mod p)
a P-1 ≡l(mod p) (since p (p-l))
The result ap-1 ≡ l(mod p) is equivalent to a p ≡ a (mod p).
1947
2. Find the remainder when 24 is divided by 17
Solution.
We have to find the remainder when 241947 is divided by 17.
Here a = 24, p = 17
We know 17 is a prime & 17∣24
.∙. By Fermats theorem, 24l7-1 ≡ 1(mod 17)
2416 ≡1(mod 17)
.∙. (2416)121 ≡1121(mod 17)
241936 ≡ 1(mod 17)
Now
241947 = 241936+11= 241936 .2411
242 = 576≡ -2(mod 17)
.∙. (242)2 ≡ (2)2(mod 17)
244 ≡4(mod 17)
(244)2 ≡42(mod 17)
248 ≡ 16(mod 17)
≡l(mod 17)
2411 = 248.242.24 ≡ (l)( 2). 7(mod 17)
≡ 14(mod 17)
.∙. 241947 ≡ 14(mod 17)
≡ 14(mod 17)
.∙. The remainder is 14 when 241947 is divided by 17.
Euler’s Theorem:
1. State and prove Euler’s theorem.
Let m be a positive integer and a be any integer such that (a, m) = 1.
Then a Φ (m) ≡ 1(mod m).
Proof :
Given m is a positive integer and a is any integer such that (a, m) = 1.
Let r1, r2, ...,r Φ(m) be all the positive integers < m and relatively prime to m.
Since ri rj < m, clearly ri ≠ rj (mod m) if i ≠ j
Consider the products ar1, ar2, ...,arΦ(m)
Since (a, m) = 1,ari ≠ arj (mod m) if i ≠ j
we find ar1, ar2, ...,arΦ(m) mod m are distinct.
We now prove (ari, m) = 1
For, suppose (ari, m)> 1, then let p be a prime factor of (ari, m) = d.
.∙. p a and p m
p a or p ri and p m.
If p ri and p m then, (ri,m) ≠ 1, a contradiction.
If p a and p m, then p (a, m) (a,m) 1, which is again a contradiction.
.∙. (ari∙,m) = l, i = 1,2,3, ...,Φ(m)
.∙. the Φ(m) least residues ar1, ar2, ...,arΦ(m) modulo m are distinct and relatively prime to m.
So, they are the same as integers r1, r2, ...,rΦ(m), in some order modulo m.
.∙. their product ar1 ar2 ... arΦ(m) r1 r2 ... rΦ(m) (mod m)
aΦ(m) r1 . r2,, rΦ(m) ≡ r1r2.. r Φ(m) (mod m)
Since each ri is relatively prime to m, (r1r2.. rΦ(m), m) = 1
We get a Φ(m) ≡ 1(mod m)
1040
2. Using Euler’s theorem, find the remainder when 245 is divided by 18.
Solution.
We have to find the remainder when 2451040 is divided by 18.
Here a = 245 = 5 ∙ 72 and m = 18 = 32 ∙ 2 , (a, m) = 1
Hence by Euler’s theorem,
a (m) ≡ 1(mod m) 245 (m) ≡ 1(mod m)
(18) (3 .2) (3 ). (2) 3 1 .1 6
2 2 1
2
3
But
2456 1
(mod18)
(2456 )173 1173 (mod18)
2451038 1(mod18)
2451040 24510382 24510382452
But 245 11(mod18)
2452 ≡ 112 (mod 18)
≡121 (mod 18)
≡ 13 (mod 18)
245l040 ≡ 1 ∙ 13 (mod 18)
≡ 13 (mod 18)
.∙. The remainder ek is 13 when 2451040 is divided by 18.
n p e1 e2
p ...p
If is the canonical decomposition of a positive integer n then derive the
1 2 k
The number of positive integers p and not prime to it are the various multiples of p.
e
e1
They are p, 2 p, 3p,...... ,( p ) p
The number of such numbers p
e1
( pe ) pe pe1 pe (1 1 )
p
Hence
( p ) p p p (1 )
e e e1 e 1
p
Since is a multiplicative function,
(n) ( p p ...p ) ( p )( p ) ( pe )
e e
1
e
2
e e
k 1 2 k
pe (1 1 ) pe (1 1 ) ... pe (1 1 )
1 p1 2 p2 k pk
To find (6860) :
(6860) (22 ).(5).(73 )
1 1
22 1 4.73 1 252
2 7
Euler phi function:
Let : N N be a function defined by
(1)= 1 and
for n>1 (n)=the number of positive integer ≤ n and relative prime to n.
1. Prove that Euler phi function is multiplicative:
Proof:
Let m and n be positive integers such that (m, n) = 1.
To prove (mn) = (m) (n)
Arrange the mn integers 1, 2, 3, ..., mn in m rows of n numbers each.
1 m 1 2m 1 3m 1 ... (n 1)m 1
2 m 2 2m 2 3m 2 ... (n 1)m 2
3 m 3 2m 3 3m 3 ... (n 1)m 3
: : : : : :
: : : : : :
r m r 2m r 3m r ... (n 1)m r
: : : : : :
rth row m 2m 3m 4m ... nm
Let r be a positive integer ≤ m such that (r, m) > 1.
We will now show that no element of the rth row in the array is relatively prime to mn.
Let d = (r, m). Then d r and d m d km + r for any integer k
This means d is a factor of every element in the rth row.
Thus, no element in the rth row is relatively prime to m and hence to mn if (r, m ) > 1.
In other words, the elements in the array relatively prime to mn come from the rth row
only if (r, m) = 1.
Since r < m and relatively prime to m, we find there are φ(m) such integers r and have φ(m)
such rows.
Now let us consider the rth row where (r, m) = 1.
The elements in the rth row are r, m + r, 2m + r, ..., (n-1)m + r.
When they are divided by n, the remainders are 0, 1, 2, ..., n - 1 in some order of which φ(n) arc
relatively prime to n.
Therefore, exactly φ(n) elements in the rth row are relatively prime to n and hence to mn.
Thus there are φ(m) rows containing positive integers relatively prime to mn and each row
contain φ(n) elements relatively prime to it.
Hence the array contains φ(m) φ(n) positive integers ≤ mn and relatively prime to mn.
That is φ(mn) = φ(m) φ(n).
Hence φ is multiplicative function.
e1
They are p, 2 p, 3p, ..... ,( p ) p
The number of such numbers p
e1
Hence
p p
pe e e1
n
n when n 2k
To prove that 2
Given n 2k
1 1 n
(n) (2k ) 2k 1 2k .
2 2 2
2p1 1
3. Find the primes p for which p is a square.
Solution:
2 p1 1 2
n
for some positive integer n. Then 2 1 pn
p1 2
Suppose p
Clearly both p and n must be odd.
Let p=2k+1 for some positive integer k.
Then 2 1 pn
2k 2
(2k 1) s2 2k s2 1
2p1 s 1 s 1
2 2
.
Thus p must be 3 or 7
Tau function:
Let n be a positive integer then
(n) denotes the number of positive factors of n that is (n) 1
d/n
Sigma function:
Let n be a positive integer then (n) denotes the sum of the positive factors of n that is
(n) d
d/n
Problems:
1. Evaluate (18) and (23)
Solution:
The positive divisors of 18 are 1,2,3,6,9,18 so that (18) 6
23 being a prime , has exactly two positive divisors so (23) 2
2. Evaluate (12) and (28)
Solution:
The positive divisors of 12 are 1,2,3,4,6,12 so that (12) 1 2 3 4 6 12 28
The positive divisors of 28 are 1,2,4,7,14,28 so that (28) 1 2 4 7 14 28 56