470,848 Members | 962 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

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

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?
Jan 5 '20 #1
0 2196

Post your reply

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

Similar topics

2 posts views Thread by Magid | last post: by
5 posts views Thread by Jerzy Karczmarczuk | last post: by
10 posts views Thread by Joel Mayes | last post: by
7 posts views Thread by desktop | last post: by
18 posts views Thread by kittikun | last post: by
16 posts views Thread by jason.cipriani | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.