OFFSET
1,2
COMMENTS
This sequence is a subsequence of A243615.
LINKS
Andreas Boe, Table of n, a(n) for n = 1..10000
EXAMPLE
42 -> 4+2=6, 42=101010_2 -> 6 bits.
PROG
(PARI) isok(n) = (sumdigits(n) == #binary(n)) && (vecmin(digits(n)) != 0); \\ Michel Marcus, Jun 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andreas Boe, Jun 07 2014
STATUS
approved