Trailing Zeros and Last Non-Zero Digit of an Exponential Product
Board: CBSE | Grade: Class 7 | Chapter: Exponents and Powers
Problem
Consider the huge integer:
$$N = 12^{15} \times 15^{18} \times 25^{10} \times 8^{7}$$
(a) How many trailing zeros does $N$ end with? (b) What is the last non-zero digit of $N$ (the units digit after removing all trailing zeros)?
Step-by-Step Textbook Solution
-
Prime-factorize every base:
- $12^{15} = (2^2 \times 3)^{15} = 2^{30} \times 3^{15}$
- $15^{18} = (3 \times 5)^{18} = 3^{18} \times 5^{18}$
- $25^{10} = (5^2)^{10} = 5^{20}$
- $8^7 = (2^3)^7 = 2^{21}$
-
Collect total exponents of $2, 3,$ and $5$: $$N = 2^{30+21} \times 3^{15+18} \times 5^{18+20} = 2^{51} \times 3^{33} \times 5^{38}$$
-
Extract pairs of $(2 \times 5)$ for trailing zeros: Since $\min(51, 38) = 38$, we can form $10^{38}$: $$N = (2^{13} \times 3^{33}) \times (2^{38} \times 5^{38}) = (2^{13} \times 3^{33}) \times 10^{38}$$ Thus $N$ has $38$ trailing zeros.
-
Find the units digit of $K = 2^{13} \times 3^{33}$:
- Powers of $2$ cycle every $4$ in their units digit: $(2, 4, 8, 6)$. Since $13 = 4(3) + 1$, $2^{13}$ ends in $2^1 = 2$.
- Powers of $3$ cycle every $4$ in their units digit: $(3, 9, 7, 1)$. Since $33 = 4(8) + 1$, $3^{33}$ ends in $3^1 = 3$.
- Therefore, $K$ ends in $2 \times 3 = 6$.
Final Answer: (a) $38$ trailing zeros, (b) Last non-zero digit is $6$.
NityaDhi Solution (Intuitive Method)
NityaDhi Exponent-Ledger & Mod-4 Cycle Check:
Make a rapid 3-column tally of $(2, 3, 5)$:
- $12^{15} \to (+30, +15, 0)$
- $15^{18} \to (0, +18, +18)$
- $25^{10} \to (0, 0, +20)$
- $8^7 \to (+21, 0, 0)$
Totals: $2^{51}, 3^{33}, 5^{38}$. Pair off $38$ tens $\to$ leftover $2^{13} \times 3^{33}$. Both exponents leave remainder $1$ mod $4$, so the units digit is simply $2^1 \times 3^1 = 6$!
Common Mistakes to Avoid
- Counting only $5$s or multiplying $18 \times 20$: The power of $5$ in $15^{18} \times 25^{10}$ is $18 + 20 = 38$, and you must check that enough $2$s exist ($51 \ge 38$).
- Ignoring the remaining $2^{13}$ when finding the last non-zero digit: Computing the units digit of $3^{33}$ alone gives $3$ instead of $2 \times 3 = 6$.