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.

A384240 Consecutive states of the linear congruential pseudo-random number generator (2897*s + 1) mod 2^23 when started at s=1.

This page as a plain text file.
%I A384240 #13 Jun 19 2025 19:44:06
%S A384240 1,2898,6899,3209188,2439973,5393846,6383767,5280968,6531913,6640922,
%T A384240 3672891,3610284,6787181,7954814,1589983,834960,2960017,2011874,
%U A384240 6705027,4835700,47541,3508550,5665063,3570264,8289753,7218346,7137227,7016508,1226493,4769038
%N A384240 Consecutive states of the linear congruential pseudo-random number generator (2897*s + 1) mod 2^23 when started at s=1.
%C A384240 Periodic with period 2^23.
%D A384240 M. R. Eagle, Introduction to BASIC, 1976.
%H A384240 Sean A. Irvine, <a href="/A384240/b384240.txt">Table of n, a(n) for n = 1..10000</a>
%H A384240 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers</a>.
%F A384240 a(n) = (2897 * a(n-1) + 1) mod 2^23.
%t A384240 NestList[Mod[2897*# + 1, 2^23] &, 1, 50] (* _Paolo Xausa_, May 23 2025 *)
%Y A384240 Cf. A096550-A096561 other pseudo-random number generators.
%K A384240 nonn,easy
%O A384240 1,2
%A A384240 _Sean A. Irvine_, May 22 2025