Question

A) What sequence (At least 8 sequences) of pseudorandom numbers is generated using the linear congruential generator xn+1 (3x

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Consider the equation Xn+1 =(3Xn+2) mod 13 given X0=1

So X1 =(3X0+2) mod 13=(3*1 +2) mod 13=5 mod 13 = 5

  X2 =(3X1+2) mod 13=(3*5 +2) mod 13=17 mod 13=4

  X3= (3X2+2) mod 13=(3*4 +2) mod 13=14 mod 13=1

  X4= (3X3+2) mod 13=(3*1 +2) mod 13=5 mod 13=5

X5= (3X4+2) mod 13=(3*5 +2) mod 13=17 mod 13=4

  X6= (3X5+2) mod 13=(3*4 +2) mod 13=14 mod 13=1

X7= (3X6+2) mod 13=(3*1 +2) mod 13=5mod 13=5

X8= (3X7+2) mod 13=(3*5 +2) mod 13=17mod 13=4

The series of number generator is 5,4,1,5,4,1,5,4

2.

Add a comment
Know the answer?
Add Answer to:
A) What sequence (At least 8 sequences) of pseudorandom numbers is generated using the linear congruential...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT