login
Consecutive internal states of the linear congruential pseudo-random number generator used in the Watcom FORTRAN Function URAND when started with SEED=0.
1

%I #13 Aug 29 2024 12:01:43

%S 0,453816693,2013878382,1461722811,653338732,1830525137,1741773690,

%T 526418231,109789464,1577774445,1454795974,1716389619,180917764,

%U 1381854025,70154322,301698031,2068689712,1594166885,1923590686,579939371,2056610972,914297537,1800695338,1283998631

%N Consecutive internal states of the linear congruential pseudo-random number generator used in the Watcom FORTRAN Function URAND when started with SEED=0.

%H Alois P. Heinz, <a href="/A096556/b096556.txt">Table of n, a(n) for n = 1..10000</a>

%H Open Watcom, <a href="http://www.openwatcom.org/">Sybase Watcom C/C++ and FORTRAN compiler</a>.

%H <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers</a>.

%F a(1)=0, a(n) = ( 2147437301 * a(n-1) + 453816693 ) mod 2^31. The sequence is periodic with period length 2^31.

%p a:= proc(n) option remember; `if`(n<2, 0,

%p irem(2147437301 * a(n-1) +453816693, 2147483648))

%p end:

%p seq(a(n), n=1..30); # _Alois P. Heinz_, Jun 10 2014

%t NestList[Mod[#*2147437301 + 453816693, 2^31] &, 0, 50] (* _Paolo Xausa_, Aug 29 2024 *)

%Y Cf. A096550-A096561 other pseudo-random number generators.

%K nonn

%O 1,2

%A _Hugo Pfoertner_, Jul 20 2004