I have a set of numbers, namely {1,2,3,4,5,6}.I want to find the number of permutations $a_1,a_2,a_3,a_4,a_5,a_6$ of the above mentioned set such that $a_1,…,a_k$ is not a permutation of $1,..k$ for any integer k, $1 \leq k \leq 5$
My approach:
I call a permutation unfavourable if that permutation does not belong to the required number of permutations, and favourable otherwise
-
I consider the case where $a_1 = 1$, all the permutations satisfying this criterion will be unfavourable. Thus, I dont have $5! = 120$ such unfavourable permutations
-
I consider all the permutations where the first two elements are a permutation of 1 and 2. The cases where $a_1 = 1$ is covered above, thus I have to consider the case when $a_1=2$ $a_2=1$, which if I am correct will give my $4! = 24$ unfavourable permutations
-
I now consider the permutations where the first 3 elements are a permutation of $1,2,3$ The permutations starting with $a_1=1$ and $a_1=2,a_2=1$ are considered in the above cases and hence I only consider the cases where the permutations start in $(3,1,2);(3,2,1);(2,3,1)$ giving me a total of 18 different unfavourable permutations.
Continuing thus and considering the permutations wherein the first 4 elements are a permutation of $1,2,3,4$ and the permutations wherein the first 5 elements are a permutation of $1,2,3,4,5$ and carefully computing the cases , taking care that they are not a repetition of the above cases, I am getting a total of 237 unfavourable cases, which when subtracted from 720, which is the total number of permutations, I get the answer 483.
However the given answer is 528, can anybody please correct me where I am going wrong, have I considered any case multiple number of times?
Also, alternative solutions are also welcome since I find this method of mine to be cumbersome
Best Answer
Instead of testing cases with $a_1$, we test cases with $a_6$
Adding all those together gives us 528.
At first, I used a similar way like yours but after I found out that I have minus-ed several (quite many indeed!) numbers multiple times, and resulting in an answer less than the correct solution. Perhaps there is a similar mistake in yours, minus-ing numbers too much times?