OFFSET
1,3
COMMENTS
Are there any composites in this sequence? If not, is this sequence, with the exception of terms a(1) and a(2), a permutation of the primes?
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..1000 (first 100 terms from Andrew V. Sutherland).
Andrew V. Sutherland, Comments on A139317 and A139319
EXAMPLE
For a(10) we check: 10*1 - 1= 9, which is not coprime to a(4)=3. 10*2 - 1= 19, which is not coprime to a(5)=19. But 10*3 - 1 = 29, which is coprime to terms a(1) through a(9). So a(10) = 29.
MATHEMATICA
Fold[Append[#1, SelectFirst[#2 Range@ 120 - 1, Function[k, CoprimeQ @@ Append[#1, k]]]] &, {1}, Range[2, 58]] (* Michael De Vlieger, Oct 22 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 13 2008
STATUS
approved