4.3 Primes and Greatest Common Divisors Flashcards
What is prime and composite:
Whats 1?
Verify composite:
An integer p greater than 1 is called prime if the only positive factors of p are 1 and p.
A positive integer that is greater than 1 and is not prime is called composite.
The integer 1 is not prime, because it has only one positive factor.
Note also that an integer n is composite if and only if there exists an integer a such that a ∣ n and 1 < a < n.
THE FUNDAMENTAL THEOREM OF ARITHMETIC:
Every integer greater than 1
can be written uniquely as a prime or as the product of two or more primes, where the prime
factors are written in order of nondecreasing size.
Theorem 2:
Show given integer is prime:
Prove it:
Its application in the book?
If n is a composite integer, then n has a prime divisor less than or equal to √n
-it follows that an integer is prime if it is not divisible by any prime less
than or equal to its square root.
1 < a < n n = ab If a > √n and b > √n, then ab > √n ⋅√n = n, which is a contradiction. Consequently, a ≤ √n or b ≤ √n.
Brute Force Algo, Trial Division.
Prime Factorisation of n:
Begin by dividing n by successive primes, starting with the smallest prime, 2. If n has a prime
factor, then by Theorem 3 a prime factor p not exceeding √n will be found. So, if no prime factor
not exceeding √n is found, then n is prime. Otherwise, if a prime factor p is found, continue
by factoring n∕p. Note that n∕p has no prime factors less than p. Again, if n∕p has no prime
factor greater than or equal to p and not exceeding its square root, then it is prime. Otherwise,
if it has a prime factor q, continue by factoring n∕(pq). This procedure is continued until the
factorization has been reduced to a prime.
7007 = 7 ⋅ 1001 = 7 ⋅ 7 ⋅ 143 = 7 ⋅ 7 ⋅ 11 ⋅ 13
The sieve of Eratosthenes:
The sieve of Eratosthenes is used to find all primes not exceeding a specified positive integer.
For instance, n = 100.
Note that composite integers not exceeding 100 must have a prime factor not exceeding 10.
Because the only primes less than 10 are 2, 3, 5, and 7, the primes not exceeding 100 are these
four primes and those positive integers greater than 1 and not exceeding 100 that are divisible
by none of 2, 3, 5, or 7.
List 1 - 100.
To begin the sieving process, the integers
that are divisible by 2, other than 2, are deleted.
3 next largest number left, similar process with 3. then by 5,7.
All remaining integers except 1 are prime now.
Theorem 3:
Cardinality of Primes ?
prove it
There are infinitely many primes.
Proof by contradiction.
Mersenne primes:
There is an ongoing quest to discover larger and larger prime numbers; for almost all the last 300 years, the largest prime known has been an integer of the special form
2^p − 1, where p is also prime. (Note that 2^n − 1 cannot be prime when n is not prime).
The reason that the largest known prime has usually been a Mersenne prime is that there is an extremely efficient test, known as the Lucas–
Lehmer test, for determining whether 2^p − 1 is prime. Furthermore, it is not currently possible
to test numbers not of this or certain other special forms anywhere near as quickly to determine
whether they are prime.
THE DISTRIBUTION OF PRIMES
THE PRIME NUMBER THEOREM:
The ratio of 𝜋(x), the number of primes not exceeding x, and x∕ ln x approaches 1 as x grows without bound. (Here ln x is the natural logarithm
of x.)
The prime number
theorem tells us that the number of primes not exceeding x can be approximated by x∕ ln x.
the odds that a randomly selected positive integer less than n is prime are:
(n∕ ln n)∕n
= 1∕ ln n.
bit operations to determine whether a positive integer n is prime?
O((log n)^6) bit operations to determine whether a positive integer n is prime.
Cunningham numbers:
There is a communal effort on
the Internet to factor large numbers, especially those of the special form k^n ± 1, where k is a
small positive integer and n is a large positive integer (such numbers are called Cunningham
numbers). At any given time, there is a list of the “Ten Most Wanted” large numbers of this type
awaiting factorization.
PRIMES AND ARITHMETIC PROGRESSIONS
Every odd integer is in one of the two arithmetic progressions 4k + 1 or 4k + 3, k = 1, 2, …. Because we know that there are infinitely
many primes, we can ask whether there are infinitely many primes in both of these arithmetic
progressions?
Every arithmetic progression ak + b, k = 1, 2, …, where a and b have no common factor greater than one, contains infinitely many primes.
Proved by Drichilet, proof is out of scope.
Are there long arithmetic progressions made up of just primes?
In the 1930s, the legendary and
prolific mathematician Paul Erdos conjectured that for
every positive integer n greater than two,
there is an arithmetic progression of length n made up entirely of primes.
In 2006, Ben Green and Terence Tao were able to prove this conjecture. Their proof, considered to be a mathematical
tour de force, is a nonconstructive proof that combines powerful ideas from several advanced
areas of mathematics.
Goldbach’s Conjecture:
We know its true for how many?
In the process of proving it we established what?
The conjecture that every even integer n, n > 2,
is the sum of two primes.
checked for all positive even integers up to
4 ⋅ 10^18.
In the process of proving it we established the following:
- every even integer greater than 2 is the sum of at most six primes
(proved in 1995 by O. Ramare) and
- that every sufficiently large positive integer is the sum of a prime and a number that is either prime or the product of two primes (proved in 1966 by J. R.
Chen).
There are many conjectures asserting that there are infinitely many primes of certain special
forms
A conjecture of this sort is the conjecture that there are infinitely many primes of the
form n^2 + 1, where n is a positive integer. For example, 5 = 2^2 + 1, 17 = 4^2 + 1, 37 = 6^2 + 1, and so on. The best result currently known is that there are infinitely many positive integers n
such that n^2 + 1 is prime or the product of at most two primes (proved by Henryk Iwaniec in 1973
using advanced techniques from analytic number theory, far beyond the scope of this book).