OFFSET
1,4
COMMENTS
FORMULA
a(n) = A048983(n) + 1. - Michel Marcus, Jul 14 2013
EXAMPLE
9 is 4th composite number, gcd(9,1) = gcd(9,4) = gcd(9,8) = 1, so a(4) = 3.
PROG
(PARI) ai(nn) = {forcomposite (n=1, nn, nb = 0; for(d=1, n-1, if (! isprime(d) && gcd(n, d) == 1, nb++)); print1(nb, ", "); ); } \\ Michel Marcus, Jul 14 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
STATUS
approved