In number theory, Dirichlet's theorem, also called the Dirichlet prime number theorem, states that for any two positive coprime integers a and d, there are infinitely many primes of the form a + nd, where n is also a positive integer. In other words, there are infinitely many primes that are congruent to a modulo d. The numbers of the form a + nd form an arithmetic progression
a, a+d, a+2d, a+3d, …, and Dirichlet's theorem states that this sequence contains infinitely many prime numbers. The theorem extends Euclid's theorem that there are infinitely many prime numbers (of the form 1 + 2n). Stronger forms of Dirichlet's theorem state that for any such arithmetic progression, the sum of the reciprocals of the prime numbers in the progression diverges and that different such arithmetic progressions with the same modulus have approximately the same proportions of primes. Equivalently, the primes are evenly distributed (asymptotically) among the congruence classes modulo d containing a coprime to d. The theorem is named after the German mathematician Peter Gustav Lejeune Dirichlet, who proved it in 1837.
Examples The primes of the form 4n + 3 are (sequence A002145 in the OEIS)
3, 7, 11, 19, 23, 31, 43, 47, 59, 67, 71, 79, 83, 103, 107, 127, 131, 139, 151, 163, 167, 179, 191, 199, 211, 223, 227, 239, 251, 263, 271, 283, ... They correspond to the following values of n: (sequence A095278 in the OEIS)
0, 1, 2, 4, 5, 7, 10, 11, 14, 16, 17, 19, 20, 25, 26, 31, 32, 34, 37, 40, 41, 44, 47, 49, 52, 55, 56, 59, 62, 65, 67, 70, 76, 77, 82, 86, 89, 91, 94, 95, ... The strong form of Dirichlet's theorem implies that
13+17+111+119+123+131+143+147+159+167+⋯ is a divergent series. Sequences dn + a with odd d are often ignored because half the numbers are even and the other half is the same numbers as a sequence with 2d, if we start with n = 0. For example, 6n + 1 produces the same primes as 3n + 1, while 6n + 5 produces the same as 3n + 2 except for the only even prime 2. The following table lists several arithmetic progressions with infinitely many primes and the first few ones in each of them.
We can generate some forms of primes by using an iterative method. For example, we can generate primes of the form 4n + 3 by using the following method: Let a0 = 4(1) + 3 = 7. Then we let a1 = 4a0 + 3 = 4(7) + 3 = 31, which is prime. We continue by computing 4(7)(31) + 3 = 871 = 13(67). Because 4(7)(31) + 3 is of the form 4n + 3, either 13 or 67 is of the form 4n + 3. We have that 67 = 4(16) + 3 and is prime, so a3 = 67. We then continue this process to find successive primes of the form 4n + 3 (Silverman 2013).
Distribution
Since the primes thin out, on average, in accordance with the prime number theorem, the same must be true for the primes in arithmetic progressions. It is natural to ask about the way the primes are shared between the various arithmetic progressions for a given value of d (there are d of those, essentially, if we do not distinguish two progressions sharing almost all their terms). The answer is given in this form: the number of feasible progressions modulo d – those where a and d do not have a common factor other than 1 – is given by Euler's totient function
φ(d). Further, the proportion of primes in each of those is
1φ(d). For example, if d is a prime number q, each of the q − 1 progressions
q+1,2q+1,3q+1,… q+2,2q+2,3q+2,… … q+q−1,2q+q−1,3q+q−1,… (all except q,2q,3q,…) contains a proportion 1/(q − 1) of the primes. When compared to each other, progressions with a quadratic nonresidue remainder have typically slightly more elements than those with a quadratic residue remainder (Chebyshev's bias).
History In 1737, Euler related the study of prime numbers to what is known now as the Riemann zeta function: he showed that the value ζ(1) reduces to a ratio of two infinite products, Π p / Π (p − 1), for all primes p, and that the ratio is infinite. In 1775, Euler stated the theorem for the cases of a + nd, where a = 1. This special case of Dirichlet's theorem can be proven using cyclotomic polynomials. The general form of the theorem was first conjectured by Legendre in his attempted unsuccessful proofs of quadratic reciprocity — as Gauss noted in his Disquisitiones Arithmeticae — but it was proved by Dirichlet (1837) with Dirichlet L-series. The proof is modeled on Euler's earlier work relating the Riemann zeta function to the distribution of primes. The theorem represents the beginning of rigorous analytic number theory. Atle Selberg gave an elementary proof of this theorem in 1949.
Proof Dirichlet's theorem is proved by showing that the value of the Dirichlet L-function (of a non-trivial character) at 1 is nonzero. The proof of this statement requires some calculus and analytic number theory (Serre 1973). The particular case a = 1 (i.e., concerning the primes that are congruent to 1 modulo some n) can be proven by analyzing the splitting behavior of primes in cyclotomic extensions, without making use of calculus (Neukirch 1999, §VII.6). Although the proof of Dirichlet's Theorem makes use of calculus and analytic number theory, some special cases are much more straightforward to prove. Below we give one such proof showing that there are infinitely many primes of the form 4n + 3 using an argument similar to the proof of Euclid's theorem. We want to prove that there are infinitely many primes of the form 4n + 3. We do this by showing that any finite list of such primes is incomplete. Let p1, p2, ..., pm be primes of the form 4n + 3 and set N = 4p1p2...pm − 1. We know that N has a unique prime factorization N = q1q2...qr where each qi is prime. As N is odd, so too are the primes qi. If each qi is of the form 4n + 1, then the same holds for their product N, but we know that N ≡ 3 (mod 4). Thus at least one qi is of the form 4n + 3. On the other hand, N ≡ −1 (mod pj) for each j, so qi is not on our list.
… excerpt ends here. Continue reading the full article.

