OFFSET
1
LINKS
PROG
(PARI)
(Python)
from functools import reduce
from sympy import factorint
from operator import ixor
def A359768(n): return (reduce(ixor, (p*e for p, e in factorint(n).items()), 0)^n)&1 # Chai Wah Wu, Jan 15 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 15 2023
STATUS
approved