OFFSET
1,5
COMMENTS
Möbius transform of A033879, deficiency of n. - Antti Karttunen, Dec 26 2017
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..10000
FORMULA
From Antti Karttunen, Dec 26 2017: (Start)
a(2n) = A297114(2n).
(End)
Sum_{k=1..n} a(k) ~ c * n^2, where c = 6/Pi^2 - 1/2 = 0.107927... . - Amiram Eldar, Sep 07 2023
EXAMPLE
Case 1# - totient(x)-cototient[x] = 0 if x is a power of 2;
Case 2# - totient(x)>cototient[x] gives odd primes and also A067800, (= A014076 except probably A036798); e.g. n = 33: a(33) = 2.20-33 = 7; n = p prime: a(p) = p-2;
Case 3# - totient(x)<cototient[x] gives even numbers without powers of 2 and most probably A036798; e.g. n = 20: a(20) = -4; n = 105: a(105) = 2.48-105 = 96-105 = -9.
MAPLE
MATHEMATICA
Table[2*EulerPhi[w]-w, {w, 1, 1000}]
PROG
(PARI) a(n)=2*eulerphi(n)-n \\ Charles R Greathouse IV, Feb 21 2013
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Labos Elemer, May 08 2003
STATUS
approved