this is a study question given to us by the professor, but i am a bit confused regarding the result i get, it doesn't match with the professor's one! Is there anything that i am doing wrong and missing here, if so please correct me. Thank You. With Respect Umer Selmani
the question: How many numbers larger than 56100 can formed with digits from (0,1,5,6,7), repetitions not allowed?
the solution given to us: $2 * 4! + 1 * 1 * 3! + 1 * 1 * 2 * 2!$
the solution i got: $2* 4! + 1 * 1 * 3! + 1 * 1 * 1 + 2!$
I will give a very explicit solution, but note it is too cumbersome for such a simple problem which is not best practice..
You want numbers larger than (strictly larger than) $56100$, and the digits you have available to you are $0$, $1$, $5$, $6$ and $7$ with repetition of digits not allowed. Let us denote $$ 56100 = d_1 d_2 d_3 d_4 d_5 $$
So the first observation, since repetition is not allowed, is that all of your numbers will have be five digits long
We can enumerate all possibilities by cycling through digit by digit:
Combining all 3 cases, result is $$ (2\cdot 4!) + (1\cdot 1\cdot 3!) + (1\cdot 1\cdot 2\cdot 2!)$$