def convert_number_to_variational_representation(number, radices,
    unit_place_values):
    """
    Decompose a number by mixed-radix decomposition.

    :param number: number to decompose
    :param radices: radices of decomposition
    :param unit_place_values: place values of decomposition
    :return: decomposition of the number
    """
    variational_representation = [0] * len(radices)
    for i, unit_place_value in enumerate(reversed(unit_place_values)):
        digit, number = divmod(number, unit_place_value)
        variational_representation[len(radices) - i - 1] = digit
    return variational_representation
