close
login
A384291
Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+13737667) mod 2^24 when started at s=1.
5
1, 13951680, 13497987, 7046970, 2650389, 10542980, 14290999, 3607070, 3569769, 6625672, 160299, 10400834, 10291709, 10007756, 7450719, 7522726, 16472529, 3020112, 14720723, 14208586, 15784933, 1498900, 676231, 15697454, 3228729, 521752, 6298747, 11728210
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) + 13737667) mod 2^24.
MATHEMATICA
NestList[Mod[214013*# + 13737667, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
CROSSREFS
Sequence in context: A321364 A116148 A210085 * A251521 A242981 A210133
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved