cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A384220 Consecutive states of the linear congruential pseudo-random number generator for Smalltalk-80 when started at 1.

This page as a plain text file.
%I A384220 #14 May 28 2025 00:56:38
%S A384220 1,41030,24167,29748,11069,4562,19459,53408,8761,54302,60255,60364,
%T A384220 8437,29482,55419,12728,9073,15094,28503,52836,58797,14210,52211,
%U A384220 44496,58281,13518,51791,31740,22885,48858,1643,42216,17121,8614,56391,21652,23581,26930
%N A384220 Consecutive states of the linear congruential pseudo-random number generator for Smalltalk-80 when started at 1.
%C A384220 Periodic with period 2^16.
%C A384220 This generator was widely used with Smalltalk-80 due to the Goldberg and Robson book.
%D A384220 Adele Goldberg and David Robson, Smalltak-80: The Language and Its Implementation, Addison-Wesley, 1983 (see p. 152).
%H A384220 Sean A. Irvine, <a href="/A384220/b384220.txt">Table of n, a(n) for n = 1..10000</a>
%H A384220 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers.</a>
%H A384220 <a href="/index/Rec#order_65536">Index entries for linear recurrences with constant coefficients</a>, order 65536.
%F A384220 a(n) = (27181 * a(n-1) + 13849) mod 2^16.
%t A384220 NestList[Mod[27181*# + 13849, 2^16] &, 1, 50] (* _Paolo Xausa_, May 23 2025 *)
%Y A384220 Cf. A383940 (similar generator for Pascal).
%Y A384220 Cf. A096550-A096561 other pseudo-random number generators.
%K A384220 nonn,easy
%O A384220 1,2
%A A384220 _Sean A. Irvine_, May 22 2025