Suppose I have three sequences $\{1,4,7,....,2998\}$ , $\{1,3,5,7,9,11,....,3001\}$ and $\{1,6,11,....,4001\}$ .
How can i find the number of common terms among them ?
For Example ,
If I have
1,3,5,7,9,11,13,15,17 and 19
1,4,7,10,13,16 and 19
1,6,11 and 16
My answer would be $6$.
Suppose i have $n$ number of series' with common differences $a_1,a_2,...,a_n$ and each of them having the starting term as $1$ . How can i find the number of common terms then ?