OFFSET
0,3
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
MATHEMATICA
odnQ[n_]:=OddQ[DigitCount[n, 2, 1]]; Table[If[odnQ[n], n, 0], {n, 0, 100}] (* Harvey P. Dale, Oct 15 2019 *)
PROG
(Python)
def A102392(n): return n*(n.bit_count()&1) # Chai Wah Wu, Nov 23 2023
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Paul Barry, Jan 06 2005
STATUS
approved