Dec2bin

Convert decimal to 16 bit binary and trim leading zeros
D2B=({0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}) echo $((10#${D2B[$1]}))
 * 1) ! /bin/bash