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

A084276 Pseudo-random numbers: gcc 2.6.3 version for 32-bit integers.

Original entry on oeis.org

1, 7261, 13503, 15223, 8047, 88, 29253, 1572, 18740, 14060, 25029, 21260, 21203, 8054, 14922, 1084, 23230, 9538, 15465, 24014, 1274, 13434, 20285, 1973, 18297, 3025, 8994, 27214, 8752, 5869, 5683, 29094, 24317, 15766, 22147, 906, 13626, 21410, 32284, 13393, 27934
Offset: 0

Views

Author

Frank Ellermann, May 25 2003

Keywords

Crossrefs

Cf. A084275, A084277, A061364 (other versions).
Cf. A385127 (internal state).

Programs

  • C
    #include 
    unsigned next= 1; int i= 0;
    int main() { while (i++ < 37) next= next *69069 +5, printf( "%d ", (unsigned)( next >> 16) & 0x7FFF ); }

Formula

a(n) = floor(A385127(n + 1) / 2^16) mod 2^15. - Sean A. Irvine, Jun 18 2025

A084275 Pseudo-random numbers: MS C 6.0 version.

Original entry on oeis.org

41, 18467, 6334, 26500, 19169, 15724, 11478, 29358, 26962, 24464, 5705, 28145, 23281, 16827, 9961, 491, 2995, 11942, 4827, 5436, 32391, 14604, 3902, 153, 292, 12382, 17421, 18716, 19718, 19895, 5447, 21726, 14771
Offset: 0

Views

Author

Frank Ellermann, May 20 2003

Keywords

Crossrefs

Programs

  • C
    #include 
    int main()
    {
        long next = 1;
        int i = 0;
        while ( i++ < 33 )
        {
            next = next * 214013L + 2531011L;
            printf( "%d ", (unsigned)( next >> 16) & 0x7FFF );
        }
        printf("\n");
        return 0;
    }

Formula

a(n) = A096558(n+199670977) = floor((A096557(n+199670977) mod 2^31)/2^16). - Zhuorui He, Aug 22 2025

Extensions

Corrected by Alan Klette, Jun 09 2019

A382684 Consecutive internal states of the linear congruential pseudo-random number generator for BCPL when started at 1.

Original entry on oeis.org

1, 2862137630, 1410400247, 1369397724, 1652384221, 2669374922, 2140954419, 1701427304, 2594835833, 3034226998, 3288120879, 389815220, 357129941, 541493090, 3104757995, 2854522816, 2013295089, 2081295438, 2466720615, 4256030860, 3056739021, 751492090
Offset: 1

Views

Author

Sean A. Irvine, Jun 02 2025

Keywords

Comments

Periodic with period 2^32.

Crossrefs

Cf. A096550-A096561 (other pseudo-random number generators).
Cf. A084277 (visible state).

Programs

  • Mathematica
    NestList[Mod[2147001325*# + 715136305, 2^32] &, 1, 50] (* Paolo Xausa, Jun 04 2025 *)

Formula

a(n) = (2147001325 * a(n-1) + 715136305) mod 2^32.
Showing 1-3 of 3 results.