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.

A384746 Consecutive states of the linear congruential pseudo-random number generator MCNP from Los Alamos when started at 1.

Original entry on oeis.org

1, 19073486328125, 29763723208841, 187205367447973, 131230026111313, 264374031214925, 74735272014937, 31978779697717, 72377397341089, 127824407320157, 39323977335081, 168134765887429, 73951303845617, 27971537168493, 266449281326841, 41546074810965
Offset: 1

Views

Author

Sean A. Irvine, Jun 09 2025

Keywords

Comments

Periodic with period 2^46.
Used for Monte Carlo simulations.

Crossrefs

Cf. A096550-A096561 other pseudo-random number generators.

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<2, n,
          irem(5^19*a(n-1), 2^48))
        end:
    seq(a(n), n=1..16);  # Alois P. Heinz, Jun 09 2025
  • Mathematica
    NestList[Mod[5^19*#, 2^48] &, 1, 30] (* Paolo Xausa, Jun 11 2025 *)

Formula

a(n) = 5^19 * a(n-1) mod 2^48.