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-4 of 4 results.

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.

A383127 Consecutive internal states of the linear congruential pseudo-random number generator (205*s + 29573) mod 139968 when started at 1.

Original entry on oeis.org

1, 29778, 115439, 39976, 106509, 28910, 77467, 93924, 108377, 131914, 58119, 46688, 82789, 65190, 96563, 89500, 41265, 90818, 31519, 52440, 2237, 68254, 24843, 83540, 79177, 24570, 27575, 83728, 117717, 87062, 101347, 90444, 94817, 11506, 8847, 23624, 113581
Offset: 1

Views

Author

Sean A. Irvine, Jun 17 2025

Keywords

Comments

Periodic with period 139968.
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(205*a(n-1)+29573, 139968))
        end:
    seq(a(n), n=1..45);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[205*# + 29573, 139968] &, 1, 50] (* Paolo Xausa, Jun 18 2025 *)

Formula

a(n) = (205*a(n-1) + 29573) mod 139968.

A385337 Consecutive states of the linear congruential pseudo-random number generator (1291*s + 4621) mod 21870 when started at s=1.

Original entry on oeis.org

1, 5912, 4383, 20614, 1505, 1146, 18817, 21668, 6279, 18910, 10511, 14922, 1453, 21494, 345, 12616, 20597, 1428, 11089, 17540, 13311, 21172, 173, 9264, 1555, 86, 6297, 20278, 5129, 21420, 14161, 3152, 6033, 7504, 3875, 20886, 2737, 17018, 17379, 2290, 8561
Offset: 1

Views

Author

Sean A. Irvine, Jun 25 2025

Keywords

Comments

Periodic with period 21870.
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(1291*a(n-1)+4621, 21870))
        end:
    seq(a(n), n=1..44);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[1291*# + 4621, 21870] &, 1, 50] (* after Paolo Xausa *)

Formula

a(n) = (1291 * a(n-1) + 4621) mod 21870.

A385339 Consecutive states of the linear congruential pseudo-random number generator (1255*s + 6173) mod 29282 when started at s=1.

Original entry on oeis.org

1, 7428, 16637, 7542, 13297, 3168, 28943, 19958, 17353, 27662, 22813, 27974, 4425, 25250, 11799, 26508, 9361, 12146, 22763, 23788, 21755, 17874, 8031, 12070, 15229, 26704, 21085, 26202, 5997, 6934, 11589, 26496, 23583, 28018, 1081, 15856, 22975, 26310, 24409
Offset: 1

Views

Author

Sean A. Irvine, Jun 25 2025

Keywords

Comments

Periodic with period 29282.
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(1255*a(n-1)+6173, 29282))
        end:
    seq(a(n), n=1..44);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[1255*# + 6173, 29282] &, 1, 50] (* after Paolo Xausa *)

Formula

a(n) = (1255 * a(n-1) + 6173) mod 29282.
Showing 1-4 of 4 results.