If \(31z5\) is a multiple of 9, where \(z\) is a digit, what is the value of \(z\)? Explain why there are two answers to this problem.
Show solutionHide solution
A number is divisible by 9 exactly when the sum of its digits is divisible by 9. For \(31z5\), the digit sum is
\[3+1+z+5=9+z.\]Since \(z\) is a digit, \(0\le z\le 9\), so \(9\le 9+z\le 18\). The multiples of 9 in this range are \(9\) and \(18\).
- If \(9+z=9\), then \(z=0\). Indeed, \(3105=9\times 345\).
- If \(9+z=18\), then \(z=9\). Indeed, \(3195=9\times 355\).
Thus \(z=0\) or \(z=9\).
Why two answers? The digit sum \(9+z\) can equal either of the two multiples of 9 that lie between 9 and 18. Both values of \(z\) make the digit sum a multiple of 9, so both \(3105\) and \(3195\) are multiples of 9. There is no extra condition in the question that would rule out either digit.