A026453
a(n) = least positive integer > a(n-1) and not equal to a(i)*a(j)-2 for 1<=i
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
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
Links
- Ivan Neretin, Table of n, a(n) for n = 1..1000
Crossrefs
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.