OFFSET
1,7
COMMENTS
30 is the largest number n with the property that if 1 < k < n and k is relatively prime to n, then k is prime. In other words, a(30) = 0 and if m > 30, then a(m) > 0. - Jonathan Sondow, Dec 08 2012
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
A048864(n) = a(n) + 1. - Peter Luschny, Oct 22 2010
MATHEMATICA
Table[ Count[ Select[ Range[ n ], GCD[ #, n ]===1& ], q_/; !(PrimeQ[ q ]||q===1) ], {n, 180} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Minor edits by Ray Chandler, Mar 16 2010
STATUS
approved