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.

A026464 a(n) = least positive integer > a(n-1) and not a(i)*a(j)-2 for 1<=i<=j<=n.

Original entry on oeis.org

3, 4, 5, 6, 8, 9, 11, 12, 15, 17, 19, 20, 21, 24, 26, 27, 29, 32, 33, 35, 36, 37, 39, 40, 41, 44, 45, 47, 48, 50, 51, 54, 56, 57, 59, 60, 63, 65, 67, 68, 69, 71, 72, 75, 77, 80, 81, 84, 87, 89, 90, 91, 92, 95, 96, 99, 101, 104, 105, 107
Offset: 1

Views

Author

Keywords

Comments

Essentially the same as A026460. [From R. J. Mathar, Oct 23 2008]

Programs

  • Mathematica
    a[1] = 3; a[2] = 4; a[n_] := a[n] =
    For[k = a[n-1]+1, True, k++, a[n] = k; If[AllTrue[Tuples[Range[n], {2}], k != a[#[[1]]] a[#[[2]]] - 2&], Return[k]]
    ];
    Array[a, 60] (* Jean-François Alcover, Oct 30 2018 *)