Professional Documents
Culture Documents
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
L a- bq+1, »hse ab an
1 6 6 -8 2 2
2
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
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
+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
34 a(mod s8)
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
0ERL24
a z Cmod 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
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
n n4t)nt 1)
ntn+1) ni2) 1s
drus 6la
Solurng Loneas (eus
3 3
(-3)3(Y- 3):o
3,3
2
(o).
*, 3° +*2
ao ? .
grve
ven
a6 5
Theovem}