VOOZH about

URL: https://oeis.org/A384159

⇱ A384159 - OEIS


login
A384159
Consecutive states of the linear congruential pseudo-random number generator for 32-bit WATFOR/WATFIV when started at 1.
3
1, 20613, 424895769, 938169853, 404929649, 1693398709, 828374025, 631292077, 1220159969, 1976439269, 430365689, 2020481117, 2026879057, 763630101, 1799615721, 1993805069, 1909315521, 1935501125, 533477081, 1446792893, 636483633, 859521397, 574460361, 126586221
OFFSET
1,2
COMMENTS
Periodic with period 2^29 (considerably less than the modulus).
WATFOR and WATFIV are early FORTRAN compilers from the University of Waterloo.
REFERENCES
Terry M. Walker, Fundamentals of Fortran Programming: with WATFOR/WATFIV, Allyn and Bacon, 1975.
FORMULA
a(n) = 20613 * a(n-1) mod 2^31.
MATHEMATICA
NestList[Mod[20613*#, 2^31] &, 1, 23] (* Stefano Spezia, May 24 2025 *)
CROSSREFS
Cf. A096550-A096561 other pseudo-random number generators.
Sequence in context: A059050 A056073 A173378 * A028519 A247926 A107263
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 20 2025
STATUS
approved