OFFSET
1
LINKS
EXAMPLE
For n = 4 = 2^2, all the exponents present [2] are distinct, therefore a(4) = 1.
For n = 300 = 2^2 * 3^1 * 5^2, the exponents are [2, 1, 2], thus they are not all distinct, therefore a(300) = 0.
MATHEMATICA
a[n_] := If[UnsameQ @@ FactorInteger[n][[;; , 2]], 1, 0]; Array[a, 100] (* Amiram Eldar, Jul 30 2022 *)
PROG
(PARI) A351564(n) = issquarefree(factorback(apply(e->prime(e), (factor(n)[, 2]))));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 02 2022
STATUS
approved