A384401 Consecutive states of the linear congruential pseudo-random number generator 40014*s mod (2^31-85) when started at s=1.
1, 40014, 1601120196, 1346387765, 439883729, 732249858, 2127568003, 1962667596, 707287434, 1860990862, 1695805043, 1904850491, 53445315, 1814689225, 112933431, 612891482, 2124954851, 479214492, 407948861, 643161691, 28884682, 445508654, 322224693, 7553450
Offset: 1
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..10000
- Pierre L'Ecuyer, Efficient and portable combined random number generators, Commun. ACM, 31, 6 (1988), 742-749 and 774.
- Index entries for sequences related to pseudo-random numbers.
Crossrefs
Programs
-
Mathematica
NestList[Mod[40014*#, 2^31 - 85] &, 1, 50] (* Paolo Xausa, May 30 2025 *)
Formula
a(n) = 40014 * a(n-1) mod (2^31-85).
Comments