login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096557 Consecutive internal states of the linear congruential pseudo-random number generator rand() used in Microsoft's Visual C++. 2
0, 2531011, 505908858, 3539360597, 159719620, 2727824503, 773150046, 548247209, 2115878600, 2832368235, 2006221698, 2531105853, 3989110284, 2222380191, 2165923046, 1345953809, 1043415696, 586225427, 3870123402 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1)=0, a(n)=(a(n-1) * 214013 + 2531011) mod 2^32. The sequence is periodic with period length 2^32.
MAPLE
a:= proc(n) option remember; `if`(n<2, 0,
irem(214013 *a(n-1) +2531011, 4294967296))
end:
seq(a(n), n=1..30); # Alois P. Heinz, Jun 10 2014
PROG
(PARI) A096557(n)=lift((Mod(214013, 2^34)^(n-1)-1)*13129821757)>>2 \\ M. F. Hasler, May 14 2015
CROSSREFS
Cf. A096558 corresponding output. A096550-A096561 other pseudo-random number generators.
Sequence in context: A183651 A259628 A251857 * A345087 A345088 A234664
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jul 21 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)