Solveeit Logo

Question

Question: If a set A has n elements, then the number of functions defined from A to A that are not one - one i...

If a set A has n elements, then the number of functions defined from A to A that are not one - one is

A

(n)n2(n)^{n^2}

B

n!(nC0+nC1+nC2+......+nCn)n!- (^n C_0 + ^n C_1 + ^n C_2 + ...... + ^n C_n)

C

nnn!n^n - n!

D

nnn^n

Answer

nnn!n^n - n!

Explanation

Solution

Let A be a set with nn elements. We are considering functions defined from A to A. The domain of the function is A, and the codomain of the function is A. Both the domain and codomain have nn elements.

The total number of functions from a set with mm elements to a set with kk elements is kmk^m. In this case, m=nm=n and k=nk=n, so the total number of functions from A to A is nnn^n.

A function f:AAf: A \to A is one-one (or injective) if for any two distinct elements x1,x2Ax_1, x_2 \in A, their images are distinct, i.e., if x1x2x_1 \neq x_2, then f(x1)f(x2)f(x_1) \neq f(x_2). For a function from a finite set to itself, being one-one is equivalent to being onto (surjective) and being a bijection. To define a one-one function from A to A, we need to assign each element in the domain A to a unique element in the codomain A. This is equivalent to finding a permutation of the elements of the codomain. For the first element in the domain, there are nn choices in the codomain. For the second element in the domain, there are n1n-1 remaining choices in the codomain (since the image must be distinct from the first element's image). For the third element, there are n2n-2 remaining choices, and so on. For the nn-th element, there is only 1 choice left. So, the number of one-one functions from A to A is n×(n1)×(n2)××1=n!n \times (n-1) \times (n-2) \times \dots \times 1 = n!.

We are asked to find the number of functions from A to A that are not one-one. The set of all functions from A to A can be partitioned into two disjoint sets: the set of one-one functions and the set of functions that are not one-one. Therefore, the number of functions that are not one-one is equal to the total number of functions minus the number of one-one functions. Number of functions that are not one-one = (Total number of functions) - (Number of one-one functions) Number of functions that are not one-one = nnn!n^n - n!.

The result nnn!n^n - n! matches option (3).