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.

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

Original entry on oeis.org

1, 40014, 1601120196, 1346387765, 439883729, 732249858, 2127568003, 1962667596, 707287434, 1860990862, 1695805043, 1904850491, 53445315, 1814689225, 112933431, 612891482, 2124954851, 479214492, 407948861, 643161691, 28884682, 445508654, 322224693, 7553450
Offset: 1

Views

Author

Sean A. Irvine, May 27 2025

Keywords

Comments

Periodic with period 2^31-86.

Crossrefs

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

Programs

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

Formula

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