cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A384159 Consecutive states of the linear congruential pseudo-random number generator for 32-bit WATFOR/WATFIV when started at 1.

Original entry on oeis.org

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

Views

Author

Sean A. Irvine, May 20 2025

Keywords

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.

Crossrefs

Cf. A096550-A096561 other pseudo-random number generators.

Programs

  • Mathematica
    NestList[Mod[20613*#, 2^31] &, 1, 23] (* Stefano Spezia, May 24 2025 *)

Formula

a(n) = 20613 * a(n-1) mod 2^31.