You are on page 1of 12

exponSrons

6
6ase 6
Algovtfhm o construetinq
yOCe dusa 6as b expansrovnspasitive inTeges)

whle I/o

beg'n
a 9 mo d 6

k
end Th base 6 e2pansfon o
n s (aK-I

The Euclidean Algor tm.

L a- bq+1, »hse ab an

then ged (a,b)- ge d.(6:)


22 loxr+12ged
a
0 2x5 4+ lo
(22,10)
X
Cp
4144 an d 6G

4 6G2 4 1 4 + 246 ged Cc644)

44 248 + 66 ged Cql, 246)


248 T66x 1 4 8u
ged C164, e )
L6 s2x 2 + 2

2 2X4to. gcd lezn)

Aprlieatrons o Numbs Theor


h-
a nd 6
a positivfitegiss hen
eiists tntege«s 3 antt. Such hat
her
acdCa6) sa + t6.
2 -66 2t-

1 6 6 -8 2 2
2

L66 2x(24¬ - 166)


224& +3(x t66)

2 x 146 t 3 C4l4
-

248)
3x4l 5x248
3x4l4-5(662-4l 4)
3414-Sx66
2
GcD 25 and 18
8 S4-36.
252 a8xIt 54
18 54 *3+ 36 5 - 1 6 3.5
e-/18 t454
5436x +t8
36 l6 *2 GeD : -19« Fyl252.

: 4 252 S.

61
Find Greo o 34 and 69 G8

$ 34x 2 2
3
34 2ixlt. 113
21 13xt S" 3 2x

t3 8 x I 5
3 t (5-3)
5 x t1t3 I 3 C5 (s-5) -

5 3x | + 2 353-3-8 +S
32x + Ge? 3-6

3- (2- 15)
3-(21-(34-2)

31-344 AM
3 2«1
3 3y
3 - (5-3) 3-
3 S+3

23 5

2 3 -S -5+2(8-5)
3 t t 3 - 8 )
3 x 5 t 2x8

2 -3x (21- 8) 2*8S


2 sx8-3x2
GCD to an d

4610 lot45 t(t9,


S4)
ol 5x (
178) 3526 v2 +(3)
2 23 l + ,
z3 3xt +

3 2 2<I t1 Guo

s-
Ge Lot 3-E
3(13-3*))

3-233*

2
83 23i

Sk(25-23x)-2
826. *23
82S
26 2

K26,-*7S +
8r2
8

26Y1ot- 15)-?x95
2 6l o - 2 6 * + 5 - R « 7 S

2 wlo-35**5

24 35 C46 20- lot,x 45)


lel-

+1olx 45 y 35
26 xl6l 35 4t 20-

6 tol-35r4BLO L5S
modulo m.

Ftnd an inv

(o a 4 m9
Y
4t2-8

4r imod 28 I 29

mod )
imoda lmod)
t'eg.
whd 06 soln Lin in &a conqruent

9)
3 E4 (med
nverse o 3 mod t
3 s'4lmod *
3x (mod 1/
3'4(mo d )
e5 mod t) xS 3 one
Sol.

x10mad
G3,20
4 3 (mod )
44 43 (mod )
' s Cmod )
iy ned t)
2x3 (mod +)
6 mo d a) ke

whot ase Soln inear Con3eqLence 3-

34 a(mod s8)

3 34E 3.77 (mod sa)


3 4 (med 3)
Colculatee iny 34 modulo 8q
34 EICmod ca)
CcD 3 4 89)
8 9 3 4X2+
3 2|
34 21x| + 3

13xl +&
3-Cs3.1)
21
542 3
13 Se I + S
8 Sl +3 u-54 2 (< - 5. 1)
53x f2 t2.8 3.S
'22. 3 (13 - s.1
23.13 +5.8
3.13 t5 (21- 13.)
5 2 -8 x3
8 Y 3 4 +13( 9-34x1)
5. 2 - 8 34 - y1)
13xs9( 343y
-634 f 3*2
-31y

s1)
- 3 4 . *7Cmo d
2i8 (mod 39)- -
2e L8: 8q*C
451
52(mo d

Find octrent and ematnduy when


-1s dvided by

0ERL24

The ehinese Rmaindes Theorem.

s s used to Solve sysfem o congruT


Congruent

equatrons olth one vastabl but dolsent


moduli ohtch as e
selatwy psime

amod mi) d mt m;): 1


a m o d m)

a z Cmod m3

C.R.T states thaE a6ove equatto n


has untque Soln
aaINl\M, '+ azM,M+a3 Mz M3'.)mod
wnese NL+ m m m3

M NM M M
M2 M3
m m3

x 2mod )
(mo d 4)
: 3 Cmod s)
.

az-3
m 3 m 4 ng'$

M 60
M 20 N t5 M 12

To nd M 45-1 44
2xKI3tmed
20 Mtmod (3) 15MTî
3
d Ca
I mod (3) M 3 N33
20 2

3D: Imod C)
M7

2.(ao).2)
2 4 (1s) (3) + 3 (12)*3

mod I

233 mod (co) 53


1 2 mod 3
3 mod 5

2 mod
Q 2 a 3
a3
m 3
3

Mimrmvm3 loS

o5 35 M21, M3 :
Is
3

Lres 6/ ol
M3
35.M(hod 3) 21.M I mod s ) sM1bnd
35 x 1 I mod 33
2/* mo d l5
o mod 3 Sl mod
Mi':
M

(a 5) (o)1,)G).
(215r 1)
imeM
746 463 t30mo 105
233 mod l65

23
Fesmat H l Theorem
an iileges n6t
ah d a 1s
P s pime
dvistble by P hen ,

when geda p) :1 af mo d P)
Futhes moveo evaxy integer a
a : a Cmod P)

Find 2mod
P:Sa

imod i -(

22 22*lo + ,(alo.7
0 4 (mod 1
.5 5

mod tI S

6: 8(mod 1)
a S mo d (ia)
S: Smod (7
a) CSalmod 19) 'a6mod. M,
c e d mod m
S a 5 mod (
atc 64 d Cmod m)
2S mod 17
Sa ac 6 (mod m)
c 25 mod 17 +) c> 8
a 6 ( m o
d L-)
e)c
17
3 6 mod t

63- 9 mod 1

a 65'ts*mod t

c5t8 tmod 1)
c 63 mod

Q
disprove hat herr a fh
nfrove a

consecule oddd that aa s e


posfTive rnteges, That
pvime

4 Only one set- 35,

o) Prove thaf thproduet o an hree


3 divisibl y 6
6.
Con3ecultv integers
nntl,n+

4 n : 3p, pt 7ns divsi6le


by 3 nia1
n:3pt n ent2
+2 1s divisible div y
oy3
n:2qt t, n4t B
n: 3pt 2n t1, b dvisib l 6y div 6y 2

n n4t)nt 1)
ntn+1) ni2) 1s
drus 6la
Solurng Loneas (eus

Theovem! Disttnet oots


heorem Same Rosts
gven an 6an-i 7an-

3 3

(-3)3(Y- 3):o
3,3
2
(o).
*, 3° +*2
ao ? .
grve
ven
a6 5

Theovem}

You might also like