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.

A385361 Consecutive states of the linear congruential pseudo-random number generator (2661*s + 36979) mod 175000 when started at s=1.

Original entry on oeis.org

1, 39640, 169019, 46538, 149597, 164596, 1935, 111014, 45233, 1992, 87691, 107730, 56509, 82428, 102887, 119286, 7025, 5504, 158123, 102282, 84381, 49820, 132999, 97318, 177, 157976, 61115, 88994, 75013, 146572, 165071, 40910, 48489, 91208, 16467, 105666
Offset: 1

Views

Author

Sean A. Irvine, Jun 26 2025

Keywords

Comments

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

Crossrefs

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<2, n,
          irem(2661*a(n-1)+36979, 175000))
        end:
    seq(a(n), n=1..44);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[2661*# + 36979, 175000] &, 1, 50] (* after Paolo Xausa *)

Formula

a(n) = (2661 * a(n-1) + 36979) mod 175000.