Solving for n using multiplication and addition/subtraction