Find the n
th
binary number of given weight and length
length =
weight =
n =