OFFSET
1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
Jon Maiga, Computer-generated formulas for A353557, Sequence Machine.
FORMULA
a(n) = [A166698(n) > 0], where [ ] is the Iverson bracket. - Antti Karttunen, Dec 30 2022
PROG
(PARI) A353557(n) = ((n%2)&&(!(bigomega(n)%2)));
(Python)
from functools import reduce
from operator import ixor
from sympy import factorint
def A353557(n): return 1&n&(reduce(ixor, factorint(n).values(), 0)^1) # Chai Wah Wu, Dec 21 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 01 2022
STATUS
approved