LCG sequence determiner

Determine LCG parameters from first 3 terms.

a[0] =
a[1] =
a[2] =
modulo (should be prime.)