OFFSET
1,3
COMMENTS
This generator is a variant of A096551.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
George S. Fishman, Multiplicative Congruential Random Number Generators with Modulus 2^beta: An Exhaustive Analysis for beta = 32 and a Partial Analysis for beta = 48, Math. Comp., 54, 189 (1990), 331-344.
B. D. Ripley, Computer Generation of Random Variables: A Tutorial, International Statistical Review, 51 (1983), 301-309.
B. D. Ripley, Thoughts on pseudorandom number generators, J of Computational and Applied Mathematics, 31, 1 (1990), 153-163.
FORMULA
a(1)=0, a(n) = (69069*a(n-1)+1) mod 2^32. The sequence is periodic with period length 2^32. [Corrected based on a comment from Kevin Ryde, Nov 13 2024]
MAPLE
a:= proc(n) option remember; `if`(n<2, 0,
irem(69069 *a(n-1)+1, 4294967296))
end:
seq(a(n), n=1..30); # Alois P. Heinz, Jun 10 2014
MATHEMATICA
NestList[Mod[#*69069 + 1, 2^32] &, 0, 50] (* Paolo Xausa, Aug 29 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jul 18 2004
STATUS
approved
