login
A384570
Consecutive states of the linear congruential pseudo-random number generator (3141592621*s+1) mod 10^10 when started at s=1.
5
1, 3141592622, 9463242263, 4176141324, 7731570205, 4771457306, 3946139027, 8663319768, 6512231929, 4386995910, 9213180111, 2661560932, 4313082773, 3419018034, 6680327115, 350218416, 1443908337, 6919581278, 3374549639, 5080613820, 7062622221, 4404231242
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) = (3141592621 * a(n-1) + 1) mod 10^10.
MATHEMATICA
NestList[Mod[3141592621*# + 1, 10^10] &, 1, 50] (* Paolo Xausa, Jun 09 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 03 2025
STATUS
approved