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.

A383798 Consecutive states of the linear congruential pseudo-random number generator for SIMSCRIPT II when started at 1.

Original entry on oeis.org

1, 630360016, 1549035330, 264620982, 529512731, 1896697821, 2116530888, 1923129168, 1674201058, 108088067, 859154222, 1946499387, 1377890442, 1382793310, 768302678, 1014576563, 514017889, 2050350098, 1928578391, 863848128, 246801402, 166165530, 709020555
Offset: 1

Views

Author

Sean A. Irvine, May 28 2025

Keywords

Comments

Periodic with period 2^31-2.

References

  • P. J. Kiviat, R. Villanueva, and H. Markowitz, The Simscript II Programming Language, Prentice-Hall, 1969.

Crossrefs

Programs

  • Magma
    [n le 1 select 1 else 630360016 * Self(n-1) mod (2^31-1): n in [1..30]]; // Vincenzo Librandi, May 29 2025
  • Maple
    a:= proc(n) option remember; `if`(n<2, n,
          irem(630360016*a(n-1), 2^31-1))
        end:
    seq(a(n), n=1..23);  # Alois P. Heinz, May 29 2025
  • Mathematica
    RecurrenceTable[{a[1]==1,a[n]==Mod[a[n-1]*630360016,(2^31-1)]},a,{n,1,30}] (* Vincenzo Librandi, May 29 2025 *)

Formula

a(n) = 630360016 * a(n-1) mod (2^31-1).