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.

A384402 Consecutive states of the linear congruential pseudo-random number generator 39373*s mod (2^31-1) when started at s=1.

Original entry on oeis.org

1, 39373, 1550233129, 1548773083, 2044440394, 1622092461, 482805173, 2110316932, 1218777559, 1406738292, 1756031139, 1978020682, 2113853931, 894602131, 142925769, 1009147697, 429837187, 1808425391, 1165119911, 1868072236, 293238278, 798633422, 1138165032
Offset: 1

Views

Author

Sean A. Irvine, May 27 2025

Keywords

Comments

Periodic with period 2^31-2.

Crossrefs

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

Programs

  • Mathematica
    NestList[Mod[39373*#, 2^31 - 1] &, 1, 50] (* Paolo Xausa, May 30 2025 *)

Formula

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