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.

Showing 1-1 of 1 results.

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

Original entry on oeis.org

1, 997, 994009, 1026973, 3892081, 404757, 3542729, 2100813, 4510561, 7029317, 8229049, 4361853, 8767441, 1138677, 5260969, 5186093, 534721, 3116837, 7486489, 4029533, 7444401, 2067797, 1593609, 8828173, 1688481, 3415557, 5310329, 4398013, 4818961, 4504117
Offset: 1

Views

Author

Sean A. Irvine, May 23 2025

Keywords

Comments

Periodic with period 500000 (considerably less than the modulus 10^7).

Crossrefs

Cf. A096550-A096561 (other pseudo-random number generators).
Cf. A384568.

Programs

  • Mathematica
    NestList[Mod[997*#, 10^7] &, 1, 50] (* Paolo Xausa, May 26 2025 *)

Formula

a(n) = (997 * a(n-1)) mod 10^7.
Showing 1-1 of 1 results.