0
variable v = 256478

modular m = 568742

result  r = 256478

v (mod) m = r , 256478 (mod) 568742 = 256478

my question how to find mod (m = ?) value from variable and result (some case my program)

v (mod) ? = r

256478 (mod) ? = 256478

262713 (mod) ? = 262713

here variable V and result r known need to find possible mod m = ? value

condition is v = r --> variable and result always equal,then m = ?

which value used to mod variable to get result, the result equal to variable

One of my program development I need this

Sabyasachi Mishra
  • 1,677
  • 2
  • 31
  • 49
Prabu r
  • 103
  • 4
  • Your examples are not very clear. They seem to indicate any number larger than v will suffice. Please provide a more robust range of samples so we can understand what you mean. – Brody Aug 18 '15 at 05:04
  • I'm voting to close this question as off-topic because this question belongs on math.stackexchange.com – Karl Knechtel Aug 18 '15 at 05:24

1 Answers1

1

It is interesting to note that for all positive integers.

If variable v and result r are equal then m must be any value greater than v.

Like:

256478 (mod) 256479 = 256478
256478 (mod) 356479 = 256478
262713 (mod) 262714 = 262713
262713 (mod) 272714 = 262713

http://ideone.com/8Pd4i8

Let me know if it helps:

Vineet Kumar Doshi
  • 4,250
  • 1
  • 12
  • 20