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.

A384341 Consecutive states of the linear congruential pseudo-random number generator (31481*s+21139) mod 10^5 when started at s=1.

Original entry on oeis.org

1, 52620, 51359, 53818, 65597, 80296, 19515, 72854, 37913, 60292, 73591, 39410, 87349, 55008, 27987, 79886, 12305, 94844, 5103, 68682, 99181, 38200, 95339, 88198, 82377, 31476, 17095, 88834, 4293, 69072, 76771, 48990, 75329, 53388, 28767, 35066, 33885, 54824
Offset: 1

Views

Author

Sean A. Irvine, May 26 2025

Keywords

Comments

Periodic with period 10^5.
A generator recommended by Van Es et al. for pocket calculators.
Referred to as "Pocket I" in the literature.

Crossrefs

Programs

  • Mathematica
    NestList[Mod[31481*# + 21139, 10^5] &, 1, 50] (* Paolo Xausa, May 27 2025 *)

Formula

a(n) = (31481 * a(n-1) + 21139) mod 10^5.