How many 4 digit integers using digits 1-9 are there so that the sum of digits is even?
I divide it into cases.
- Case 1, all even: $4^4$
- Case 2, no even: $5^4$
- Case 3, two even, two odd. How should this be done?
How many 4 digit integers using digits 1-9 are there so that the sum of digits is even?
I divide it into cases.
For case 3:
There are $6\cdot5^2\cdot4^2$ integers in this case. The total number of integers is $4^4+5^4+6\cdot5^2\cdot4^2=3281$.