euclidean algorithms etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
euclidean algorithms etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

18 Şubat 2009 Çarşamba

Öklid'in Asal Sayıların Sonsuzluğu İspatı Üzerine Yeni Bir Kanıt/A NEW PROOF OF EUCLID’S THEOREM

Filip Saidak isimli bir matematikçinin Öklid'in ispatı üzerine yaptığı modernizasyonu aşağıda görebilirsiniz.


A prime number is an integer greater than 1 that is divisible only by 1 and itself. Mathematicians have been studying primes and their properties for over twenty-three centuries. One of the very first results concerning these numbers was presumably proved by Euclid of Alexan-dria, sometime before 300 B.C. In Book IX of his legendary Elements (see [2]) we find Proposition 20, which states:

Proposition. There are infinitely many prime numbers.

Euclid’s proof (modernized). Assume to the contrary that the set P of all prime numbers is finite, say P = {p1, p2, · · · , pk} for a positive integer k. If Q := (p1 p2 · · · pk)+ 1, then gcd(Q, pi) = 1 for i = 1, 2, · · · k. Therefore Q has to have a prime factor di erent from all existing primes.

That is a contradiction.

Today many proofs of Euclid’s theorem are known. It may come as a surprise that the following almost trivial argument has not been given before:

New proof. Let n be an arbitrary positive integer greater than 1. Since n and n + 1 are consecutive integers, they must be coprime. Hence the number N2 = n(n + 1) must have at least two di erent prime factors. Similarly, since the integers n(n+1) and n(n+1)+1 are consecutive, and therefore coprime, the number N3 = n(n + 1)[n(n + 1) + 1] must have at least three di erent prime factors. This process can be continued indefinitely, so the number of primes must be infinite.

Analysis. The proof just given is conceptually even simpler than the original proof due to Euclid, since it does not use Eudoxus’s method of “reductio ad absurdum,” proof by contradiction. And unlike most other proofs of the theorem, it does not require Proposition 30 of Elements (sometimes called “Euclid’s Lemma”) that states: if p is a prime and p|ab, then either p|a or p|b. Moreover, our proof is constructive, and it gives integers with an arbitrary number of prime factors.

Remarks. In Ribenboim [4, pp.3–11] and Narkiewicz [3, pp.1–10] one finds at least a dozen di erent proofs of the classical theorem of Euclid, and many other variations of the arguments listed in [1], [3], and [4] have been published over the years (in chronological order) by: Goldbach (1730), Euler (1737 and 1762), Kummer (1878), Perott (1881), Stieltjes (1890), Thue (1897), Brocard (1915), P´ olya (1921), Erd¨ os (1938), Bell-man (1947), F¨ urstenberg (1955), Barnes (1976), Washington (1980), and others. Goldbach’s proof (see [4], p.4), which uses pairwise copri-mality of Fermat numbers, seems to be closest in spirit to the argument we have presented.

ACKNOWLEDGMENTS. Personal and virtual conversations with Professors Paulo Ribenboim (Queen’s University) and Eduard Kos-tolansky (Bratislava) are gratefully acknowledged. I would also like to thank Professor Wladyslaw Narkiewicz (Wroclaw) for bringing to my attention Hermite’s very simple proof concerning n! + 1.

References

[1] M. Aigner and G. M. & Ziegler, Proofs from THE BOOK, Springer-Verlag, Berlin,

1999

[2] T. L. Heath,The Thirteen Books of Euclid’s Elements, vol. 2, University Press, Cambridge, 1908; 2nd ed. reprinted by Dover, New York, 1956.

[3] W. Narkiewicz, The Development of Prime Number Theory, Springer-Verlag, New

York, 2000

[4] P. Ribenboim, The New Book of Prime Number Records, Springer-Verlag, New York,

1996

13 Şubat 2009 Cuma

Euclid in (Öklid) Asal Sayıların Sonsuzluğuna Dair İspatı

Öklid’in Asal Sayıların Sonsuzluğuna Dair İspatı : “Sonsuz tane asal sayı vardır.”

İspat : Kabul edelim ki , bütün asal sayıların kümesi {p1,p2,…,pn} olsun.

M=(p1.p2…..pn + 1) tamsayısının en az bir asal böleni vardır.(Her tamsayının en az bir asal böleni olduğunu kolayca ispatlayabiliriz.).Bu asal bölen p olsun.

Yani, p | M dir.

p Є {p1,p2,…,pn} olduğundan p | p1.p2…..pn ve p | M olduğundan p | p1.p2…..pn + 1 olacaktır.

=>p | p1.p2…..pn ve p | 1

=>p | 1 çelişkidir.O halde asal sayıların sayısı sonsuzdur.

Euclid (Öklid) Bölme Algoritması Yardımıyla En Büyük Ortak Böleni Hesaplama

ebob(341,527)=?


341=0.527+1.341
527=1.341+1.186
341=1.186+1.155
186=1.155+1.31
155=5.31+0

=>ebob(341,527)=31 dir.

Ayrıca, 31=1.186-1.155
=186-(341-186)
=2.186-1.341
=2.(527-341)-341
=2.527-3.341 dır.Yani bu algoritma sayesinde, 31 i 527 ve 341 in lineer toplamı olarak da yazabiliyoruz.


11 Şubat 2009 Çarşamba

2.1.2 Euclidean Algorithms 2

Theorem 2.1.7 If a and b are positive integers with a>b, then gcd(a, b)=gcd(b, a mod b).

The Euclidean algorithm consists of performing the following sequence of divisions Then



the greatest common divisor will be

gcd(a, b)=gcd(b, r1)=gcd(r2,r1)=···= gcd(rn, 0) = rn.

Hence, it follows that gcd(a, b)=rn.




Theorem 2.1.8 The above algorithm has a running time of O ((ln n)^2) bit operations.

The Euclidean algorithm can be extended so that it not only yields the greatest common

divisor d of two integers a and b, but also integers x and y satisfying ax + by = d.



Theorem 2.1.9 Extended Euclidean algorithm has running time of O((ln n)2) bits op-

erations.

Since the Euclidean algorithm computes the greatest common divisors, it can be used

to determine if a positive integer a modulo n. However it does not compute the value of the multiplicative inverse.



2.1.2 Euclidean Algorithms


2.1.2 Euclidean Algorithms

Let a and b be non-negative integers, each less than or equal to n. The number of bits

in binary representation of n is ln n + 1, and this number is approximated by ln n. The

number of bit operations for the four basic integer operations of addition , subtraction,

multiplication, and division using classical algorithms is summarized in Table 2.1.

Note

that, the above equations about the bit operations are well-known statements which

furture proofs and informaition can be found in references given in [1,2]. The other way

to write the above equations is as following. The notation T ime(A) denotes the number

of bit operations for the job needed in A.

T ime(a + b)=O (log(max(a, b))), bit operations, where a, b Є Z.

T ime(a × b)=O(log a log b), bit operations, where a, b Є Z.

T ime(a/b)=O(log a log b), bit operations, where a, b Є Z.

T ime( √a)=O(log3 a), bit operations, where a Є Z.

T ime(g^a mod b)=O(log a log^2b), where a, b Є Z, for some fixed integer g .

For computing the greatest common divisor of two integers the most e cient algorithm

is the Euclidean Algorithm which is based on the following simple fact.