Hi,
I found an interesting pattern, that allows an easy way to find all
the coprimes of primorial 2310, given primorial 210 coprimes.
It is probably generalized for all primorials, so could be used
recursively to find a primorials coprimes, by incrementing
through primorials 6,30,210,2310, etc up to the primorial of
interest, to find that primorials coprimes without doing much
math.
So the description of how it works:
take numbers 1 to 210 and arrange into a single row of
210 columns, then label the columns in that row that are
coprimes of 210.
primorial 210 coprimes (count 48):
1,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,
121,127,131,137,139,143,149,151,157,163,167,169,173,179,181,187,191,193,197,199,209,
Next extend the single row into a total of 11 rows with row1 counting
from 1 to 210, row2 from 211 to 420, row3 from 421 to 630 etc all the
way to 2310 at the end of the last row11. This makes a table of 210
columns and 11 rows (2310 numbers total)
Now all possible coprimes for primorial 2310 (a total of 480 coprimes)
will be in the 48 columns that were previously labelled as coprimes
of primorial 210. There are 11 rows and 48 columns, so that is 11
more numbers than primorial 2310 has coprimes, and accordingly each
column has a single extra number that isn't a coprime of primorial 2310.
There is a pattern to find these numbers that aren't coprimes too,
I didn't figure out where exactly the pattern is coming from but
it is there.
The pattern to find the single number in each of the 48 columns there
is a formula to find which row the number will be in, from row1 to row
11. You just need to know the location of a single number that isn't
coprime and then you can find all the rest.
Here is the pattern! :D
Given the location of a single number that isn't coprime, in column1,
which is number 2101 in row11, check the gap to the next column
that has coprimes, ie column11, that is a gap of 10 columns (11-1),
so the number that isn't coprime with 2310 in column11 is in 11-10=row1.
11-10 comes from the column1 row 11 minus column11 row 1.
That one is a bit hard to see because of the numbers, but the next
one is easier to see:
The next column that has coprimes is column13 and it has a gap of 13-11
=2 from the last column that has coprimes, so the row position of the
number that isn't a coprime is the last columns row that isn't coprime
minus 2. The previous column row location that isn't coprime is row1,
so minus 2 rows takes the next row to row 10, the second last row.
Ok that one is hard to see too since there is a row overflow in that
example, but this next example is easier to see!
The next column that has coprimes is column17 and it has a gap of
17-13=4 from the last column that has coprimes. The previous column's
row location that isn't coprime is row 10, so 10-4=6 means that the
column17 row location of the number that isn't coprime is row6, and
that is number 1067.
There is a single number that isn't coprime in each of the columns,
and after finding them all the table can be turned back into a single
list of numbers to be used to construct a longer table for the next
bigger primorial and the process repeated of removing one non-coprime
from each column that has coprimes.
I didn't test this pattern for other primorials so I am sure it may
vary somewhat, for primorial210 with 30 columns I didn't figure out
the pattern if there even is one.
Also if a fixed width table is used rather than increasing the width
for bigger primorials, there seems to be an interesting pattern of
how to remove non coprimes too, as multiples of prime numbers in
the coprime rows, for primes of size of the largest prime factor for
the primorial and up the size required for the whole table.
cheers,
Jamie