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).
LINKS
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
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 22 2025
STATUS
approved
