Minimum number using set bits of a given number | Returns minimum number formed by bits of a given number . ; _popcnt32 ( a ) gives number of 1 's  present in binary representation  of a. ; Driver Code
def minimize ( a ) : NEW_LINE INDENT n = bin ( a ) . count ( "1" ) NEW_LINE return ( pow ( 2 , n ) - 1 ) NEW_LINE DEDENT a = 11 NEW_LINE print ( minimize ( a ) ) NEW_LINE