Previous in Permutation and Combination Next in Permutation and Combination | ||
Question Number 188551 by mr W last updated on 03/Mar/23 | ||
$${you}\:{randomly}\:{select}\:{a}\:\mathrm{5}\:{digit}\:{number}. \\ $$$${what}'{s}\:{the}\:{probability}\:{that}\:{this}\:{number} \\ $$$${has}\:{exactly}\:\mathrm{3}\:{different}\:{digits}? \\ $$ | ||
Answered by mr W last updated on 03/Mar/23 | ||
$${from}\:\mathrm{10000}\:{to}\:\mathrm{99999}\:{there}\:{are}\:{totally} \\ $$$$\mathrm{90000}\:\mathrm{5}\:{digit}\:{numbers}. \\ $$$${now}\:{we}\:{want}\:{to}\:{find}\:{how}\:{many}\:{among} \\ $$$${them}\:{have}\:{exactly}\:\mathrm{3}\:{digits}. \\ $$$${to}\:{select}\:\mathrm{3}\:{digits}\:{from}\:\mathrm{0}\:{to}\:\mathrm{9}\:{there}\:{are} \\ $$$${C}_{\mathrm{3}} ^{\mathrm{10}} \:{possibilities}.\:{say}\:{a},\:{b},\:{c}\:{are}\:{the} \\ $$$${digits}\:{we}\:{have}\:{selected}.\:{to}\:{form}\:{a}\:\mathrm{5} \\ $$$${digit}\:{number}\:{using}\:{them}\:{we}\:{have} \\ $$$${following}\:{possibilities}: \\ $$$$\left.\mathrm{1}\right)\:{aaabc} \\ $$$$\Rightarrow{C}_{\mathrm{1}} ^{\mathrm{3}} ×\frac{\mathrm{5}!}{\mathrm{3}!}=\mathrm{60}\:{numbers} \\ $$$$\left.\mathrm{2}\right)\:{aabbc} \\ $$$$\Rightarrow{C}_{\mathrm{1}} ^{\mathrm{3}} ×\frac{\mathrm{5}!}{\mathrm{2}!\mathrm{2}!}=\mathrm{90}\:{numbers} \\ $$$${in}\:{sum}\:{we}\:{have}\:\mathrm{150}\:{numbers}\:{using} \\ $$$${a},{b},{c} \\ $$$$\Rightarrow\mathrm{150}×{C}_{\mathrm{3}} ^{\mathrm{10}} =\mathrm{18000}\:{numbers} \\ $$$${but}\:{among}\:{them}\:{some}\:{begin}\:{with}\:{the} \\ $$$${digit}\:\mathrm{0}\:{like}\:\mathrm{0}{abab}. \\ $$$${to}\:{select}\:{a},\:{b}\:{from}\:\mathrm{1}\:{to}\:\mathrm{9}\:{there}\:{are} \\ $$$${C}_{\mathrm{2}} ^{\mathrm{9}} \:{possibilities}. \\ $$$$\left.\mathrm{1}\right)\:\mathrm{0}{aaab} \\ $$$$\Rightarrow\mathrm{2}×\frac{\mathrm{4}!}{\mathrm{3}!}=\mathrm{8}\:{numbers} \\ $$$$\left.\mathrm{2}\right)\:\mathrm{0}{aabb} \\ $$$$\Rightarrow\frac{\mathrm{4}!}{\mathrm{2}!\mathrm{2}!}=\mathrm{6}\:{numbers} \\ $$$$\left.\mathrm{3}\right)\:\mathrm{000}{ab} \\ $$$$\Rightarrow\frac{\mathrm{4}!}{\mathrm{2}!}=\mathrm{12}\:{numbers} \\ $$$$\left.\mathrm{4}\right)\:\mathrm{00}{aab} \\ $$$$\Rightarrow\mathrm{2}×\frac{\mathrm{4}!}{\mathrm{2}!}=\mathrm{24}\:{numbers} \\ $$$${in}\:{sum}\:{there}\:{are}\: \\ $$$$\left(\mathrm{8}+\mathrm{6}+\mathrm{12}+\mathrm{24}\right)×{C}_{\mathrm{2}} ^{\mathrm{9}} =\mathrm{1800}\:{numbers} \\ $$$${which}\:{begin}\:{with}\:\mathrm{0}. \\ $$$${so}\:{we}\:{have}\:\mathrm{18000}−\mathrm{1800}=\mathrm{16200}\: \\ $$$${numbers}\:{with}\:{exactly}\:\mathrm{3}\:{digits}. \\ $$$${probability}\:{p}=\frac{\mathrm{16200}}{\mathrm{90000}}=\mathrm{18\%}\:\checkmark \\ $$ | ||
Commented by mr W last updated on 03/Mar/23 | ||
$${shorter}\:{way}: \\ $$$$\mathrm{5}\:{digit}\:{numbers}\:{with}\:{exact}\:\mathrm{3}\:{different} \\ $$$${digits}: \\ $$$$\left.\frac{\mathrm{9}}{\mathrm{10}}×{C}_{\mathrm{3}} ^{\mathrm{10}} ×\mathrm{3}!×\begin{cases}{\mathrm{5}}\\{\mathrm{3}}\end{cases}\right\} \\ $$$$=\frac{\mathrm{9}}{\mathrm{10}}×\mathrm{120}×\mathrm{6}×\mathrm{25}=\mathrm{16200} \\ $$ | ||