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.

A098652 Records in A098650.

Original entry on oeis.org

9, 341, 1105, 1541, 1729, 1891, 2465, 29341, 162401, 252601, 294409, 334153, 340561, 399001, 410041, 488881, 530881, 636641, 954271, 1024651, 1152271, 1193221, 1461241, 1615681, 1857241
Offset: 1

Views

Author

Robert G. Wilson v, Sep 18 2004

Keywords

Crossrefs

Programs

  • Mathematica
    PrimeFactors[n_] := Flatten[ Table[ # [[1]], {1} ] & /@ FactorInteger[ n ]]; f[n_] := Block[{k = n + 1}, If[EvenQ[k], k++ ]; While[ PrimeQ[k] || Union[ PowerMod[ PrimeFactors[n], k - 1, k]] != {1}, k += 2]; k]; a = {1}; b = {9}; Do[ If[ SquareFreeQ[n], c = f[n]; If[c > b[[ -1]], AppendTo[a, n]; AppendTo[b, c]; Print[n]]], {n, 2, 145000}]; b

Extensions

a(13)-a(25) from Amiram Eldar, Jul 07 2021