login
A383162
Consecutive states of the linear congruential pseudo-random number generator (7200*s + 1) mod 23^4 when started at s=1.
1
1, 7201, 76616, 68590, 208477, 247118, 20523, 9553, 220556, 185367, 80672, 168326, 235671, 155218, 164488, 26489, 149080, 185766, 155062, 160652, 111548, 1931, 190992, 3727, 249506, 143822, 106701, 83656, 105369, 7850, 271960, 64524, 36741, 85456, 192683
OFFSET
1,2
COMMENTS
Periodic with period 23^4.
LINKS
J. Eichenauer-Herrmann and H. Grothe, Upper bounds for the Beyer ratios of linear congruential generators, J Comp. Appl. Math., 31 1 (1990), 73-80.
W. E. Sharp and Carter Bays, A review of portable random number generators, Computers and Geosciences, 18, 1 (1982), 79-87.
FORMULA
a(n) = (7200*a(n-1) + 1) mod 23^4.
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(7200*a(n-1)+1, 279841))
end:
seq(a(n), n=1..45); # after Alois P. Heinz
MATHEMATICA
NestList[Mod[7200*# + 1, 23^4] &, 1, 50] (* Paolo Xausa, Jun 18 2025 *)
CROSSREFS
Sequence in context: A239566 A236993 A218513 * A181259 A250054 A346594
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 13 2025
STATUS
approved