3

Given a set of positive integers with no collisions (that is, every element is unique), $A = \{\ldots\}$, how can I find the smallest modulus, $n$, so that $B = A \pmod n$ has no collisions?

Jack D'Aurizio
  • 353,855
built1n
  • 111

1 Answers1

5

We may just consider the difference set $D=A-A$, then take the least positive integer $n$ such that $n$ does not divide any positive element of $D$. Such $n$ is obviously a prime number.

Jack D'Aurizio
  • 353,855