login
A384341
Consecutive states of the linear congruential pseudo-random number generator (31481*s+21139) mod 10^5 when started at s=1.
3
1, 52620, 51359, 53818, 65597, 80296, 19515, 72854, 37913, 60292, 73591, 39410, 87349, 55008, 27987, 79886, 12305, 94844, 5103, 68682, 99181, 38200, 95339, 88198, 82377, 31476, 17095, 88834, 4293, 69072, 76771, 48990, 75329, 53388, 28767, 35066, 33885, 54824
OFFSET
1,2
COMMENTS
Periodic with period 10^5.
A generator recommended by Van Es et al. for pocket calculators.
Referred to as "Pocket I" in the literature.
LINKS
A.J. Van Es, R.D. Gill, and C. Van Putten, Random number generators for a pocket calculator, Statistica Neerlandica, 37, 3 (1983), 95-102.
FORMULA
a(n) = (31481 * a(n-1) + 21139) mod 10^5.
MATHEMATICA
NestList[Mod[31481*# + 21139, 10^5] &, 1, 50] (* Paolo Xausa, May 27 2025 *)
CROSSREFS
Sequence in context: A201268 A200658 A303266 * A355309 A185530 A057851
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 26 2025
STATUS
approved