Question
The number of functions $ f : \left \{ 1, 2, . . . , 10 \right \} \rightarrow \left \{ 1, 2, . . . , 10 \right \}$ such that $f(x) \neq x$ for all $x$ is
Approach
Total number of function possible $=10^{10}$
But with the restriction ,$f(x) \neq x$ for all $x$,
Eg-:$f(1)\neq 1 $ each element in the domain will have 1 less available option in the range .
So total number of function possible$=9^{10}$
Am I correct?
please help.
For every input, you have 9 choices for output. As $f(x)=x$ is not allowed. So, total no. of ways is $9^{10}$