Simplifying exponents and fractions