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.

A026453 a(n) = least positive integer > a(n-1) and not equal to a(i)*a(j)-2 for 1<=i

Original entry on oeis.org

1, 2, 3, 5, 6, 7, 9, 11, 14, 15, 17, 18, 21, 22, 23, 24, 27, 29, 30, 35, 36, 37, 38, 39, 41, 45, 47, 48, 50, 51, 54, 55, 57, 59, 60, 62, 63, 65, 66, 69, 71, 77, 78, 81, 84, 86, 87, 89, 90, 91, 93, 95, 99, 101, 102, 104, 105, 107, 110, 111
Offset: 1

Views

Author

Keywords

Examples

			After the terms 1, 2, 3, 5, 6, 7, we can get 8 from 2*5 - 2, but not 9 (11 is not a product of two distinct terms from {1, 2, 3, 5, 6, 7}), so a(7) = 9. - _N. J. A. Sloane_, Aug 06 2021
		

Crossrefs

Similar sequences with different starting conditions: A026454 (1,3), A026455 (2,3), A026456 (1,4), A026457 (2,4), A026458 (3,4).
Related sequences with definition using any products (not necessarily distinct) and with various starting conditions: A026459 (1,2), A026460 (1,3), A026461 (2,3), A026462 (1,4), A026463 (2,4), A026464 (3,4).

Programs

  • Mathematica
    a = {1, 2}; used = {a[[1]]*a[[2]] - 2}; Do[k = a[[-1]] + 1; While[MemberQ[used, k], k++]; used = Union[used, k*a - 2]; AppendTo[a, k], {n, 3, 60}]; a (* Ivan Neretin, Mar 06 2016 *)

Extensions

Typos in definition corrected by N. J. A. Sloane, Aug 06 2021 at the suggestion of Harvey P. Dale.