We'll start with 2 congruences only. We'll allow only numbers that when divided by 6, don't have a remainder of 3. Also, only numbers that have a remainder of 2 or 4 when divided by 5:
$\equiv ${$0,1,2,4,$ or $5$}$\pmod 6$
$\equiv ${$2$ or $4$}$\pmod 5$
The question is, at most how many consecutive numbers fit one or both of these congruences? We'll start testing with 3, something that doesn't work, as we don't have any chance of a string of working numbers occuring on the "wrap around" if you understand what I mean. We'll go up to 33, as that will give all possibilities mod 6 and 5. Using "y" for yes it works, or "n" for no we get:
{n,y,y,y,y,y,y,y,y,y,y,y,n,y,y,y,y,y,n,y,y,y,y,y,y,y,y,y,y,y,n}
We have 2 strings of 11 consecutive "yes" answers, thus 11 is our answer.
Now let's add another:
$\equiv ${$0,1,2,4,$ or $5$}$\pmod 6$
$\equiv ${$2$ or $4$}$\pmod 5$
$\equiv ${$2$ or $4$}$\pmod 7$
How many consecutive "yes" answers can we have now? I'll put the answer in the comments so as to not spoil it.
What if we continue this pattern? Adding:
$\equiv ${$2$ or $4$}$\pmod {next prime}$
to the list of congruences? Even using computer code, the furthest I've gotten is through 23 which has a string of 204 "yes" answers, because we're talking huge time and memory problems for testing past that point, orders of magnitude greater than the previous it seems.
Answers I'd like:
- How long would the string of "yes" answers be for primes up to 41? How did you find this answer?
- What could we do mathematically to make these answers easier to calculate?
- Would these answers ever approach a line, parabola, logarithmic curve, etc.?