Linear congruential algorithm Academic Essay

If we take the linear congruential algorithm with an additive component of 0, Xn+1 = (aXn) mod m

Then it can be shown that if m is prime and if a given value of produces the maximum period of – 1 , then akwill also produce the maximum period, provided that is less than m and that and m – 1 are relatively prime. Demonstrate this by using X0= 1and = 31and producing the sequences for ak= 3 3233and34

 

Looking for the best essay writer? Click below to have a customized paper written as per your requirements

 

find the cost of your paper

Is this question part of your assignment?

Place order