OFFSET
1,6
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 2000 terms from Joshua Oliver)
Wikipedia, Totative.
EXAMPLE
a(6) = 3, because 6 has 2 totatives and there are 3 integers less than 6 with 2 or more totatives: 3 with 2 totatives, 4 with 2 totatives, and 5 with 4 totatives.
MATHEMATICA
Table[Length[Select[Range[n-1], EulerPhi[#]>=EulerPhi[n]&]], {n, 1, 100}]
PROG
(PARI) a(n) = sum(k=1, n-1, eulerphi(k) >= eulerphi(n)); \\ Michel Marcus, Nov 22 2019
(PARI) first(n)=my(u=vectorsmall(n), v=vector(n)); forfactored(f=1, n, u[f[1]]=eulerphi(f)); for(i=1, n, v[i]=sum(j=1, i-1, u[j]>=u[i])); v \\ Charles R Greathouse IV, Dec 11 2019
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Joshua Oliver, Nov 22 2019
STATUS
approved