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.

A384289 Consecutive internal states of the linear congruential pseudo-random number generator for GWBASIC 3.23 when started at 1.

Original entry on oeis.org

1, 2745024, 2356867, 12486458, 8679701, 14802820, 7082039, 14027294, 11434089, 5380488, 9466411, 4830274, 15796733, 15840460, 12300383, 15321510, 15423953, 11736400, 10919635, 14405194, 3988453, 8904468, 807303, 4097582, 10044473, 2422296, 6167675, 914770
Offset: 1

Views

Author

Sean A. Irvine, May 24 2025

Keywords

Comments

Periodic with period 2^24.
Also the random number generator used by Commodore AmigaBASIC.
Possibly also used by other versions of GWBASIC.

References

  • David I. Schneider, Handbook of BASIC (3rd ed.), Simon & Schuster, 1988 (see p. 497).

Crossrefs

Cf. A096550-A096561 other pseudo-random number generators.
Cf. A384290, A384291 (similar parameters).

Programs

  • Mathematica
    NestList[Mod[214013*#+2531011, 2^24] &, 1, 27] (* Stefano Spezia, May 24 2025 *)

Formula

a(n) = (214013 * a(n-1) + 2531011) mod 2^24.