Question Number 198242 by Tawa11 last updated on 15/Oct/23
How many numbers with a maximum of 5 digits,
greater than 4000, can be formed with the digits
2, 3, 4, 5, 6; if repetition is allowed for 2 and 3 only?
greater than 4000, can be formed with the digits
2, 3, 4, 5, 6; if repetition is allowed for 2 and 3 only?
Commented by necx122 last updated on 15/Oct/23
$${In}\:{those}\:{days}\:{there}\:{was}\:{a}\:{way}\:{Mr}.\:{W} \\ $$$${tackled}\:{questions}\:{like}\:{this}.\:{Unfortunately}, \\ $$$${I}\:{dont}\:{remember}\:{but}\:{I}\:{wish}\:{he}\:{attempts} \\ $$$${also}\:{with}\:{his}\:{method}\left({s}\right). \\ $$
Commented by mr W last updated on 22/Oct/23
$${thanks}\:{that}\:{you}\:{noticed}\:{and}\:{like}\:{my} \\ $$$${method}!\:{i}'{ll}\:{give}\:{a}\:{try}! \\ $$
Commented by mr W last updated on 22/Oct/23
$${an}\:{alternative}\:{solution}\:{see}\:{Q}\mathrm{198576} \\ $$
Answered by MM42 last updated on 22/Oct/23
$$ \\ $$$$\mathrm{4}\:{digits} \\ $$$$\left\{{a},{b},{c},{d}\right\}\::\:\:\mathrm{3}×\mathrm{4}×\mathrm{3}×\mathrm{2}=\mathrm{72} \\ $$$$\left\{{a},{a},{b},{c}\right\}\::\:\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{2}}\end{pmatrix}×\frac{\mathrm{4}!}{\mathrm{2}!}=\mathrm{144} \\ $$$$\left\{{a},{a},{b},{b}\right\}\::\:\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}×\frac{\mathrm{4}!}{\mathrm{2}!×\mathrm{2}!}=\mathrm{6} \\ $$$$\left\{{a},{a},{a},{b}\right\}\::\:\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{1}}\end{pmatrix}×\frac{\mathrm{4}!}{\mathrm{3}!}=\mathrm{32} \\ $$$$\left\{{a},{a},{a},{a}\right\}\:\::\:\mathrm{2} \\ $$$$\mathrm{5}\:{digits} \\ $$$$\left\{{a},{b},{c},{d},{e}\right\}\::\:\:\mathrm{5}!=\mathrm{120} \\ $$$$\left\{{a},{a},{b},{c},{d}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{3}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{2}!}=\mathrm{480} \\ $$$$\left\{{a},{a},{b},{b},{c}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{3}}\\{\mathrm{1}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{2}!×\mathrm{2}!}=\mathrm{180} \\ $$$$\left\{{a},{a},{a},{b},{c}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{2}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{3}!}=\mathrm{240} \\ $$$$\left\{{a},{a},{a},{b},{b}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}\:×\frac{\mathrm{5}!}{\mathrm{2}!×\mathrm{3}!}=\mathrm{10} \\ $$$$\left\{{a},{a},{a},{a},{b}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{1}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{4}!}=\mathrm{40} \\ $$$$\left\{{a},{a},{a},{a},{a}\right\}\::\:\mathrm{2} \\ $$$$ \\ $$$$\Rightarrow{ans}=\mathrm{1328}\:\checkmark \\ $$$$\:\: \\ $$
Commented by Tawa11 last updated on 15/Oct/23
$$\mathrm{God}\:\mathrm{bless}\:\mathrm{you}\:\mathrm{sir}. \\ $$$$\mathrm{I}\:\mathrm{appreciate}\:\mathrm{your}\:\mathrm{time}. \\ $$
Commented by mr W last updated on 22/Oct/23
$${miss}\:{Tawa}: \\ $$$${is}\:{this}\:{result}\:{correct}? \\ $$
Commented by mr W last updated on 22/Oct/23
$${MM}\mathrm{42}\:{sir}: \\ $$$${please}\:{recheck}\:{your}\:{solution}! \\ $$$$\mathrm{4}−{digit}\:{numbers}\:{should}\:{be}\:{larger} \\ $$$${than}\:\mathrm{4000}.\:{this}\:{is}\:{not}\:{considered}\:{in} \\ $$$${all}\:{of}\:{your}\:{combinations}. \\ $$$$ \\ $$$${i}\:{think}\:{the}\:{correct}\:{answer}\:{should}\:{be}: \\ $$$$ \\ $$$$\mathrm{4}\:{digits} \\ $$$$\left\{{a},{b},{c},{d}\right\}\::\:\:\mathrm{3}×\mathrm{4}×\mathrm{3}×\mathrm{2}=\mathrm{72} \\ $$$$\left\{{b},{a},{a},{c}\right\}\::\:\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}×\cancel{\begin{pmatrix}{\mathrm{4}}\\{\mathrm{2}}\end{pmatrix}}×\mathrm{3}×\mathrm{3}×\mathrm{3}=\mathrm{54} \\ $$$$\left\{\cancel{{a},{a},{b},{b}}\right\}\::\:\cancel{\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}×\frac{\mathrm{4}!}{\mathrm{2}!×\mathrm{2}!}=\mathrm{6}} \\ $$$$\left\{{b},{a},{a},{a}\right\}\::\:\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}×\begin{pmatrix}{\mathrm{3}}\\{\mathrm{1}}\end{pmatrix}×\cancel{\frac{\mathrm{4}!}{\mathrm{3}!}}=\mathrm{6} \\ $$$$\cancel{\left\{{a},{a},{a},{a}\right\}\:\::\:\mathrm{2}} \\ $$$$ \\ $$$$\mathrm{4}\:{digit}\:{numbers}:\:\mathrm{72}+\mathrm{54}+\mathrm{6}=\mathrm{132} \\ $$$$ \\ $$$$\:\: \\ $$$$\mathrm{5}\:{digits} \\ $$$$\left\{{a},{b},{c},{d},{e}\right\}\::\:\:\mathrm{5}!=\mathrm{120} \\ $$$$\left\{{a},{a},{b},{c},{d}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{3}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{2}!}=\mathrm{480} \\ $$$$\left\{{a},{a},{b},{b},{c}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{3}}\\{\mathrm{1}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{2}!×\mathrm{2}!}=\mathrm{90} \\ $$$$\left\{{a},{a},{a},{b},{c}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{2}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{3}!}=\mathrm{240} \\ $$$$\left\{{a},{a},{a},{b},{b}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{2}}\end{pmatrix}\:×\frac{\mathrm{5}!}{\mathrm{2}!×\mathrm{3}!}×\mathrm{2}=\mathrm{20} \\ $$$$\left\{{a},{a},{a},{a},{b}\right\}\::\:\begin{pmatrix}{\mathrm{2}}\\{\mathrm{1}}\end{pmatrix}\:×\begin{pmatrix}{\mathrm{4}}\\{\mathrm{1}}\end{pmatrix}×\frac{\mathrm{5}!}{\mathrm{4}!}=\mathrm{40} \\ $$$$\left\{{a},{a},{a},{a},{a}\right\}\::\:\mathrm{2} \\ $$$$ \\ $$$$\mathrm{5}\:{digit}\:{numbers}:\: \\ $$$$\:\:\:\:\mathrm{120}+\mathrm{480}+\mathrm{90}+\mathrm{240}+\mathrm{20}+\mathrm{40}+\mathrm{2} \\ $$$$\:\:\:\:=\mathrm{992} \\ $$$$ \\ $$$${totally}:\:\mathrm{132}+\mathrm{992}=\mathrm{1124}\:\checkmark \\ $$
Commented by mr W last updated on 22/Oct/23
$${this}\:{result}\:{can}\:{also}\:{be}\:{obtained} \\ $$$${using}\:{generating}\:{function}\:{method}, \\ $$$${see}\:{Q}\mathrm{198576} \\ $$