close
login
A384292
Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+13523655) mod 2^24 when started at s=1.
2
1, 13737668, 13733499, 10705750, 2695365, 5655672, 8607071, 956074, 10862281, 15041132, 426883, 3316798, 7405069, 1954976, 13589735, 12754962, 4276881, 7083796, 15164811, 11671078, 798805, 8347080, 9527663, 4764282, 13282137, 16579772, 2970771, 7760142
OFFSET
1,2
COMMENTS
Periodic with period 2^24.
Intended as a generator in IBM BASIC, but was actually implemented incorrectly as (214013 * (s mod 2^16) + 13523655) mod 2^24 (see A384293) resulting in a period of just 2^16.
REFERENCES
G. Sawitzki, Another random number generator which should be avoided, Statistical Software Newsletter, 11 (1985), 81-82.
LINKS
B. D. Ripley, Thoughts on pseudorandom number generators, J of Computational and Applied Mathematics, 31, 1 (1990), 153-163.
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) + 13523655) mod 2^24.
MATHEMATICA
NestList[Mod[214013*# + 13523655, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved