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.

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

This page as a plain text file.
%I A384292 #15 Jun 19 2025 19:50:59
%S A384292 1,13737668,13733499,10705750,2695365,5655672,8607071,956074,10862281,
%T A384292 15041132,426883,3316798,7405069,1954976,13589735,12754962,4276881,
%U A384292 7083796,15164811,11671078,798805,8347080,9527663,4764282,13282137,16579772,2970771,7760142
%N A384292 Consecutive internal states of the linear congruential pseudo-random number generator (214013*s+13523655) mod 2^24 when started at s=1.
%C A384292 Periodic with period 2^24.
%C A384292 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.
%D A384292 G. Sawitzki, Another random number generator which should be avoided, Statistical Software Newsletter, 11 (1985), 81-82.
%H A384292 Sean A. Irvine, <a href="/A384292/b384292.txt">Table of n, a(n) for n = 1..10000</a>
%H A384292 B. D. Ripley, <a href="https://doi.org/10.1016/0377-0427(90)90346-2">Thoughts on pseudorandom number generators</a>, J of Computational and Applied Mathematics, 31, 1 (1990), 153-163.
%H A384292 W. E. Sharp and Carter Bays, <a href="https://doi.org/10.1016/0098-3004(92)90060-5">A review of portable random number generators</a>, Computers and Geosciences, 18, 1 (1982), 79-87.
%H A384292 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers</a>.
%F A384292 a(n) = (214013 * a(n-1) + 13523655) mod 2^24.
%t A384292 NestList[Mod[214013*# + 13523655, 2^24] &, 1, 50] (* _Paolo Xausa_, May 27 2025 *)
%Y A384292 Cf. A384289, A384290, A384291, A384292.
%K A384292 nonn,easy
%O A384292 1,2
%A A384292 _Sean A. Irvine_, May 24 2025