Download presentation
Presentation is loading. Please wait.
Published byClarence Eaton Modified over 9 years ago
1
Number Theory Speaker: P.H. Wu Date: 21/04/11 1
2
Outline Introduction Residue number system Chinese remainder theory Euclid’s algorithm Stern-Brocot tree Continuants Conclusion 2
3
Introduction gcd: greatest common divisor lcm: least common multiple primes: p factorial: n! module: mod module congruence: a b(mod m) Application: encryption, combination and permutation ≡ 3
4
Introduction Some primes 1.Fermat prime 2.Mersenne prime 3. 4
5
Residue number system Def: An integer x can be represented as a sequence of residue with respect to moduli that are prime to each other. Res(x) is unique if 0< x <m 1 m 2 …m r, or Res(x) = Res(x + km 1 m 2 …m r ). 5
6
Residue Number system 6 X mod 12X mod 3X mod 4 000 111 222 303 410 521 602 713 820 901 1012 1123 Nice coding system!!!
7
Residue Number system 7 X mod 12X mod 3X mod 4 000 111 222 303 410 521 602 713 820 901 1012 1123
8
Chinese remainder theory 餘數定理 Find x ? x = 2·35a+21b+15c (mod 3·5·7) 8
9
Euclid’s Algorithm 輾轉相除法 9
10
Stern-Brocot tree Binary search tree 1. 2. (n, m)=1 3. 4. 5/7 LRRL 10
11
Stern-Brocot tree Example: 11
12
Stern-Brocot tree Binary search tree 5. 12
13
Stern-Brocot tree Example: 13
14
Continuants Any positive rational number can be represented as continuants. 14
15
Continuants Continuant polynomial Example: 15
16
Continuants Continuant polynomial Example: 16
17
Relation between Euclid’s Alg. and Continuants 17
18
Relation between Euclid’s Alg. and Continuants 18
19
Relation between Stern-Brocot tree and Continuants Example: Path: 19
20
Relation between Stern-Brocot tree and Continuants 20
21
Other continuant property 1. mirror symmetry 2. more general recurrence 3. The number of terms is a Fibonacci number. 21
22
Thanks for listening!!! 22
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.