OFFSET
1,2
COMMENTS
Periodic with period 2^26-9318 = 67099546.
Originally defined by Downham and Roberts in 1967, subsequently used in the Demos modelling system in 2003.
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..10000
Graham Birtwistle, Demos: a system for Discrete Event Modelling on Simula, Jan 2003.
D. Y. Downham and F. D. K. Roberts, Multiplicative congruential pseudo-random number generators, The Computer J., 10, 1 (1967), 74-77
FORMULA
a(n) = 2^13 * a(n-1) mod (2^26-9317).
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(2^13*a(n-1), 2^26-9317))
end:
seq(a(n), n=1..28); # Alois P. Heinz, May 26 2025
MATHEMATICA
NestList[Mod[2^13*#, 2^26 - 9317] &, 1, 50] (* Paolo Xausa, May 26 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 25 2025
STATUS
approved
