OFFSET
1,2
LINKS
Gheorghe Coserea, Table of n, a(n) for n = 1..51000
EXAMPLE
85=1010101 in base 2 and 85 has 4 divisors hence 85 is in the sequence.
MATHEMATICA
Select[Range[600], DigitCount[#, 2, 1]==DivisorSigma[0, #]&] (* Harvey P. Dale, Aug 22 2018 *)
PROG
(PARI) for(n=1, 1000, if(sum(i=1, length(binary(n)), component(binary(n), i))==numdiv(n), print1(n, ", ")))
(PARI) Vec(select(x->numdiv(x) == hammingweight(x), vector(562, k, k))) \\ Gheorghe Coserea, Oct 26 2016
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Benoit Cloitre, Jun 01 2002
STATUS
approved