OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
MATHEMATICA
a = {1, 2}; used = {a[[1]]^2 + 2, a[[1]]*a[[2]] + 2, a[[2]]^2 + 2}; Do[k = a[[-1]] + 1; While[MemberQ[used, k], k++]; AppendTo[a, k]; used = Union[used, k*a + 2], {n, 3, 60}]; a (* Ivan Neretin, Mar 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved