def convert_to_base(num, base):
    """
    Converts integer num into base b format
    ie number to configuration
    Args:
        num - intger to be converted
        base - base to be converted into
    Returns:
        base b representation of num
    """
    convStr = "0123"
    if num < base:
        return str(num)
    else:
        return convert_to_base(num // base, base) + convStr[num % base]