Let:
- $n,m,x$ be any integer with $n$ being even
- $D_n(m,x)$ be the count of integers $i$ where:
- $m-x \le i < m$
- There exists a prime $p \le x$ such that $p \nmid n$ but $p | i$
Examples:
$D_6(0,5) = 1$ { -5 } with $p=5$
$D_6(20,5) = 1$ { 15 } with $p=5$
I am trying to see whether it is always the case that:
$$D_n(m,x) \le D_n(0,x) + 1$$
I am having trouble either finding a counter example or finding the argument why it is true.
Intuitively, I would assume that it is not true. That there should exist $m,x,n$ such that $D_n(m,x) > D_n(0,x)+1$.
A counter example is $m = 22$, $n = 6$ and $x = 8$. In this case, $D_6(0,8) = 2$ since, for $-8 \le i \lt 0$, the only primes $p \le 8$ which don't divide $6$ are $5$ and $7$, but the values of $i$ that they do divide are just $-5$ and $-7$.
On the other hand, you have $D_6(22,8) = 4$ since checking $14 \le i \lt 22$ gives $5 \mid 15$ and $5 \mid 20$, plus $7 \mid 14$ and $7 \mid 21$.
Since $4 \gt 2 + 1$, this gives a case where $D_n(m,x) \gt D_n(0,x) + 1$ to show your condition does not always hold.