# Number of even numbers with sum of digits less than 12

How many positive three digit even numbers lesser than 700 are there with all three different digits and where the sum of the three digits is 12 or less ?

Am I supposed to write solve the expression for each of the 12 cases like solution for a + b + C=12, 11, 10...1 and then add them together?

Is there a better approach to this problem?

-
I'd start by drawing a tree of cases that begins with the least significant digit, knowing it has to be even. You can then work out the possible choices for upper two digits, taking into account the restriction that all digits are different as well as having sum less than (or equal to??) 12. Note how your title states the last restriction. –  hardmath Aug 9 '11 at 16:40
Less than 12, or 12 or less? –  Daniel R Hicks Aug 9 '11 at 17:42
@Daniel R Hicks : 12 or less –  user118102114 Aug 9 '11 at 18:49

## 3 Answers

I believe that there are 115 numbers that meet the requirements. We only need to consider even numbers so you can make a table with the possible hundreds digits and even ones digits and easily compute the number of possible tens for each one like this:

1t0---8 possibilities 2,3,4,5,6,7,8,9

2t0---8 possibilities 1,3,4,5,6,7,8,9

3t0---8 possibilities 1,2,4,5,6,7,8,9

4t0---7 possibilities 1,2,3,5,6,7,8

5t0---6 possibilities 1,2,3,4,6,7

6t0---5 possibilities 1,2,3,4,5

1t2---8 possibilities 0,3,4,5,6,7,8,9

etc.

Remembering to skip repeated the digits like 2t2, 4t4, and 6t6 ie.

4t4--- 0 possibilities

-
9+3+0
9+2+1
8+4+0
8+3+1
8+2+2 (error)
7+5+0
7+4+1
7+3+2
7+2+2 (error)
6+5+1
6+4+2
6+3+3 (error)
5+4+3


Each can be permuted ABC, ACB, BAC, BCA, CAB, CBA, so 13x6 if I counted right.

[Oops, I failed to eliminate the numbers above 700. We'll leave that as an exercise for the student. Easily done by breaking the above list into two ranges.]

[Gotta learn to read more carefully! Sum of digits LESS than 12! Oh well...]

[I suspect the above scheme would work, though, with a little adjustment.]

-
921, 831, 741, 651, 633, and 543 are not even. And you can't permute digits in a way that results in an odd. –  anon Aug 9 '11 at 17:40
Ah, missed that point too. –  Daniel R Hicks Aug 9 '11 at 17:44
(I never was that good at math.) –  Daniel R Hicks Aug 9 '11 at 17:44

I would just enter the numbers 2 through 698 into a spreadsheet, use the mod function to extract the digits, and if statements to determine whether the digits are different and sum to less than 12. Then ask it to count the results. The copy function means you only write the things once.

-