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-4 of 4 results.

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.

A384290 Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+10395331) mod 2^24 when started at s=1.

Original entry on oeis.org

1, 10609344, 3405443, 427834, 2388245, 7987076, 1839159, 4065822, 15628393, 661896, 14709291, 13743170, 13699581, 13219020, 11251807, 9554342, 7035345, 11212112, 3579603, 10735178, 6085605, 10477332, 3953031, 2524718, 5850169, 6092312, 3021947, 1439058
Offset: 1

Views

Author

Sean A. Irvine, May 24 2025

Keywords

Comments

Periodic with period 2^24.
Used by some versions of IBM BASIC.

References

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

Crossrefs

Programs

  • Mathematica
    NestList[Mod[214013*# + 10395331, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)

Formula

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

A384292 Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+13523655) mod 2^24 when started at s=1.

Original entry on oeis.org

1, 13737668, 13733499, 10705750, 2695365, 5655672, 8607071, 956074, 10862281, 15041132, 426883, 3316798, 7405069, 1954976, 13589735, 12754962, 4276881, 7083796, 15164811, 11671078, 798805, 8347080, 9527663, 4764282, 13282137, 16579772, 2970771, 7760142
Offset: 1

Views

Author

Sean A. Irvine, May 24 2025

Keywords

Comments

Periodic with period 2^24.
Intended as a generator in IBM BASIC, but was actually implemented incorrectly as (214013 * (s mod 2^16) + 13523655) mod 2^24 (see A384293) resulting in a period of just 2^16.

References

  • G. Sawitzki, Another random number generator which should be avoided, Statistical Software Newsletter, 11 (1985), 81-82.

Crossrefs

Programs

  • Mathematica
    NestList[Mod[214013*# + 13523655, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)

Formula

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

A384293 Consecutive internal states of the pseudo-random number generator (214013*(s mod 2^16)+13523655) mod 2^24 when started at s=1.

Original entry on oeis.org

1, 13737668, 4492923, 1465174, 1188037, 13716600, 8738143, 9934506, 13614793, 13927020, 11895683, 4496446, 458253, 7197856, 2514151, 3121170, 8864401, 3086100, 2844043, 6755878, 2240597, 10706376, 942447, 16495226, 10660697, 5962940, 2184339, 16607502
Offset: 1

Views

Author

Sean A. Irvine, May 24 2025

Keywords

Comments

Periodic with period 2^16 (note 1 is not part of the repeating cycle).
This generator was used in IBM BASIC and was an erroneous attempt to implement (214013*s+13523655) mod 2^24 (see A384292).

References

  • G. Sawitzki, Another random number generator which should be avoided, Statistical Software Newsletter, 11 (1985), 81-82.

Crossrefs

Programs

  • Mathematica
    NestList[Mod[214013*Mod[#, 2^16] + 13523655, 2^24] &, 1, 50] (* Paolo Xausa, May 27 2025 *)

Formula

a(n) = (214013 * (s mod 2^16) + 13523655) mod 2^24.
Showing 1-4 of 4 results.