By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,730 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,730 IT Pros & Developers. It's quick & easy.

How to calculate the nth term of Linear Congruentual generator sequence?

P: 11
Pseudorandom numbers are generated using a recurrence relation
$$R_i=(AŚR_{i−1}+B) mod C$$

Values of A=5,B=17,C=23,$R_0$=3.

What will be the value of $R_{2018}$
or $R_n$ for that matter?
2 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.