A384290 Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+10395331) mod 2^24 when started at s=1.
1, 10609344, 3405443, 427834, 2388245, 7987076, 1839159, 4065822, 15628393, 661896, 14709291, 13743170, 13699581, 13219020, 11251807, 9554342, 7035345, 11212112, 3579603, 10735178, 6085605, 10477332, 3953031, 2524718, 5850169, 6092312, 3021947, 1439058
Offset: 1
References
- David I. Schneider, Handbook of BASIC (3rd ed.), Simon & Schuster, 1988 (see p. 497).
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..10000
- W. E. Sharp and Carter Bays, A review of portable random number generators, Computers and Geosciences, 18, 1 (1982), 79-87.
- Index entries for sequences related to pseudo-random numbers.
Programs
-
Mathematica
NestList[Mod[214013*# + 10395331, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
Formula
a(n) = (214013 * a(n-1) + 10395331) mod 2^24.
Comments