A384291 Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+13737667) mod 2^24 when started at s=1.
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
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*# + 13737667, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
Formula
a(n) = (214013 * a(n-1) + 13737667) mod 2^24.
Comments