A385365 Consecutive states of the linear congruential pseudo-random number generator (3661*s + 30809) mod 145800 when started at s=1.
1, 34470, 108479, 13228, 52917, 137546, 139315, 54624, 117473, 135262, 88191, 96860, 49669, 56418, 124307, 76936, 7905, 102614, 119863, 137052, 80381, 81250, 55059, 106208, 9697, 102126, 82895, 99604, 35253, 59042, 107971, 48840, 83249, 83398, 45687, 58316
Offset: 1
Links
Programs
-
Maple
a:= proc(n) option remember; `if`(n<2, n, irem(3661*a(n-1)+30809, 145800)) end: seq(a(n), n=1..44); # after Alois P. Heinz
-
Mathematica
NestList[Mod[3661*# + 30809, 145800] &, 1, 50] (* after Paolo Xausa *)
Formula
a(n) = (3661 * a(n-1) + 30809) mod 145800.
Comments