A384570 Consecutive states of the linear congruential pseudo-random number generator (3141592621*s+1) mod 10^10 when started at s=1.
1, 3141592622, 9463242263, 4176141324, 7731570205, 4771457306, 3946139027, 8663319768, 6512231929, 4386995910, 9213180111, 2661560932, 4313082773, 3419018034, 6680327115, 350218416, 1443908337, 6919581278, 3374549639, 5080613820, 7062622221, 4404231242
Offset: 1
References
- Donald E. Knuth, The Art of Computer Programming, Vol 2: Seminumerical Algorithms (3rd ed.), Addison-Wesley, 1998 (see p. 106).
Links
Programs
-
Mathematica
NestList[Mod[3141592621*# + 1, 10^10] &, 1, 50] (* Paolo Xausa, Jun 09 2025 *)
Formula
a(n) = (3141592621 * a(n-1) + 1) mod 10^10.
Comments