Sub topic 1
What an exponent means: repeated multiplication
Prerequisites
This chapter assumes you can multiply and divide integers, evaluate expressions using the order of operations, and treat a letter such as a as a placeholder for a number.
Reading a power as repeated multiplication
A power has two parts: the base and the exponent. In a^n, the base is a and the exponent is n. The exponent counts how many copies of the base to multiply together:
a^n = a × a × ... × a, with n copies of a
For example, 2^4 = 2 × 2 × 2 × 2 = 16.
Multiplying powers with the same base
When two powers share a base, add the exponents:
a^m × a^n = a^(m+n)
The reason is simple. a^m contributes m copies of a, and a^n contributes n more. Together, the product has m + n copies.
Example: 3^4 × 3^2 = 3^6 = 729.
a, m, n = 3, 4, 2
print(a**m * a**n) # 729
print(a**(m + n)) # 729
print(a**m * a**n == a**(m + n)) # TrueDividing powers with the same base
When you divide powers with the same base, subtract the exponents, as long as a is not 0:
a^m / a^n = a^(m-n)
Each copy of a in the denominator cancels one copy in the numerator. The leftover copies number m − n.
Example: 2^7 / 2^3 = 2^4 = 16. Seven factors of 2 sit on top, three cancel, and four remain.
print(2**7 // 2**3) # 16
print(2**(7 - 3)) # 16Exercise:
Exercise
Simplify 5^6 × 5^3 / 5^2.
Show answer
Add the exponents for the product and subtract for the quotient: 5^(6+3-2) = 5^7. The value is 78125.