login
A384290
Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+10395331) mod 2^24 when started at s=1.
5
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,2
COMMENTS
Periodic with period 2^24.
Used by some versions of IBM BASIC.
REFERENCES
David I. Schneider, Handbook of BASIC (3rd ed.), Simon & Schuster, 1988 (see p. 497).
LINKS
W. E. Sharp and Carter Bays, A review of portable random number generators, Computers and Geosciences, 18, 1 (1982), 79-87.
FORMULA
a(n) = (214013 * a(n-1) + 10395331) mod 2^24.
MATHEMATICA
NestList[Mod[214013*# + 10395331, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved