OFFSET
1
LINKS
EXAMPLE
a(1) = 1 because 1 = p^0 for any prime p, and 0 is an even number.
MATHEMATICA
a[n_] := If[n == 1 || (Length[(f = FactorInteger[n])] == 1 && EvenQ[f[[1, 2]]]), 1, 0]; Array[a, 100] (* Amiram Eldar, May 15 2022 *)
PROG
(PARI) A353800(n) = ((1==n)||((n=isprimepower(n))&&!(n%2)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 15 2022
STATUS
approved