OFFSET
1,2
COMMENTS
Likely a permutation of the positive integers.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
The first 7 terms of the sequence are 1,2,3,5,6,9,4. Of these there are 3 terms (1, 2 and 4) that divide 8, so we want for a(8) the 3rd positive integer not among the first 7 terms of the sequence (i.e., we want the third term of 7,8,10,11,...). So a(8)= 10.
MAPLE
A118809 := proc(nmin) local a, anxt, i, n, j ; a := [1] ; while nops(a) < nmin do n := nops(a)+1 ; i := 0 ; for j in a do if n mod j = 0 then i := i+1 ; fi ; od: anxt := 0 ; while i > 0 do anxt := anxt+1 ; while anxt in a do anxt := anxt+1 ; od ; i := i-1; od ; a := [op(a), anxt] ; od; a ; end: A118809(100) ; # R. J. Mathar, Sep 06 2007
MATHEMATICA
Fold[Append[#1, Complement[Range[2 Max@#1], #1][[Length@Intersection[Divisors[#2], #1]]]] &, {1}, Range[2, 72]] (* Ivan Neretin, Feb 06 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 30 2006
EXTENSIONS
More terms from R. J. Mathar, Sep 06 2007
STATUS
approved