login
A385079
Consecutive states of the linear congruential pseudo-random number generator 228*s mod (2^16+1) when started at s=1.
2
1, 228, 51984, 55692, 49135, 61490, 60339, 60059, 61756, 55450, 59496, 64466, 17960, 31586, 58075, 2626, 8895, 61950, 34145, 51694, 55109, 47285, 32912, 32718, 54023, 61825, 5645, 41857, 40531, 351, 14491, 27098, 17866, 10154, 21317, 10538, 43332, 49146, 63998
OFFSET
1,2
COMMENTS
Periodic with period 2^16.
Attributed by Sharp and Bays to L. Afflerbach.
FORMULA
a(n) = 228 * a(n-1) mod (2^16+1).
MAPLE
a:= proc(n) option remember; `if`(n<2, n,
irem(228*a(n-1), 65537))
end:
seq(a(n), n=1..44); # after Alois P. Heinz
MATHEMATICA
NestList[Mod[228*#, 65537] &, 1, 50] (* Paolo Xausa, Jun 17 2025 *)
PROG
(PARI) a(n) = lift(Mod(228, 65537)^(n-1)) \\ Jianing Song, Jun 17 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Jun 16 2025
STATUS
approved