login
A384289
Consecutive internal states of the linear congruential pseudo-random number generator for GWBASIC 3.23 when started at 1.
7
1, 2745024, 2356867, 12486458, 8679701, 14802820, 7082039, 14027294, 11434089, 5380488, 9466411, 4830274, 15796733, 15840460, 12300383, 15321510, 15423953, 11736400, 10919635, 14405194, 3988453, 8904468, 807303, 4097582, 10044473, 2422296, 6167675, 914770
OFFSET
1,2
COMMENTS
Periodic with period 2^24.
Also the random number generator used by Commodore AmigaBASIC.
Possibly also used by other versions of GWBASIC.
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) + 2531011) mod 2^24.
MATHEMATICA
NestList[Mod[214013*#+2531011, 2^24] &, 1, 27] (* Stefano Spezia, May 24 2025 *)
CROSSREFS
Cf. A096550-A096561 other pseudo-random number generators.
Cf. A384290, A384291 (similar parameters).
Sequence in context: A104848 A234370 A051384 * A384331 A251350 A238070
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved