Section 22.2 Sequences and Primes
Subsection 22.2.1 Primes in sequences
There is an interesting question implicit in the prime races. To legitimize doing the first prime race, we proved that there are infinitely many primes of the formsTheorem 22.2.1. Dirichlet's Theorem on Primes in an Arithmetic Progression.
If
Proof.
The proof of this theorem is far beyond the level of this text, but [E.4.6] is a standard resource for this.
xxxxxxxxxx
def _(a=8,b=7,n=100):
if gcd(a,b)!=1:
pretty_print(html("Oops! The progression won't have many primes if"))
pretty_print(html("$a$ and $b$ share a common factor!"))
else:
pretty_print(html("Primes of the form $%sx+%s$ up to $%s$:"%(a,b,n)))
for x in prime_range(n):
if x%a==b:
print(x)
Historical remark 22.2.2. Lejeune Dirichlet.
Johann Peter Gustav Lejeune Dirichlet, as his name suggests, was from a world where ethnicity and state borders were not necessarily the same. He was born into a part of Germany occupied by Napoleon, whose defeat sent it back to Prussia; as a young man, he studied and worked in Paris, but spent most of his professional career in Prussia (including Berlin and GΓΆttingen).
In addition to the theorem in this section, Dirichlet made major contributions to the solution of Fermat's Last Theorem and introduced Dirichlet Series. He also worked in fluid dynamics and trigonometric series; it was in the latter research that he introduced functions that are nowhere continuous, which eventually were determined to not be integrable under the definitions then available. Naturally, this paper was written in French, in a German journal.
Subsection 22.2.2 Sequences in primes
We can also look at the opposite question. Instead of considering whether primes exist in a given arithmetic progression, are there arithmetic progressions made of solely of primes?Question 22.2.3.
Can you get a (finite) sequence of the form
where all entries are prime?
3, 5, 7 is an arithmetic progression of length 3, where
41, 47, 53, and 59 is an arithmetic progression of length 4, where
xxxxxxxxxx
def _(p = prime_range(200), n=110):
L = [p,p+n,..p+4*n]
for z in L:
if is_prime(z):
print(z)
else:
print(factor(z))
break
Fact 22.2.4.
There is such a sequence of length 10 starting at 199, with differences of 210.
Question 22.2.5.
Can find arbitrarily long such sequences in the primes?
or under 17%. or under 8%.
xxxxxxxxxx
difference=81292139*2*3*5*7*11*13*17*19*23
start=224584605939537911
for n in [0..26]:
print(start+n*difference,is_prime(start+n*difference))
Fact 22.2.6.
A sequence of length
Definition 22.2.7.
For a prime
where the βp sharpβ or βp hashββ1β denotes
First, for some fixed
compute a large set of primes of the form keeping track of the values in question.Next, find arithmetic progressions among the values of
from your list (not the values of ).If you find a bunch of
values in a progression of the form then you've also found a progression of primes of the form