login
A385359
Consecutive states of the linear congruential pseudo-random number generator (1597*s + 51749) mod 244944 when started at s=1.
1
1, 53346, 4799, 122488, 199773, 172142, 135355, 173076, 157289, 174682, 27687, 177968, 131605, 62982, 206963, 142204, 88449, 217058, 97615, 158520, 181037, 133918, 82683, 71684, 142249, 160314, 106727, 13744, 200901, 14006, 129427, 13932, 11249, 135490, 143727
OFFSET
1,2
COMMENTS
Periodic with period 244944.
Described in Numerical Recipes as a "quick and dirty" generator.
FORMULA
a(n) = (1597 * a(n-1) + 51749) mod 244944.
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(1597*a(n-1)+51749, 244944))
end:
seq(a(n), n=1..44); # after Alois P. Heinz
MATHEMATICA
NestList[Mod[1597*# + 51749, 244944] &, 1, 50] (* after Paolo Xausa *)
CROSSREFS
Sequence in context: A195656 A195651 A294752 * A164519 A237180 A186199
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 26 2025
STATUS
approved