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.
%I A384404 #30 Jun 20 2025 17:43:23 %S A384404 1,134775814,3698175007,870078620,1172187917,2884733762,1368768587, %T A384404 694906232,1598751577,1828254910,352239543,2039224980,303092965, %U A384404 3611442298,256513635,1259699184,3939707825,1580146294,3327160399,1408429452,2996491197,3625686706,3083712891 %N A384404 Consecutive states of the linear congruential pseudo-random number generator for Turbo Pascal when started at 1. %C A384404 Periodic with period 2^32. %C A384404 Also used by Borland Delphi and Virtual Pascal. %H A384404 Sean A. Irvine, <a href="/A384404/b384404.txt">Table of n, a(n) for n = 1..10000</a> %H A384404 Wikipedia, <a href="https://en.wikipedia.org/wiki/Linear_congruential_generator">Linear congruential generator</a> %H A384404 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers</a>. %F A384404 a(n) = (134775813 * a(n-1) + 1) mod 2^32. %p A384404 a:= proc(n) option remember; `if`(n=1, 1, %p A384404 irem(134775813*a(n-1)+1, 2^32)) %p A384404 end: %p A384404 seq(a(n), n=1..23); # _Alois P. Heinz_, May 30 2025 %t A384404 NestList[Mod[134775813*# + 1, 2^32] &, 1, 50] (* _Paolo Xausa_, Jun 04 2025 *) %Y A384404 Cf. A152960, A383940, A384126, A384150, A384194, A384236, A384339, A384429, A384432. %K A384404 nonn,easy %O A384404 1,2 %A A384404 _Sean A. Irvine_, May 30 2025