Exact Square Root of a 12-Digit Repunit Minus a 6-Digit Two-Repdigit
Board: CBSE | Grade: Class 8 | Chapter: Squares and Square Roots
Problem
Find the exact integer value of: $$N = \sqrt{\underbrace{111\ldots 1}{12\text{ digits}} - \underbrace{222\ldots 2}{6\text{ digits}}}$$ and determine the sum of the digits of $N$.
Step-by-Step Textbook Solution
Step 1: Express repunits using powers of $10$. Note that a $k$-digit number consisting only of $1$s equals $\frac{10^k - 1}{9}$. Thus: $$\underbrace{111\ldots 1}{12\text{ digits}} = \frac{10^{12} - 1}{9}, \quad \underbrace{222\ldots 2}{6\text{ digits}} = 2 \cdot \frac{10^6 - 1}{9}$$
Step 2: Subtract and complete the square. $$\frac{10^{12} - 1}{9} - \frac{2 \cdot 10^6 - 2}{9} = \frac{10^{12} - 2 \cdot 10^6 + 1}{9} = \frac{(10^6 - 1)^2}{3^2} = \left(\frac{10^6 - 1}{3}\right)^2$$
Step 3: Take the square root and compute the digit sum. $$N = \frac{10^6 - 1}{3} = \frac{999999}{3} = 333333$$ Sum of the digits of $N = 6 \times 3 = 18$.
NityaDhi Solution (Intuitive Method)
Small-$n$ Induction Check ($11 - 2, 1111 - 22, \dots$):
- $n = 1$: $\sqrt{11 - 2} = \sqrt{9} = 3$
- $n = 2$: $\sqrt{1111 - 22} = \sqrt{1089} = 33$
- $n = 3$: $\sqrt{111111 - 222} = \sqrt{110889} = 333$ Hence for $2n = 12$ ones minus $n = 6$ twos, the square root consists of six $3$s: $333333$, with digit sum $18$.
Common Mistakes to Avoid
- Miscounting digits in $N$: Writing $12$ threes instead of $6$ threes.
- Forgetting the denominator $9$ when converting repunits: Treating $111\dots1$ directly as $10^{12} - 1$ instead of $(10^{12}-1)/9$.