math pattern exponents