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.

A385080 Consecutive states of the linear congruential pseudo-random number generator 237*s mod (2^16+1) when started at s=1.

Original entry on oeis.org

1, 237, 56169, 8042, 5381, 30094, 54282, 19582, 53344, 59424, 58570, 52783, 57541, 5521, 63274, 53502, 31333, 20240, 12679, 55758, 41709, 54483, 1682, 5412, 37441, 26022, 6736, 23544, 9283, 37350, 4455, 7243, 12629, 43908, 51350, 45605, 60317, 8063, 10358
Offset: 1

Views

Author

Sean A. Irvine, Jun 16 2025

Keywords

Comments

Periodic with period 2^16.
Attributed by Sharp and Bays to L. Afflerbach.

Crossrefs

Cf. A385079.

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<2, n,
          irem(237*a(n-1), 65537))
        end:
    seq(a(n), n=1..44);  # after Alois P. Heinz
  • Mathematica
    NestList[Mod[237*#, 65537] &, 1, 50] (* Paolo Xausa, Jun 17 2025 *)
  • PARI
    a(n) = lift(Mod(237,65537)^(n-1)) \\ Jianing Song, Jun 17 2025

Formula

a(n) = 237 * a(n-1) mod (2^16+1).
Showing 1-1 of 1 results.