login
A384240
Consecutive states of the linear congruential pseudo-random number generator (2897*s + 1) mod 2^23 when started at s=1.
1
1, 2898, 6899, 3209188, 2439973, 5393846, 6383767, 5280968, 6531913, 6640922, 3672891, 3610284, 6787181, 7954814, 1589983, 834960, 2960017, 2011874, 6705027, 4835700, 47541, 3508550, 5665063, 3570264, 8289753, 7218346, 7137227, 7016508, 1226493, 4769038
OFFSET
1,2
COMMENTS
Periodic with period 2^23.
REFERENCES
M. R. Eagle, Introduction to BASIC, 1976.
FORMULA
a(n) = (2897 * a(n-1) + 1) mod 2^23.
MATHEMATICA
NestList[Mod[2897*# + 1, 2^23] &, 1, 50] (* Paolo Xausa, May 23 2025 *)
CROSSREFS
Cf. A096550-A096561 other pseudo-random number generators.
Sequence in context: A285756 A248109 A219963 * A340201 A235102 A252267
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 22 2025
STATUS
approved