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