OFFSET
1,2
COMMENTS
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..177 (terms <= 2^40)
MATHEMATICA
Select[Range[10^6], DigitCount[#, 2, 1] == DigitCount[#^3, 2, 1] &] (* Amiram Eldar, Jul 16 2023 *)
PROG
(PARI) bitcnt(n)= { local(bitv, bitl) ; bitv=binary(n) ; bitvl=matsize(bitv) ; return(sum(i=1, bitvl[2], bitv[i])) ; }
{ for(i=1, 8000000, if(bitcnt(i)==bitcnt(i^3), print1(i, ", ") ; ) ; ) ; }
CROSSREFS
KEYWORD
easy,base,nonn
AUTHOR
R. J. Mathar, May 18 2006
STATUS
approved