I am working on the following problem:
Prove that there are infinitely many primes in the sequence: $5, 11,17,23, 29, 35, 41...$ Hint: these numbers satisfy $x \equiv 5 \pmod 6$. Try a proof similar to Euclid
My approach:
We notice that the numbers in the sequence are either prime of the form $6x + 5$ or composite of the form $(6x + 5)(6x + 1)$ e.g.
$35 = 5 \cdot 7$
$65 = 5 \cdot 13$
$77 = 11 \cdot 7$
$95 = 5 \cdot 19$
We can see that $(6x + 5)(6x + 1) = (6x)^2 + 6x + 5\cdot6x + 5 = 6(6x^2 + x + 5) + 5 = 6k + 5$ where $k = 6x^2 + x + 5$
So indeed we have closure if we multiply numbers of this form.
We also notice that the product of primes of the form $(6x +5)$ belongs to a different equivalent class depending on if the total of numbers multiplied is odd vs even.
I.e.
Even number:
$(6x + 5)(6x + 5) = (6x)^2 + 6\cdot 5x+ 5\cdot 6x + 25 = 6k + 25 \equiv 1 \pmod 6$
Odd number:
$(6x + 5)(6x + 5)(6x + 5) = (6k + 25)(6x + 5) = (6kx)^2 + 6\cot 5k + 25 \cdot 6x + 5\cdot 25 = 6j + 5\cdot 25\equiv 5\cdot 1= 5 \pmod 6$ where $j = 6kx + 5k + 25x$
Assume that the set of primes of the form $6x + 5$ is finite i.e. $P = {p_1, p_2, p_3, ...p_n}$
Let $N$ be the product of the set of primes: $N = p_1\cdot p_2 \cdot p_3...p_n$
Note we have $2$ cases: Either $N\equiv 5 \pmod 6$ or $N \equiv 1 \pmod 6$ (depending on the size of the set.
Case 1:
Assume that $|P| \equiv 1 \pmod 2 \implies N \equiv 5 \pmod 6$
This means that $N$ is of the form $6x + 5$.
To create a composite number we multiply by $(6m + 1)$ i.e.
$S = N \cdot (6m + 1) = (6x + 5)(6m + 1)$
But this means that $S$ is of the form $6k + 5$
Now a prime $p$ from the $P$ is a factor of $N$ and must also be a factor of $S$. I.e.
$p \mid N \And p \mid S \implies p \mid 6x + 5 - (6k + 5) \Leftrightarrow p \mid 6x - 6k = 6(x - k) \Leftrightarrow p \mid 6q$ where $q = x - k$
But none of the primes is a factor of $6$ since they are of the form $6x + 5$ so we end up with an impossible case.
Similar logic for case 2 also leads to impossibility.
Hence the primes in the sequence must be infinite.
Note:
I am interested to understand the problems in the thought process of my proof.
I found this post that seems to be similar, but so far, the book I am reading has not discussed about "quadratic reciprocity" at this point (also not familiar with it), and I'd like to understand if my proof is valid or what are the problems with it