Let denote the sum of the digits of and denote the products of the digits of . Find the number of positive integers such that
In other words, find the number of positive integers equal to the sum of the digits added to the product of its digits.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let the number n have k + 1 digits, which are d 0 , d 1 , d 2 , … , d k where d k is the first digit and d 0 is the last.
n ∴ d 0 + 1 0 d 1 + 1 0 2 d 2 + ⋯ + 1 0 k d k ( 1 0 − 1 ) d 1 + ( 1 0 2 − 1 ) d 2 + ⋯ + ( 1 0 k − 1 ) d k = S ( n ) + P ( n ) = ( d 0 + d 1 + d 2 + ⋯ + d k ) + ( d 0 d 1 d 2 … d k ) = ( d 0 d 1 d 2 … d k )
Taking away some terms from the left hand side (which must all be zero or positive) gives the following inequality:
( 1 0 k − 1 ) d k 1 0 k − 1 ≤ d 0 d 1 d 2 … d k ≤ d 0 d 1 d 2 … d k − 1
The largest value each of d 0 , d 1 , d 2 , … , d k can take is 9. We can be sure the equality is still satisfied if we let these variables be their maximal value, so:
1 0 k − 1 1 0 k − 1 1 0 k − 1 1 0 k − 1 1 0 k − 1 1 0 k − 1 1 0 k − 1 k − 1 k ≤ k 9 ’s 9 × 9 × 9 × ⋯ × 9 ≤ 9 k ≤ 9 k − 1 ( 1 0 − 1 ) ≤ 1 0 k − 1 ( 1 0 − 1 ) ≤ 1 0 k − 1 ( 1 0 ) − 1 0 k − 1 ≤ 1 0 k − 1 0 k − 1 ≤ 1 ≤ 0 ≤ 1 since 1 0 k − 1 ≥ 9 k − 1 for k ≥ 1 For single digit numbers (i.e. k = 0 ), n = S ( n ) = P ( n ) , and so these are clearly not possible. Therefore the only possibility is where k = 1 , i.e. 2-digit numbers.
Now that we know the numbers must have 2 digits, we can simplify the above expressions to two variables; a , the first digit, and b , the second digit.
n ∴ 1 0 a + b 9 a b = S ( n ) + P ( n ) = ( a + b ) + ( a b ) = a b = 9
Therefore we simply require 2-digit numbers that end in a 9, and there are 9 such numbers: 1 9 , 2 9 , 3 9 , 4 9 , 5 9 , 6 9 , 7 9 , 8 9 , 9 9