Smallest multiple of N with exactly N digits in its Binary number representation | Python3 program to find smallest multiple of n with exactly N digits in Binary number System . ; Function to find smallest multiple of n with exactly n digits in Binary number representation . ; Driver code
from math import ceil NEW_LINE def smallestNumber ( N ) : NEW_LINE INDENT print ( N * ceil ( pow ( 2 , ( N - 1 ) ) / N ) ) NEW_LINE DEDENT N = 3 NEW_LINE smallestNumber ( N ) NEW_LINE