(integer)
return exponent_list
integer = 2^e1 + 2^e2 + ... + 2^ek， e1 > ... > ek
    :param integer: int
    :return: [e1, e2, ..., ek]
integer = 2^e1 + 2^e2 + ... + 2^ek， e1 > ... > ek
    :param integer: int
    :return: [e1, e2, ..., ek]
integer = 2^e1 + 2^e2 + ... + 2^ek， e1 > ... > ek : param integer : int : return : [ e1 e2 ... ek ]
def int_to_binary_representation(integer):
    """
    integer = 2^e1 + 2^e2 + ... + 2^ek， e1 > ... > ek
    :param integer: int
    :return: [e1, e2, ..., ek]
    """
    bin_str = bin(integer)[2:]
    bin_len = len(bin_str)

    exponent_list = []
    for i in range(bin_len):
        if bin_str[i] == '1':
            exponent_list.append(bin_len - i - 1)

    return exponent_list
def int_to_binary_representation ( integer ) : bin_str = bin ( integer ) [ 2 : ] bin_len = len ( bin_str ) exponent_list = [ ] for i in range ( bin_len ) : if bin_str [ i ] == '1' : exponent_list . append ( bin_len - i - 1 ) return exponent_list