OFFSET
1,2
COMMENTS
The common factor rule does not apply at n=1 so the sequence starts with a(1) = 1 and a(2) = 2.
LINKS
Samuel Harkness, Table of n, a(n) for n = 1..10000
Samuel Harkness, MATLAB program
EXAMPLE
a(3) cannot be 3 since then a(a(2))=2 and a(a(3))=3 would have no common factor, but a(3) = 4 is allowed (and puts a constraint on the subsequent a(4) value).
a(6) is 8 because so far we have (1,2,4,6,3). We see that the 6th term must share a factor with the 4th and 3rd terms, which are 6 and 4, respectively. The smallest number not already used that satisfies this property is 8.
PROG
(MATLAB) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Jan 04 2023
STATUS
approved