Linear Congruential Generator 1,4,9

1 reply · 3K views · last reply
mebigp
Messages
7
Reaction score
0

Homework Statement


X=(aX + b) mod 65536
Output is 1,4,9, ?

Can anyone give me a hint as to what a and b are


Homework Equations





The Attempt at a Solution


1=(aX + b) mod 65536
4=(a1 + b) mod 65536
9=(a4 + b) mod 65536

The values I have tried get me from 4 to 7 not 9