Sub topic 9
Digits as Algebra: Reversals and Digit Relations
Prerequisites and the place-value model
Assume you can work with whole-number arithmetic, remainders, and simple linear equations. The key idea is to replace each digit with a variable, then use place value to write the whole number algebraically.
For a two-digit number, let the tens digit be \(a\) and the units digit be \(b\). Its value is
\[ 10a+b \]
where \(1 \leq a \leq 9\) and \(0 \leq b \leq 9\). Its reversal is
\[ 10b+a. \]
For a three-digit number with digits \(a,b,c\), the number is
\[ 100a+10b+c. \]
The reversal is
\[ 100c+10b+a. \]
The first digit cannot be zero because then the number would not have the stated number of digits.
Reversal problems
Subtracting a two-digit number from its reversal produces a useful identity:
\[ (10a+b)-(10b+a)=9a-9b=9(a-b). \]
Therefore, the difference between a two-digit number and its reversal is always divisible by 9. The sign depends on which number is larger.
For example, suppose the number is 27. Then \(a=2\) and \(b=7\):
\[ 27-72=10(2)+7-[10(7)+2]=-45. \]
The formula gives
\[ 9(2-7)=-45. \]
This identity is faster than calculating both numbers separately when a question asks for a difference or a divisibility property.
| Quantity | Algebraic form |
|---|---|
| Original two-digit number | \(10a+b\) |
| Reversal | \(10b+a\) |
| Sum | \(11(a+b)\) |
| Original minus reversal | \(9(a-b)\) |
The sum is also useful:
\[ (10a+b)+(10b+a)=11a+11b=11(a+b). \]
Thus, the sum of a two-digit number and its reversal is always divisible by 11.
Digit relations
CAT questions often give a relation between digits and a relation involving the number. Translate both into equations.
Example: A two-digit number is four times the sum of its digits. Find the number.
Let the number be \(10a+b\). The condition becomes
\[ 10a+b=4(a+b). \]
Expand and simplify:
\[ 10a+b=4a+4b \]
\[ 6a=3b \]
\[ b=2a. \]
The possible digit pairs are \((1,2), (2,4), (3,6), (4,8)\). If the question adds that the number is divisible by 3, test the candidates or use the digit sum. The candidates are 12, 24, 36, and 48, and all are divisible by 3. An additional condition is needed to select one answer.
A relation such as “the tens digit is 3 more than the units digit” becomes
\[ a=b+3. \]
If the number is 27 more than its reversal, write
\[ 10a+b=(10b+a)+27. \]
Then
\[ 9a-9b=27,\qquad a-b=3. \]
These equations describe the same digit relation.
def reversal_difference(a, b):
number = 10 * a + b
reverse = 10 * b + a
return number - reverse, 9 * (a - b)
print(reversal_difference(8, 3)) # (45, 45)Exercise
A two-digit number has digits a and b. Its digits add to 11, and the number exceeds its reversal by 27. Find the number.
Show answer
Use \(a+b=11\) and \(9(a-b)=27\), so \(a-b=3\). Solving gives \(a=7\), \(b=4\), hence the number is 74.