login
A385363
Consecutive states of the linear congruential pseudo-random number generator (3613*s + 45289) mod 214326 when started at s=1.
1
1, 48902, 123591, 138514, 45161, 109896, 167785, 138566, 18711, 135442, 90977, 183432, 89113, 92906, 80151, 76426, 120539, 42264, 145009, 150062, 188841, 128164, 157661, 210300, 73519, 119522, 11385, 28702, 11831, 139818, 41341, 25100, 71691, 159064, 135515
OFFSET
1,2
COMMENTS
Periodic with period 214326.
Described in Numerical Recipes as a "quick and dirty" generator.
FORMULA
a(n) = (3613 * a(n-1) + 45289) mod 214326.
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(3613*a(n-1)+45289, 214326))
end:
seq(a(n), n=1..44); # after Alois P. Heinz
MATHEMATICA
NestList[Mod[3613*# + 45289, 214326] &, 1, 50] (* after Paolo Xausa *)
CROSSREFS
Sequence in context: A237087 A061737 A391949 * A045938 A309100 A236162
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 26 2025
STATUS
approved