OFFSET
1,2
EXAMPLE
1,2,4,5,7,8,10,11,...is the sequence of positive integers which are coprime to the 4th composite = 9. 5 is the 4th such integer, so a(4) = 5.
MAPLE
A119991 := proc(nmax) local a, n, i, j, ncomp ; ncomp := [] ; n := 4 ; while nops(ncomp) < nmax do if not isprime(n) then ncomp := [op(ncomp), n] ; fi ; n := n+1 ; od ; a := [] ; for n from 1 to nops(ncomp) do j := 0 ; i := 1 ; while true do if gcd(i, ncomp[n]) = 1 then j := j+1 ; if j = n then a := [op(a), i] ; break ; fi ; fi ; i := i+1 ; od ; od ; RETURN(a) ; end: an := A119991(100) : for i from 1 to nops(an) do printf("%d, ", an[i]) ; od ; # R. J. Mathar, Aug 06 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 03 2006
EXTENSIONS
More terms from R. J. Mathar, Aug 06 2006
STATUS
approved