login
A384572
Consecutive states of the linear congruential pseudo-random number generator (4219755981*s+1) mod 10^10 when started at s=1.
5
1, 4219755982, 3405028343, 5848769484, 1599283805, 1465187706, 5681169587, 3818549848, 9844640889, 2154907110, 5921924911, 2225142692, 3145440853, 2328491794, 4440919915, 2463261616, 6883725297, 3576751358, 5470372199, 5026372220, 8077247821, 2683967402
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) = (4219755981 * a(n-1) + 1) mod 10^10.
MATHEMATICA
NestList[Mod[4219755981*# + 1, 10^10] &, 1, 50] (* Paolo Xausa, Jun 09 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 03 2025
STATUS
approved