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
(
list
;
graph
;
refs
;
listen
;
history
;
text
;
internal format
)
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
Sean A. Irvine,
Table of n, a(n) for n = 1..10000
Index entries for sequences related to pseudo-random numbers
.
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
Cf.
A384570
,
A384571
,
A384572
,
A384573
.
Sequence in context:
A257914
A257893
A015397
*
A384567
A384570
A291600
Adjacent sequences:
A384566
A384567
A384568
*
A384570
A384571
A384572
KEYWORD
nonn
,
easy
AUTHOR
Sean A. Irvine
, Jun 03 2025
STATUS
approved