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.

A362128 Indices of records in A360179.

Original entry on oeis.org

1, 3, 5, 7, 9, 12, 15, 21, 25, 29, 52, 69, 87, 100, 138, 176, 233, 252, 265, 338, 371, 384, 400, 447, 459, 492, 515, 594, 606, 677, 779, 794, 850, 896, 1100, 1144, 1204, 1225, 1243, 1584, 1674, 1700, 2214, 2239, 2265, 2338, 2568, 3014, 3621, 3652, 4027, 4058, 4437, 4464, 4584, 4625, 5111, 5201, 5281
Offset: 1

Views

Author

Michael De Vlieger, Apr 09 2023

Keywords

Crossrefs

Programs

  • Mathematica
    nn = 6000; c[] := False; h[] := 0; f[n_] := DivisorSigma[0, n];
    a[1] = j = u = 1; r = 0;
    {1}~Join~Rest@ Reap[Do[
          If[c[j],
            k = j + f[u]; h[j]++; h[u]--,
            k = f[j]; c[j] = True; h[j]++ ];
          u = Min[u, j]; Set[{a[n], j}, {k, k}]; While[h[u] == 0, u++];
          If[k > r, r = k; Sow[n]], {n, 2, nn}] ][[-1, -1]]