VOOZH about

URL: https://oeis.org/A384220

⇱ A384220 - OEIS


login
A384220
Consecutive states of the linear congruential pseudo-random number generator for Smalltalk-80 when started at 1.
2
1, 41030, 24167, 29748, 11069, 4562, 19459, 53408, 8761, 54302, 60255, 60364, 8437, 29482, 55419, 12728, 9073, 15094, 28503, 52836, 58797, 14210, 52211, 44496, 58281, 13518, 51791, 31740, 22885, 48858, 1643, 42216, 17121, 8614, 56391, 21652, 23581, 26930
OFFSET
1,2
COMMENTS
Periodic with period 2^16.
This generator was widely used with Smalltalk-80 due to the Goldberg and Robson book.
REFERENCES
Adele Goldberg and David Robson, Smalltak-80: The Language and Its Implementation, Addison-Wesley, 1983 (see p. 152).
FORMULA
a(n) = (27181 * a(n-1) + 13849) mod 2^16.
MATHEMATICA
NestList[Mod[27181*# + 13849, 2^16] &, 1, 50] (* Paolo Xausa, May 23 2025 *)
CROSSREFS
Cf. A383940 (similar generator for Pascal).
Cf. A096550-A096561 other pseudo-random number generators.
Sequence in context: A249527 A133863 A033532 * A173361 A047828 A141711
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 22 2025
STATUS
approved