OFFSET
1
COMMENTS
Characteristic function of A383017.
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])})):
isA383576 := n -> n > 1 and isA384667(n) and isA384709(n):
A383576 := n -> ifelse(isA383576(n), 1, 0):
seq(A383576(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
