All these are good pairs:
$$(0, 0), (A, B), (2A, 2B), (3A, 3B), \ldots \pmod{n}$$
But are there any other pairs?
actually it was a programming problem with $A,B,n \leq 10000$ but it seems to have a pure solution.
All these are good pairs:
$$(0, 0), (A, B), (2A, 2B), (3A, 3B), \ldots \pmod{n}$$
But are there any other pairs?
actually it was a programming problem with $A,B,n \leq 10000$ but it seems to have a pure solution.