n-digit binary generator