Exponents and Pythagorean theorem