VOOZH about

URL: https://oeis.org/A384569

⇱ A384569 - OEIS


login
A384569
Consecutive states of the linear congruential pseudo-random number generator (3141592221*s+1) mod 10^10 when started at s=1.
5
1, 3141592222, 6189305063, 9316714924, 513006205, 2952731306, 1632770627, 460492568, 9457113529, 5820257910, 4269718111, 3380414532, 7486555573, 220997634, 7833805115, 114010416, 6018573937, 1992544078, 5444417239, 5920697820, 4203658221, 6836298842
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) = (3141592221 * a(n-1) + 1) mod 10^10.
MATHEMATICA
NestList[Mod[3141592221*# + 1, 10^10] &, 1, 50] (* Paolo Xausa, Jun 09 2025 *)
PROG
(Python)
from itertools import accumulate, repeat, islice
def A384569_gen(): # generator of terms
return accumulate(repeat(1), lambda x, y:(3141592221*x+y)%10000000000, initial=1)
A384569_list = list(islice(A384569_gen(), 30)) # Chai Wah Wu, Jun 04 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 03 2025
STATUS
approved