A two-digit positive integer, whose sum of digits and product of digits add up to the number itself is called a good number . Find the number of good numbers .
Details and assumptions:
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.
Use Algebra
a + b + a b a ( 1 + b ) 1 + b b = 1 0 a + b = 1 0 a = 1 0 = 9 for a = 0 for a = 0
All values of a can take place except 0, which are { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } , hence there are 9 solutions
Python