For a positive integer n, let Pn denote the product of the digits of n, and Sn denote the sum of the digits of n. The number of integers between 10 and 1000 for which Pn + Sn = n is
Explanation:
n can be a 2-digit or a 3-digit number.
Case 1: Let n be a 2 digit number. Let n = 10x + y, where x and y are non-negative integers, Pn = xy and Sn = x + y Now, Pn + Sn = n ∴ xy + x + y = 10x + y ⇒ xy = 9x or y = 9 There are 9 two-digit numbers (19, 29, 29, … ,99) for which y = 9
Case (2): Let n be a 3-digit number. Let n = 100x + 10y + z, where x, y and z are non-negative integers, Pn = xyz and Sn = x + y + z Now, Pn + Sn = n ∴ xyz + x + y + z = 100x + 10y + z ⇒ xyz = 99x + 9y ⇒ z = 99/y + 9/x From the above expression, 0 < x, y ≤ 9 But, we cannot find any value of x and y, for which z is a single-digit number. z will be minimum when x and y are both 9, but even then its value is 12. ∴ There are no 3-digit numbers which satisfy Pn + Sn = n
Hence, option (d).
Help us build a Free and Comprehensive Preparation portal for various competitive exams by providing us your valuable feedback about Apti4All and how it can be improved.