Characterization of the unique expansions $1=\sum^{\infty}_{i=1}q^{-n_ i}$ and related problems