OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
EXAMPLE
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
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 *)
CROSSREFS
Similar sequences with different starting conditions: A026454 (1,3), A026455 (2,3), A026456 (1,4), A026457 (2,4), A026458 (3,4).
KEYWORD
nonn
AUTHOR
EXTENSIONS
Typos in definition corrected by N. J. A. Sloane, Aug 06 2021 at the suggestion of Harvey P. Dale.
STATUS
approved