login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065152 Cototient(totient(n)) - totient(cototient(n)). 2
0, -1, 0, 0, 1, -1, 3, 0, 2, 0, 5, -2, 7, 0, -2, 0, 7, 0, 11, 0, 2, 2, 11, -4, 8, 2, 6, 0, 15, -6, 21, 0, 0, 2, 6, 0, 23, 4, 8, 0, 23, 0, 29, 4, 4, 4, 23, -8, 24, 4, -2, 4, 27, 0, 16, 0, 12, 8, 29, -12, 43, 6, 6, 0, 16, -10, 45, 4, 4, -6, 45, 0, 47, 6, 0, 8, 28, -2, 53, 0, 18, 12, 41, 0, 20, 10, 2, 8, 47, -4, 30, 8, 24, 8, 26, -16, 63, 6, 20, 8, 59, -8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
LINKS
FORMULA
a(n) = (phi(n) - phi(phi(n))) - (phi(n - phi(n))) = A000010(A051953(n)) - A051953(A000010(n)).
EXAMPLE
a(100) = 8, since phi(100) = 40, 100 - phi(100) = 60 = cototient(100), cototient(40) = 40 - 16 = 24, totient(60) = 16 so a(100) = 24 - 16 = 8.
MATHEMATICA
coTotient[n_] := n - EulerPhi@n; A065152[n_] := coTotient@ EulerPhi@ n - EulerPhi@ coTotient@ n; Array[A065152, 102] (* Robert G. Wilson v, Feb 24 2010 *)
PROG
(PARI) { for (n = 1, 1000, t=eulerphi(n); c=n - t; if (n>1, a=t - eulerphi(t) - eulerphi(c), a=0); write("b065152.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 13 2009
CROSSREFS
Cf. A065153, A065154, A065155 (positions of zeros, negative, and positive numbers).
Sequence in context: A061064 A016597 A128114 * A344209 A171759 A073538
KEYWORD
sign
AUTHOR
Labos Elemer, Oct 19 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 11:59 EDT 2024. Contains 371254 sequences. (Running on oeis4.)