Discrete math counting. Let A={1000,1001,1002,…,9999}. How many numbers in A have the property that the sum of it's digits is even.

suchonosdy

suchonosdy

Answered question

2022-07-18

Discrete math counting.
Let A = { 1000 , 1001 , 1002 , , 9999 }
How many numbers in A have the property that the sum of it's digits is even.
How many numbers in A have the property that the digits appear in increasing order? That is the first digit is smaller than the second and so on. Example 1234.

Answer & Explanation

escobamesmo

escobamesmo

Beginner2022-07-19Added 18 answers

Step 1
How many numbers in A have the property that the sum of the digits is even: For this think how many odd digits the numbers can have then think given the number of choices of odd and even digits, how many numbers between 1000 and 9999 you can create.
Step 2
How many numbers in A have the property that the digits appear in increasing order: For this, think how many choices are there for the first digit. Then once you have chosen that first digit, how many choices are there for the second, then the third, ... .
Intomathymnma

Intomathymnma

Beginner2022-07-20Added 5 answers

Step 1
Whatever you choose for the first three digits, there are 10 choices for the last digit; half of them make the sum even, half make it odd. So exactly half of the numbers in the range 1000,…,9999 have an even digital sum; that's ( 9999 999 ) / 2 ) = 4500.
The number of ways to choose a set of 4 digits from the set {1,2,3,4,5,6,7,8,9} is ( 9 4 ) , and there is just one way to arrange the chosen digits in increasing order, so the answer to the second question is ( 9 4 ) 1 = 126.
Step 2
This assumes that the digits have to be in strictly increasing order, i.e. the number of ways to choose x 1 , x 2 , x 3 , x 4 from {1,2,…,9} satisfying x 1 < x 2 < x 3 < x 4 is ( 9 4 ) = 126.. On the other hand, the number of ways to choose x 1 , x 2 , x 3 , x 4 from {1,2,…,9} satisfying x 1 x 2 x 3 x 4 is the same as the number of ways to choose u 1 , u 2 , u 3 , u 4 from {1,2,…,12} satisfying u 1 < u 2 < u 3 < u 4 which is ( 12 4 ) = 495; this can be seen from the change of variable u 1 = x 1 , u 2 = x 2 + 1 , u 3 = x 3 + 2 , u 4 = x 4 + 3

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?