[Math] How many strings are there of four decimal digits that:

combinatorics

a) Exactly contains four 9-s.

b) Exactly 2 digit must be same

c) The string ends with a even digit greater than 2

My solutions:

a) $\binom9 4= \frac{9!}{4!(9-4)!}= 126 $

b) First digit – 10 ; Second digit – 10 ; Third digit – 9 ; Fourth digit – 8
— So: $10*10*9*8= 7200$

c) First digit – 7 ; Second digit – 6 ; Third digit – 5 ; Fourth digit – 4
— So: $7*6*5*4 = 840$

Please correct me if I'm wrong!!!

Best Answer

If I am not getting your question wrong then your answers are wrong.
a)If a 4 digit number contains exactly four 9's , then $^9C_4$ is not your solution , there is only one way i.e 9999 , so answer should be 1
b)This one is not as simple as you did,exactly two same will have conditions either $1^{st}$ and $2^{nd}$ are same or $1^{st}$ and $3^{rd}$ are same and so on , there will be 6 such conditions , you will have to solve them separately , .
c)It's nowhere mentioned that digits other than last one cannot be even so answer should be 10 x 10 x 10 x 3 , for (4,6,8 viz. even digits greater than 2)