OFFSET
1,2
COMMENTS
Periodic with period 2^31-2.
REFERENCES
P. J. Kiviat, R. Villanueva, and H. Markowitz, The Simscript II Programming Language, Prentice-Hall, 1969.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
George S. Fishman and Louis R. Moore, A Statistical Evaluation of Multiplicative Congruential Random Number Generators with Modulus 2^31-1, J American Statistical Assoc., 77, 377 (1982), 129-136.
Pierre L'Ecuyer, Efficient and portable combined random number generators, Commun. ACM, 31, 6 (1988), 742-749 and 774.
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(n) = 630360016 * a(n-1) mod (2^31-1).
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(630360016*a(n-1), 2^31-1))
end:
seq(a(n), n=1..23); # Alois P. Heinz, May 29 2025
MATHEMATICA
RecurrenceTable[{a[1]==1, a[n]==Mod[a[n-1]*630360016, (2^31-1)]}, a, {n, 1, 30}] (* Vincenzo Librandi, May 29 2025 *)
PROG
(Magma) [n le 1 select 1 else 630360016 * Self(n-1) mod (2^31-1): n in [1..30]]; // Vincenzo Librandi, May 29 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 28 2025
STATUS
approved
