Hello,
first of all, sorry if my question is either trivial or imprecise, I'm from the engineering domain :)
I need to know how many different values the following pair can take:
\left(a\cdot i + b\cdot j\right) \bmod n_1
\left(c\cdot i + d\cdot j\right) \bmod n_2
as (i,j) spans \mathbb{Z}^2...