OFFSET
1
COMMENTS
a(n) = 1 if the odd part of n has exactly one distinct prime divisor, and 0 otherwise.
LINKS
FORMULA
MATHEMATICA
A340373[n_] := Boole[PrimePowerQ[n/2^IntegerExponent[n, 2]]]; Array[A340373, 100] (* Paolo Xausa, Oct 31 2024 *)
PROG
(PARI) A340373(n) = (1==omega(n>>valuation(n, 2)));
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Antti Karttunen, Jan 06 2021
STATUS
approved