OFFSET
1
LINKS
FORMULA
MATHEMATICA
a[n_] := Boole@ EvenQ[Plus @@ DigitCount[FactorInteger[n][[;; , 2]], 2, 1]]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Oct 02 2024 *)
PROG
(PARI)
(Python)
from functools import reduce
from operator import ixor
from sympy import factorint
def A359464(n): return reduce(ixor, (d.bit_count() for d in factorint(n).values()), 1)&1 # Chai Wah Wu, Jan 04 2023
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Antti Karttunen, Jan 02 2023
STATUS
approved