cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A384081 Consecutive internal states of a linear congruential pseudo-random number generator for the Hewlett-Packard HP-20S when started at 1.

This page as a plain text file.
%I A384081 #35 Jun 17 2025 22:36:06
%S A384081 1,997,994009,1026973,3892081,404757,3542729,2100813,4510561,7029317,
%T A384081 8229049,4361853,8767441,1138677,5260969,5186093,534721,3116837,
%U A384081 7486489,4029533,7444401,2067797,1593609,8828173,1688481,3415557,5310329,4398013,4818961,4504117
%N A384081 Consecutive internal states of a linear congruential pseudo-random number generator for the Hewlett-Packard HP-20S when started at 1.
%C A384081 Periodic with period 500000 (considerably less than the modulus 10^7).
%H A384081 Sean A. Irvine, <a href="/A384081/b384081.txt">Table of n, a(n) for n = 1..10000</a>
%H A384081 Hewlett-Packard, <a href="https://literature.hpcalc.org/items/634">HP-20S Scientific Calculator: Owner's Manual</a>, 1992 (see p. 75).
%H A384081 W. E. Sharp and Carter Bays, <a href="https://doi.org/10.1016/0098-3004(92)90060-5">A review of portable random number generators</a>, Computers and Geosciences, 18, 1 (1982), 79-87.
%H A384081 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers.</a>
%H A384081 <a href="/index/Rec#order_500000">Index entries for linear recurrences with constant coefficients</a>, order 500000.
%F A384081 a(n) = (997 * a(n-1)) mod 10^7.
%t A384081 NestList[Mod[997*#, 10^7] &, 1, 50] (* _Paolo Xausa_, May 26 2025 *)
%Y A384081 Cf. A096550-A096561 (other pseudo-random number generators).
%Y A384081 Cf. A384568.
%K A384081 nonn,easy
%O A384081 1,2
%A A384081 _Sean A. Irvine_, May 23 2025