LINKS
Chai Wah Wu, <a href="/A002053/b002053_1.txt">Table of n, a(n) for n = 0..10000</a> (n = 0..2000 from T. D. Noe)
Chai Wah Wu, <a href="/A002053/b002053_1.txt">Table of n, a(n) for n = 0..10000</a> (n = 0..2000 from T. D. Noe)
reviewed
approved
proposed
reviewed
editing
proposed
T. D. Noe, Chai Wah Wu, <a href="/A002053/b002053_1.txt">Table of n, a(n) for n = 0..10000</a> (n = 0..2000</a> from T. D. Noe)
approved
editing
proposed
approved
editing
proposed
(Python)
from functools import reduce
from operator import ixor
from itertools import count
from sympy import factorint
def A002053(n): return next(filter(lambda m:-n==sum(-1 if reduce(ixor, factorint(i).values(), 0)&1 else 1 for i in range(1, m+1)), count(1))) # Chai Wah Wu, Jan 01 2023
approved
editing
editing
approved
nonn,nice,look
approved
editing