login
A384571
Consecutive states of the linear congruential pseudo-random number generator (4160984121*s+1) mod 10^10 when started at s=1.
5
1, 4160984122, 9375126763, 3205130324, 3899585205, 6491529806, 3764210527, 948041768, 2692765929, 2138813410, 6791862611, 6384599932, 5989679773, 5327884534, 4495484615, 9214798416, 7191952337, 3245840778, 6552286139, 627398820, 7554137221, 4436067742
OFFSET
1,2
COMMENTS
Periodic with period 10^10.
REFERENCES
Donald E. Knuth, The Art of Computer Programming, Vol 2: Seminumerical Algorithms (3rd ed.), Addison-Wesley, 1998 (see p. 106).
FORMULA
a(n) = (4160984121 * a(n-1) + 1) mod 10^10.
MATHEMATICA
NestList[Mod[4160984121*# + 1, 10^10] &, 1, 50] (* Paolo Xausa, Jun 09 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 03 2025
STATUS
approved