We say that a number is 2-happy if twice the sum of the digits of is greater than . How many positive integers are 2-happy?
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.
Clearly all one digit numbers are 2-happy.
For a k -digit number, twice the sum of the digits is at most 1 8 k . When k ≥ 3 , we have 1 8 k < 1 0 k − 1 . Thus, for k ≥ 3 , all k -digit numbers have value greater than twice their digit sum.
For 2-digit numbers, we make two observations: 1) If a b is not 2-happy then a c is not 2-happy for c < b . 2) If x is not 2-happy, then x + 1 0 is not 2-happy. We next observe that 2 9 and 1 8 are not 2-happy. Combining these facts with the above 2 observations, we have that the only possible 2-happy 2-digit number is 1 9 . We verify that this number is in fact 2-happy, since ( 1 + 9 ) × 2 = 2 0 > 1 9 .
Thus, there are 1 0 2-happy numbers 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 9 .