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).
LINKS
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)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 03 2025
STATUS
approved
