Product and sum of digits equation

CAT 2005 Slot 1 · QA · Medium · Number System

For a positive integer nn, let pnp_n denote the product of the digits of nn and sns_n denote the sum of the digits of nn. The number of integers between 10 and 1000 for which pn+sn=np_n + s_n = n is

  1. A.

    81

  2. B.

    16

  3. C.

    18

  4. D.

    9

Answer

D

Explanation

Case 1: nn is a 2-digit number, n=10a+bn = 10a + b. pn=abp_n = ab, sn=a+bs_n = a + b. ab+a+b=10a+b    ab=9a    b=9ab + a + b = 10a + b \implies ab = 9a \implies b = 9 (since a0a \ne 0). So bb must be 9, and aa can be any digit from 1 to 9. Number of solutions =9= 9 (19, 29, 39, 49, 59, 69, 79, 89, 99).

Case 2: nn is a 3-digit number, n=100a+10b+cn = 100a + 10b + c. abc+a+b+c=100a+10b+c    abc=99a+9babc + a + b + c = 100a + 10b + c \implies abc = 99a + 9b. Since a,b,c9a, b, c \le 9, abc81×9=729abc \le 81 \times 9 = 729, but 99a9999a \ge 99, which yields no valid 3-digit solutions. Total solutions =9= 9.

Practise this under exam conditions

Sign in to solve it with a live timer, the on-screen CAT calculator, and streak and accuracy tracking across every question you attempt.

Solve in the workspace