login
A354874
a(n) = 1 if A003415(n) is squarefree, otherwise 0.
4
0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1
OFFSET
0
FORMULA
a(0) = a(1) = 0, for n > 1, a(n) = A008966(A003415(n)).
For n > 0, a(n) = A010051(n) + A341994(n), a(n) <= A212793(n).
For n > 1, a(n) = abs(A229343(n)).
MATHEMATICA
d[0] = d[1] = 0; d[n_] := n * Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); a[n_] := If[SquareFreeQ[d[n]], 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Jun 11 2022 *)
PROG
(PARI)
A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
A354874(n) = (issquarefree(A003415(n)));
CROSSREFS
Characteristic function of A328393.
Sequence in context: A358771 A165560 A358220 * A014306 A374220 A335716
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 11 2022
STATUS
approved