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.

A383126 Consecutive internal states of the linear congruential pseudo-random number generator (281*s + 28411) mod 134456 when started at 1.

Original entry on oeis.org

1, 28692, 23503, 44410, 3213, 124528, 62219, 32670, 65673, 62052, 120199, 55874, 132109, 41184, 37899, 56006, 34745, 110924, 4263, 16210, 11917, 15688, 134147, 76038, 16585, 117292, 45743, 108874, 100493, 31184, 51475, 106094, 126049, 86252, 63143, 23402
Offset: 1

Views

Author

Sean A. Irvine, Jun 17 2025

Keywords

Comments

Periodic with period 134456.
Described in Numerical Recipes as a "quick and dirty" generator.

References

  • William H. Press, Saul A. Teukolsky, William T. Vetterling, and Brian P. Flannery, Numerical Recipes in C (2nd ed), Cambridge University Press, 1999 (see p. 285).

Crossrefs

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<2, n,
          irem(281*a(n-1)+28411, 134456))
        end:
    seq(a(n), n=1..45);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[281*# + 28411, 134456] &, 1, 50] (* Paolo Xausa, Jun 18 2025 *)

Formula

a(n) = (281*a(n-1) + 28411) mod 134456.