OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
2197 is in the sequence because 2197=13^3 and 2197 in base 2 is 100010010101, having an odd number of 1's.
MAPLE
isA000069 := proc(n) local b2 ; b2 := convert(n, base, 2) ; if sum(op(i, b2), i=1..nops(b2)) mod 2 = 1 then RETURN(true) ; else RETURN(false) ; fi ; end : for n from 1 to 80 do if isA000069(n^3) then printf("%d, ", n^3) ; fi ; od ; # R. J. Mathar, Jan 07 2007
a:=proc(n) local n2: n2:=convert(n^3, base, 2): if sum(n2[j], j=1..nops(n2)) mod 2 = 1 then n^3 else fi end: seq(a(n), n=1..100); # Emeric Deutsch, Jan 10 2007
MATHEMATICA
Select[Range[0, 90]^3, OddQ @ DigitCount[#, 2][[1]] &] (* Amiram Eldar, Dec 09 2019 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Tanya Khovanova, Dec 27 2006
EXTENSIONS
More terms from R. J. Mathar and Emeric Deutsch, Jan 07 2007
STATUS
approved