1

What is the sum of all such possible numbers given the following conditions that A 4 digit number is formed using the digits 0,2,4,6,8 without repeating any one of them.?

MyApproach:

If you fix 8 as the last digit, you see that there are 3⋅3⋅2 ways to complete the number. Thus, 8 appears 18 times as the last digit.

By the same logic, if we enumerate all possible numbers using these 5 digits, each number appears 18 times in each of the 3 positions.

At unit Place if we place 8 we can form 4⋅3⋅2=24 times as the unit place

In total, we have (2+4+6+8)(18)(111)+(2+4+6+8)(24)(1000) +(0)(24)(111)=519960

Is my Approach correct towards the problem?Can Anyone guide me if there exist a shorter approach?

justin takro
  • 1,288

1 Answers1

1

An easy way to compute is [sum of $4$ digit strings] - [sum of $3$ digit numbers]

Any column total will be a multiple of $(0+2+4+6+8) = 20$,

For a 4 digit string chosen from $5$ digits, the multiple will be $\dbinom54\times4!/5 = 24$,

and for a $3$ digit number chosen from $4$ digits, the multiple will be $\binom43\times3!/4 = 6$,

hence desired sum = $24\cdot20\cdot1111 - 6\cdot20\cdot111 = 519,960$