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.

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

Original entry on oeis.org

1, 40692, 1655838864, 2103410263, 1872071452, 652912057, 1780294415, 535353314, 525453832, 1422611300, 1336516156, 498340277, 1924298326, 2007787254, 2020508212, 2118231989, 1554910725, 1123836963, 514716691, 445999725, 238604751, 532080813, 504813878
Offset: 1

Views

Author

Sean A. Irvine, May 27 2025

Keywords

Comments

Periodic with period 2^31-250.
Implemented as gsl rng lecuyer21 in the GNU Scientific Library.

Crossrefs

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

Programs

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

Formula

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