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.

A060398 Values of k associated with A060397.

Original entry on oeis.org

1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 2, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 4, 1, 0, 3, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 0, 1, 0, 4, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 3, 1, 0, 2, 1, 0, 1, 1, 0, 2
Offset: 0

Views

Author

N. J. A. Sloane, Apr 04 2001

Keywords

Crossrefs

Cf. A060397.

Programs

  • Mathematica
    a[n_] := Switch[n, 0, 1, , Module[{f, kmax0 = 2}, f[kmax] := f[kmax] = MinimalBy[Table[{k, FactorInteger[k^2 + k + 2 n + 1][[1, 1]]}, {k, 0, kmax}], Last, 1]; f[kmax = kmax0]; f[kmax = 2 kmax]; While[f[kmax] != f[kmax/2], kmax = 2 kmax]; f[kmax][[1, 1]]]];
    Table[a[n], {n, 0, 105}] (* Jean-François Alcover, Aug 15 2022 *)

Extensions

More terms from T. D. Noe, Mar 12 2007