Question

Consider the linear congruential algorithm with an additive component of 0, i.e., Xn+1 =(aXn) mod m...

Consider the linear congruential algorithm with an additive component of 0, i.e., Xn+1 =(aXn) mod m

a. It can be shown that if m is prime and if a given value of a produces the maximum period of m-1, then akwill also produce the maximum period, provided that k is less than m and that k and m-1 are relatively prime. Demonstrate this by using X0=1 and m=31 and producing the sequences for ak = 3, 32, 33, and 34.

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions