A070238 Sign of core(n)-phi(n) where core(n) is the squarefree part of n and phi the Euler totient function.
0, 1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, -1
Offset: 1
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
Mathematica
Array[Sign[Sqrt[#] /. (c_: 1) a_^(b_: 0) :> (c a^b)^2 - EulerPhi@ #] &, 100] (* Michael De Vlieger, Nov 18 2017, after Bill Gosper at A007913 *)
-
PARI
for(n=1,100,print1(sign(core(n)-eulerphi(n)),","))
Extensions
Comment section edited by Antti Karttunen, Nov 18 2017
Comments