OFFSET
1,2
COMMENTS
Subset of A243615.
LINKS
Andreas Boe, Table of n, a(n) for n = 1..10000
EXAMPLE
51 -> 5+1=6 51=110011 -> Six bits.
MATHEMATICA
Select[Range[750], Total[IntegerDigits[#]]==IntegerLength[#, 2]&&Max[ DigitCount[ #]]==1&] (* Harvey P. Dale, Mar 22 2015 *)
PROG
(PARI) isok(n) = (sumdigits(n) == #binary(n)) && (v=digits(n)) && (#v == #vecsort(v, , 8)); \\ Michel Marcus, Jun 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andreas Boe, Jun 07 2014
STATUS
approved