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.

A381318 Consecutive internal states of the linear congruential pseudo-random number generator (5^11*s+36643009) mod 2^30 when started at s=1.

This page as a plain text file.
%I A381318 #88 May 28 2025 16:19:53
%S A381318 1,85471134,226025511,290047084,367499773,919594538,41492227,69996632,
%T A381318 355863737,216742518,668535967,32946180,903885877,903092354,636577019,
%U A381318 361498480,694791281,514862158,296723479,683149980,429969773,598532570,103941619,668765576
%N A381318 Consecutive internal states of the linear congruential pseudo-random number generator (5^11*s+36643009) mod 2^30 when started at s=1.
%C A381318 Periodic with period 2^30.
%C A381318 The numbers on p. 124 of Grame and O'Donnel are given by s/2^30 using this generator starting from s=714133185.
%D A381318 Carl Grame and Dan O'Donnel, Learning BASIC: Programming Essentials, Science Research Associates, 1984 (see p. 124).
%H A381318 Sean A. Irvine, <a href="/A381318/b381318.txt">Table of n, a(n) for n = 1..10000</a>
%H A381318 <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers</a>.
%F A381318 a(n) = (5^11 * a(n-1) + 36643009) mod 2^30.
%t A381318 NestList[Mod[5^11*# + 36643009, 2^30] &, 1, 50] (* _Paolo Xausa_, May 27 2025 *)
%Y A381318 Cf. A096550-A096561 other pseudo-random number generators.
%Y A381318 Cf. A384388 (similar parameters).
%K A381318 nonn,easy
%O A381318 1,2
%A A381318 _Sean A. Irvine_, May 26 2025