OFFSET
0,4
COMMENTS
FORMULA
MATHEMATICA
a[n_] := If[EvenQ @ DigitCount[n, 2, 1], n, 0]; Array[a, 100, 0] (* Amiram Eldar, Aug 02 2020 *)
PROG
(Python)
def A102391(n): return 0 if n.bit_count()&1 else n # Chai Wah Wu, Nov 23 2023
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Paul Barry, Jan 06 2005
STATUS
approved