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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KushShukla
    New Member
    • Jan 2014
    • 11

    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?
Working...