The text says "convert numbers to binary representation without trailing zeroes" but the examples do use trailing zeroes. Did you mean without leading zeroes?
37