Modular Arithmetic
Modular Arithmetic
1
Exercise - 1
Type 1:
Sr. no. Questions Answers
Type-A Evaluate the given Problem:
I) 27 (Mod 12) 03
II) 490 (Mod 31) 25
III) 324 (Mod 25) 24
IV) 6720(Mod 17) 05
V) 14641 (Mod 54) 07
VI) 6561 (Mod 100) 61
Type-B Evaluate the given Problem:
I) -41 (Mod 11) 03
II) -13 (Mod 5) 03
III) -115 (Mod 20) 05
IV) -1000(Mod 15) 05
V) -1000 (Mod 17) 03
Type-C Evaluate the given Problem:
I) 11 (Mod 15) 11
II) 17 (Mod 25) 17
III) 23 (Mod 30) 23
IV) 2 (Mod 5) 02
V) 3 (Mod 10) 03
Type-D Evaluate the given Problem:
I) -2 (Mod 5) 03
II) -8 (Mod 13) 05
III) -4 (Mod 17) 13
IV) -5 (Mod 20) 15
V) -13 (Mod 17) 04
Type-E Verify the given Congruence:
I) 53 ≡ 8 (mod 9) -
II) 54 ≡ 10 (mod 4) -
III) 17 ≡ -1 (mod 6) -
IV) 52 ≡ -13 (mod 5) -
V) -41 ≡ 14 (mod 11) -
Type-F Evaluate the Following
I) Find the least positive residue of Modulo 13
a)1001 b)-1000 0,1
II) Find the least positive residue of Modulo 17
a)115 b)-115 13,04
2
Type 2: Find ‘m’ for given congruence.
Sr no. Questions Answers
1. 223 ≡ 103 (mod m) 1,2,3,4,5,6,8,10,12,15,20,24,30,40,60,120
2. 1331 ≡ 0 (mod m) 1,11,121,1331
3. 61 ≡ 33 (mod m) 1,2,4,7,14,28
4. 171 ≡ 111 (mod m) 1,2,3,4,5,6,10,12,15,20,30,60
5. 1 ≡ 1000 (mod m) 1,3,9,27,37,111,333,999
Type 3:
1. If a = 11, b = 15 and m = 8 then verify commutative law and association law.
2. If a = 27, b = 23 and m = 11 then verify commutative law and association law.
19.
( 1598
47 47 )
,
987 1
20.
( 112
16 16 )
,
144 1
Exercise-2:
3
Type 1:
Type 2:
Sr. no. Questions Answers
1 Find the inverse of
I) 4(mod 9) 7
II) 27(mod 392) 363
2 Evaluate
I) Find 19-1 (mod 141) 52
II) Find 306-1 (mod 47) 2
4
3 Find x such that
I) 19x ≡ 1 (mod 141) 52
II) 6x ≡ 1 (mod 9) Not exist
4 Solve the following congruence of ‘x’
I) 32x ≡ 1 (mod 17) 8
II) 17x ≡ 1 (mod 32) 17
III) 333x ≡ 1 (mod 77) 37
IV) 47x ≡ 1 (mod 34) 21
Type 4:
Type-A
1. Find ‘x’ using Chinese remainder theorem
x ≡ 2 mod 3 X=23
x ≡ 3 mod 5
x ≡ 2 mod 7
2. Solve the congruence using Chinese remainder theorem
x ≡ 1 mod 5 X =206
5
x ≡ 2 mod 6
x ≡ 3 mod 7
3. Solve the simultaneous congruence
x ≡ 1 mod 2 X = 53
x ≡ 2 mod 3
x ≡ 3 mod 5
x ≡ 4 mod 7
4. Solve the simultaneous congruence
x ≡ 4 mod 4 X=1100
x ≡ 5 mod 5
x ≡ 8 mod 7
x ≡ 2 mod 9
5. Find the solution of simultaneous congruence
x ≡ 2 mod 11 X = 150990
x ≡ 3 mod 12
x ≡ 4 mod 13
x ≡ 5 mod 17
x ≡ 6 mod 19
Type-B
1. Find the positive integers which leaves remainder 1 if X = 52
divided by 3 ; remainder 2 if divided by 5 and remainder 3 if
divided by 7
2. A gang of 17 thieves stole a sack of gold biscuits. When they 3930
tried to divide the loot into equal parts three biscuits
remained. There was fight among them to get that extra
biscuit in which one thief got killed. They tried to divide the
wealth into equal parts in which 10 biscuits remained. Again
one thief was killed in the fight among them. The wealth
now got distributed among the survivors, this time they
were successful in making equal distribution with no extra
biscuits. How many biscuits were there in the sack?
3. There are some eggs in a bucket. If they removed from it 119
picking two at a time one remains in the bucket. If they are
removed three at a time two remains in the bucket, if they
are removed 5 at a time 4 remains. No egg remains if we
remove them in a group of 7. What is the smallest no. of
eggs in the bucket?
Exercise-3:
6
Type 1:
Sr. no Question Answer
41
1. Calculate 5 mod 9 2
2. Calculate 835 mod 11 10
3. Find the remainder when 7 divides 250 4
4. Find the remainder when 7 divides 4165 6
5. Prove that 89|244 - 1 -
6. Prove that 97|248 - 1 -
7. Prove that 39 divides 53103 + 10353 -
Exercise no-4
Type-1:
8
Sr. no. Question Answer
1. Generate prime numbers between 1 - 20 8
2. Generate prime numbers between 1 - 30 10
Type-2:
Check whether the given numbers are prime or composite numbers. If it is
composite number, then find its prime factor.
Type 3:
Type 4:
9
Sr. no. Question Answer
10
Type-A Find Legendre symbol value
I) a = 2, m = 5 -1
II) a = 29, m = 5 1
III) a = 4, m = 11 1
IV) a = 10, m = 5 0
Type-B Evaluate the given problems.
I)
( 27 ) 1
II)
( 132 ) -1
III)
( 117 ) -1
IV)
( 1113 ) -1
V)
( 133 ) 1
VI)
( 114 ) 1
VII)
( 134 ) 1
VIII)
( 139 ) 1
IX)
( 138 ) -1
X)
( 1013 ) 1
XI)
( 1213 ) 1
XII)
( 1272
43 )
1
11
XIII)
( 3197 ) 1
XIV)
( 530
193 )
1
II)
( 1321 ) -1
III)
( 1135 ) 1
IV)
( 752 ) -1
V)
( 215 ) -1
II)
( 2663
3299 )
-1
III)
( 109
385 )
-1
IV)
( 1099
631
) 1
12