0

Given fixed positive integers a and b, I know y= ax (mod b) can range from 0 to b-1 for all non negative integers x.

It will always take value 0 (at x=0).

If b is multiple of a, then y will take only values multiples of a(mod b).

My guess is that y will take all values that are multiple of gcd(a,b) mod b

Is this true? How can I prove this?

Thanks

Bill Dubuque
  • 272,048
Tojra
  • 1,483
  • 7
  • 13

0 Answers0