Is there a way to predict the same occurring numbers between two modulo sequence ?
Let me take an example Here are the first 21 numbers of the sequence A with modulo 7:
0 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
Here are the first 22 numbers of the sequence B with modulo 11:
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20 21
If I decide to get the same occurring numbers in A, column 1 and B, column 4, I would see that 15 is occurring in both columns.
Is there a very efficient way/ generalization to gather the same number of differing modulo length, given a column to search per sequence ?
If the set is small, I know I could do a set intersection but I am after a generalized formula.
Thanks!