def convert_to_base(num, base):
    """
    Convert a base-10 integer to a different base.
    """
    q = num//base
    r = num % base
    if (q == 0):
        return [r]
    else:
        return convert_to_base(q, base) + [r]