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.

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

Original entry on oeis.org

1, 102, 2111, 220, 5837, 7906, 3883, 7160, 2265, 7582, 3927, 3412, 549, 6298, 5315, 4336, 3761, 3030, 2927, 716, 6781, 4946, 8027, 7912, 4489, 2830, 7303, 324, 8149, 3850, 3827, 1504, 4449, 6982, 671, 2236, 4653, 3010, 907, 1496, 3641, 7294, 7607, 6452, 4485
Offset: 1

Views

Author

Sean A. Irvine, Jun 13 2025

Keywords

Comments

Periodic with period 2^13.

Crossrefs

Programs

  • Mathematica
    NestList[Mod[101*# + 1, 2^13] &, 1, 50] (* Paolo Xausa, Jun 18 2025 *)

Formula

a(n) = (101*a(n-1) + 1) mod 2^13.