A384240 Consecutive states of the linear congruential pseudo-random number generator (2897*s + 1) mod 2^23 when started at s=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
References
- M. R. Eagle, Introduction to BASIC, 1976.
Links
Programs
-
Mathematica
NestList[Mod[2897*# + 1, 2^23] &, 1, 50] (* Paolo Xausa, May 23 2025 *)
Formula
a(n) = (2897 * a(n-1) + 1) mod 2^23.
Comments