OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
EXAMPLE
8000 = 2^6 * 5^3. 6 is not coprime to 8000, but 3 is. So a(8000) = 1.
MATHEMATICA
Table[Length[Select[Table[FactorInteger[n][[i, 2]], {i, 1, Length[FactorInteger[n]]}], GCD[ #, n] == 1 &]], {n, 2, 90}] (* Stefan Steinerberger, Dec 21 2007 *)
Join[{0}, Table[Count[FactorInteger[n][[All, 2]], _?(CoprimeQ[#, n]&)], {n, 2, 110}]] (* Harvey P. Dale, Aug 05 2018 *)
PROG
(PARI) A136177(n)={local(t); sum(j=1, #t=factor(n)[, 2]~, gcd(n, t[j])==1)} \\ M. F. Hasler, Dec 21 2007
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Leroy Quet, Dec 19 2007
EXTENSIONS
More terms from M. F. Hasler and Stefan Steinerberger, Dec 21 2007
STATUS
approved
