Key idea: When does a rational number terminate?
**Theorem**: A rational number qp (in lowest terms) has a terminating decimal expansion if and only if q has the form **2ᵐ × 5ⁿ** (m, n ≥ 0).
**Examples**:
- 83:q=8=23 → terminates.(83=0.375.)−407:q=40=23×5 → terminates.(407=0.175.)−31:q=3 → does NOT terminate.(31=0.333… recurring.)
- 154:q=15=3×5 → does NOT terminate (because of the 3).
**Why**: any decimal expansion is a fraction with denominator 10ⁿ = 2ⁿ × 5ⁿ. To convert qp to decimal form, you need q to ONLY have 2s and 5s as primes — otherwise you can't multiply numerator/denominator into a power of 10.