OFFSET
1
COMMENTS
Characteristic function of A383016.
a(n) = 0 if any two exponents in the prime factorization of n differ.
It follows from the definition that e is also squarefree.
LINKS
Friedjof Tellkamp, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
isA384667 := n -> local p; is(1 >= nops({seq(p[2], p in ifactors(n)[2])})):
isA383575 := n -> n = 1 or(isA384667(n) and isA385055(n)):
A383575 := n -> ifelse(isA383575(n), 1, 0):
seq(A383575(n), n = 1..86); # Peter Luschny, Jun 16 2025
MATHEMATICA
a[n_] := Boole[fi = FactorInteger[n]; Equal@@fi[[All, 2]] && (-1)^PrimeNu[n] == MoebiusMu[fi[[1, 2]]]]; Array[a, 86]
CROSSREFS
KEYWORD
nonn
AUTHOR
Friedjof Tellkamp, Jun 14 2025
STATUS
approved
