Smallest multiple of N with exactly N digits in its Binary number representation | Java 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 System . ; Driver code
class GFG { static void smallestNumber ( int N ) { System . out . print ( N * Math . ceil ( Math . pow ( 2 , ( N - 1 ) ) / N ) ) ; } public static void main ( String [ ] args ) { int N = 3 ; smallestNumber ( N ) ; } }