[精选]研FMIS-Ch2-TheoryofDivisibility

上传人:我**** 文档编号:185291945 上传时间:2021-07-06 格式:PPTX 页数:41 大小:421.06KB
返回 下载 相关 举报
[精选]研FMIS-Ch2-TheoryofDivisibility_第1页
第1页 / 共41页
[精选]研FMIS-Ch2-TheoryofDivisibility_第2页
第2页 / 共41页
[精选]研FMIS-Ch2-TheoryofDivisibility_第3页
第3页 / 共41页
[精选]研FMIS-Ch2-TheoryofDivisibility_第4页
第4页 / 共41页
[精选]研FMIS-Ch2-TheoryofDivisibility_第5页
第5页 / 共41页
点击查看更多>>
资源描述

《[精选]研FMIS-Ch2-TheoryofDivisibility》由会员分享,可在线阅读,更多相关《[精选]研FMIS-Ch2-TheoryofDivisibility(41页珍藏版)》请在金锄头文库上搜索。

1、有限域与计算数论 Finite Field and Computational Number Theory,张文芳 信息科学与技术学院 ,西南交通大学 2012级硕/博研究生课程,1,Zhang Wenfang Email: School of Information Science similarly, m|b. Therefore, m is a common divisor of a and b. Since d=gcd(a, b), md. Since d | a and d | b, then d|m, dm. Thus, we must have d=m.,20,Relativel

2、y prime,Definition 2.2.2. Two integers a and b are called relatively prime (互素) if gcd(a, b)=1. We say that integers a1, a2,ak are pairwise relatively prime if, whenever ij, we have gcd(ai, aj)=1.,Example 2.2.3. 91 and 111 are relatively prime, since gcd(91, 111)=1.,21,Relatively prime,Proof. If a a

3、nd b are relatively prime, so that gcd(a, b)=1, then Theorem 2.2.2 guarantees the existence of integers x and y satisfying ax+by=1. As for the converse, suppose that ax+by=1 and that gcd(a, b)=d. Since d | a and d | b , d | (ax+by), that d | 1. Thus d =1.,Theorem 2.2.3. Let a and b be integers, not

4、both zero, then a and b are relatively prime if and only if there exists integers x and y such that a x + b y = 1.,22,Relatively prime,Proof. By Theorem 2.2.2, we can write ax+by=1 for some choice of integers x and y. Multiplying this equation by c we get acx+bcy= c. Since a|ac and a|bc, it followin

5、g that a|(acx+bcy). That is a|c.,Theorem 2.2.4. If a | bc and gcd(a, b)=1, then a | c.,23,The least common multiple (LCM),Definition 2.2.3 If d is a multiple of a and also a multiple of b, then d is a common multiple of a and b. The least common multiple (lcm: 最小公倍数) of two integers a and b, is the

6、smallest common multiple of a and b. The least common multiple of a and b is denoted by lcm(a, b).,Theorem 2.2.5. If,24,The least common multiple (LCM),Theorem 2.2.6. Suppose a and b are positive integers, then,Example 2.2.3. Find gcd(240, 560) and lcm(240, 560).,25,Chapter 2 Theory of Divisibility,

7、2.1 Basic Concepts and Properties of Divisibility 2.2 Fundamental Theorem of Arithmetic 2.3 Mersenne Prime and Fermat Number 2.4 Euclids Algorithm 2.5 Continued Fraction,26,Mersenne prime,Definition 2.3.1. A number is called a Mersenne number if it is in the form of Mp=2p1, where p is a prime. If a

8、Mersenne number is a prime, then a it is called a Mersenne prime.,Example 2.3.1. The following numbers 221=3, 231=7, 251=31, 271=127, 2131=8191, 2171=131071. are all Mersenne numbers as well as Mersenne primes, but 2111 is only a Mersenne numbers, not a Mersenne primes, since 2111=2047=2389 is a com

9、posite.,27,Mersenne prime,The known Mersenne primes Mp=2p1,28,Fermat number,Definition 2.3.2. Numbers of the form,Fermat was wrong Fermat in 1640 conjectured, in a letter to Mersenne, that all Fermat number were primes after he had verified it up to n=4; but Euler in 1732 found that the fifth Fermat

10、 number is not a prime, since F5=6416700417. To date, the Fermat numbers F5, F6, F11 have been completely factored.,called Fermat number. A Fermat number is called a prime Fermat number if it is prime. A Fermat number is called a composite Fermat number if it is composite.,29,Chapter 2 Theory of Div

11、isibility,2.1 Basic Concepts and Properties of Divisibility 2.2 Fundamental Theorem of Arithmetic 2.3 Mersenne Prime and Fermat Number 2.4 Euclids Algorithm 2.5 Continued Fraction,30,2.4 Euclids Algorithm,Proof. Let X=gcd(a, b) and Y=gcd(b, r), it suffices to show X=Y. If integer c is a divisor of a

12、 and b, it follows from the equation a=bq+r and the divisibility properties that c is a divisor of r also. By the same argument, every common divisor of b and r is a divisor of a.,Theorem 2.4.1. Let a, b, q, r be integers with b 0 and 0 r b such that a = bq + r. Then gcd(a, b)=gcd(b, r).,31,2.4 Eucl

13、ids Algorithm,Then (1) gcd(a, b)=rn.,Theorem 2.4.2. Let a and b be positive integers with a b. Apply the division algorithm repeatedly as follows:,32,2.4 Euclids Algorithm,(2) Values of x and y in gcd(a, b)=ax + by = rn can be obtained by writing each ri as a linear combination of a and b. rn = rn2

14、rn1 qn1=ax + by.,33,2.4 Euclids Algorithm,Remark 2.4.1. Euclids algorithm is found in Book VII, Proposition 1 and 2 of his Elements(几何原本), but it probably wasnt his own invention. Scholars believe that the method was known up to 200 years earlier. However, it first appeared in Euclids Elements, and

15、more importantly, it is first nontrivial algorithm that has survived to this day.,Remark 2.4.2. If Euclids algorithm is applied to two positive integers a and b with a b, then the number of divisions required to find gcd(a, b) is O(log b), a polynomial-time complexity. The big-O notation is used to

16、denote the upper bound of a complexity function, i.e., f(n)=O (g(n) if there exists some constant c 0 such that f(n) cg(n).,34,2.4 Euclids Algorithm,Example 2.4.1. Use Euclids algorithm to find the gcd of 1281 and 243. Since 1281=2435+66, 243=663+45, 66=451+21, 45=212+3, 21=37+0, we have gcd(1281, 243)=3, and 3=45212=45(66 451)2 =453662 =(243663)3662 =2433 6611 =2433 (12812435)11 =24358 128111 = 1281x +243y, where x = 11, y = 58.,35,Chapter 2 Theory of Divisibility,2.1 Basic Concepts and Propert

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > PPT模板库 > PPT素材/模板

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号