Let:
- $p\ge 5$ be a prime.
- $p\#$ be the primorial of $p$.
- $0 < x < p\#$ be an integer.
- gcd$(a,b)$ be the greatest common divisor of $a$ and $b$.
It is straight forward to show that there are $\prod\limits_{q \text{ is odd prime, }q \le p}(q-2)$ instances of $x$ where $x < p\#$ and gcd$\left(x(x+2),p\#\right)=1$:
Base Case: There are 3 such $x$ for $p=5$ which are $\{11, 17, 29\}$
Inductive Hypothesis: Assume it is true up to some prime $p \ge 5$
Inductive Case:
Let $x_1, x_2, \dots x_n$ fulfill this hypothesis for $p$ so that each $x_i < p\#$, gcd$\left(x_i(x_i+2),p\#\right)=1,$ and $n = \prod\limits_{q\text{ is odd prime, } q \le p}(q-2)$
Let $r$ the least prime greater than $p$.
Each $x_i, x_i + p\#, x_i + 2p\#, \dots, x_i + (r-1)p\#$ forms a complete residue system modulo $r$.
As such, for each $x_i$, exactly $2$ are either congruent to $r$ or $r-2$. The remaining $r-2$ will have the property that gcd$\left(x_i + up\#)(x_i + up\#+2),r\#\right)=1$ where $0 \le u \le r-1$.
Thus, the number of $x$ that have the desired property relative $r$ is $\left(\prod\limits_{q\text{ is odd prime, }q\le p}(q-2)\right)(r-2) = \prod\limits_{q\text{ is odd prime, }q\le r}(q-2)$
Here is my question:
Let $C_p$ be the count of $x$ such that:
- $0 <x < p\#$
- gcd$\left(x(x+2),p\#\right)=1$
I am interested in seeing if there is a bound for counting the number of $x$ for each $u$ where:
- $0 \le u < C_p$
- $u\left(\dfrac{p\#}{C_p}\right) < x \le (u+1)\left(\dfrac{p\#}{C_p}\right)$
When I look at $p \le 13$, I am finding that this count is never greater than $2$.
Is it known if this always follows? Will there ever be a prime $r$ such that the count of an interval defined as above for $r$ would have a count greater than $2$?
I am suspecting that it is straight forward to prove that $2$ is the maximum count. Am I wrong?
Is there a counter example?
Edit: Updated question to make it clear that $q > 2$.