login
A384297
Consecutive internal states of the linear congruential pseudo-random number generator for Microsoft QBASIC when started at 1.
1
1, 12640960, 8124035, 4294458, 3961109, 14212996, 790583, 4786718, 4094057, 13179272, 9990699, 13415490, 7932413, 570572, 4960351, 10275238, 9132497, 9049424, 14589651, 14601802, 1367013, 4120340, 807303, 11634222, 13190201, 14415384, 4594811, 1111378
OFFSET
1,2
COMMENTS
Periodic with period 2^24.
Also used by Visual BASIC (version 6 and earlier).
FORMULA
a(n) = (16598013 * a(n-1) + 12820163) mod 2^24.
MATHEMATICA
NestList[Mod[16598013*# + 12820163, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
CROSSREFS
Cf. A096550-A096561 other pseudo-random number generators.
Sequence in context: A147749 A175753 A251472 * A256734 A237034 A210182
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved