x, handle the base case by returning the minimum of either adding or subtracting x/x to reach the target.x can be multiplied without exceeding the target (the power of x).x to the power calculated in step 4 to reach the target, or subtracting from the next higher power of x to reach the target.