Alles Erdreich ist Österreich untertan

There are two sets X = { a , b , c , d } X= \{ a, b, c, d \} and Y = { a , e , i , o , u } Y= \{ a, e, i, o, u \} . How many of the functions whose domain is X X and codomain is Y Y , are not one-to-one?

Details and assumptions

You may choose to read up on Function Terminology .


The answer is 505.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

11 solutions

Michael Tang
Oct 6, 2013

Instead of counting directly, which would involve messy casework, we will count the complement of what we want (how many functions f f are one-to-one) and then subtract the result from the total number of functions.

If f f is one-to-one, then there are 5 5 choices for the value of f ( a ) f(a) (any of the elements of Y Y ), there are 4 4 choices for the value of f ( b ) f(b) (it can't equal f ( a ) f(a) ), there are 3 3 choices for the value of f ( c ) f(c) (it can't equal f ( a ) f(a) or f ( b ) f(b) ), and there are 2 2 choices for the value of f ( d ) f(d) (it can't equal f ( a ) , f(a), f ( b ) , f(b), or f ( c ) f(c) ). Thus, there are a total of 5 4 3 2 = 120 5\cdot4\cdot3\cdot2 = 120 one-to-one functions f . f.

If we ignore all restrictions, then for each of the 4 4 values in the domain of f , f, there are 5 5 choices for the output. So, there are 5 4 = 625 5^4 = 625 functions, counting without restrictions.

Since every function is either one-to-one or not one-to-one, there are exactly 625 120 = 505 625 - 120 = \boxed{505} functions that are not one-to-one.

Each of the element of X X has 5 choices,to make up all functions. Now 1-1 functions will be those in which 4 out 5 elements are chosen from Y Y & connected distinctly by elements of X X , which gives 5 P 4 ^5P_4 ways. So number of required non 1-1 functions are 5 4 5 P 4 = 505 5^4 - ^5P_4 =505 in number.

How did you wrote 5P4 using latex?

Lokesh Sharma - 7 years, 8 months ago

Log in to reply

^5P_4 gives 5 P 4 . ^5P_4.

Michael Tang - 7 years, 8 months ago

Log in to reply

Very clever! Thanks

Lokesh Sharma - 7 years, 8 months ago

Alternatively, the other ways of writing permutation are 5 P 4 5P4 , 5 P 4 _5P_4 and P 4 5 P^5_4

Daniel Liu - 7 years, 8 months ago
Hs N
Oct 7, 2013

Instead of directly trying to count what is asked, it is easier to count the number of injective maps and the total number of maps. One can then subtract the former from the latter. To get the total number of maps, we notice that each of the elements of X X has five possible images, giving 5 4 = 625 5^4=625 total maps. The number of injective ones is 5 4 3 2 = 120 5\cdot4\cdot3\cdot2=120 : a a has 5 5 possible images, after which b b has only 4 4 options left, etc. The answer thus is 625 120 = 505 625-120=505 .

Julio Reyes
Oct 12, 2013

For a function to be one-to-one, each element in Y that is in the range, corresponds to exactly only one element in the domain X .

First we find total mapping possibilities for the function.

5 5 5 5 = 625 5*5*5*5 = 625

In this case there are no restriction, so each element in X has 5 choices to map to in Y .

Next we find number of possibilities were the function is one-to-one.

5 4 3 2 = 120 5*4*3*2 = 120

In this case, the first element in X has 5 choices to map to, then each succeeding element has 1 less choice since only 1 element in X can map to an element in Y .

Once we know the total number of possibilities and the number that are one-to-one. We simple subtract the latter to find the number that are not one-to-one.

625 120 = 505 625-120 = \fbox{505}

Daniel Chiu
Oct 6, 2013

If the function is not one-to-one, then two values from X X must go to the same value in Y Y .

We count these using complementary counting. The total number of functions is 5 4 = 625 5^4=625 , since each value in X X can go to any value in Y Y . If the function is one-to-one, then the values must be distinct. There are ( 5 4 ) = 5 \dbinom{5}{4}=5 ways to choose 4 distinct values in Y Y , and 4 ! = 24 4!=24 ways to map X X to this set of 4 values.

The answer is 5 4 ( 5 4 ) 4 ! = 625 120 = 505 5^4-\dbinom{5}{4}4!=625-120=\boxed{505} .

Shouldnt the question state codomain in stead of range? If not, why not?

Frank Tieskens - 7 years, 8 months ago

Log in to reply

I also noticed that.

The definition of " range " does appear to be ambiguous. Maybe clarification is necessary, but the problem isn't incorrect as far as I can tell.

Daniel Chiu - 7 years, 8 months ago

Total number of functions possible is 5 4 5^4 because for each element in X X , we can choose from 5 elements in Y Y . The total number of one-to-one functions is: 5 4 3 2 5*4*3*2 since for the first element in X X , we can choose an element in Y Y in 5 ways but for the next element in X X , we are allowed to choose from only 4 elements in Y Y and so on. So the total number of functions that are not one-to-one are 5 4 5 4 3 2 = 505 5^4-5*4*3*2=505 .

Adrabi Abderrahim
Oct 10, 2013

we've not one-to-one function, is the function that break injectivity, because it's a function than the order of elements matter, than we've 5 4 5^4 functions than can be. (the number of combinations of the 4 elements from 5)

but we need all functions that break injectivity so: the number of injective functions is ( 5 4 ) × 4 ! \binom{5}{4}\times4! .

why 4 ! 4! ? is the number of permutation of each set of 4 4 elements because the order matter, than:

5 4 ( 5 4 ) × 4 ! = 505 5^4 - \binom{5}{4}\times4! = 505

Leonardo Chandra
Oct 9, 2013

Because X have 4 members and Y have five members, the number of whole functions is 5^4. But, the one to one function is 5!. So, the 'not one to one' function can be found from the rest: 5^4-5!= 625-120= 505

Ryan Soedjak
Oct 8, 2013

5^4-5!=505 gg

Lokesh Sharma
Oct 6, 2013

= Total possible functions - One-to-one Functions

= 5 4 5 P 4 5^{4} - 5P4 = 505

First, we count the total number of functions from set X X to set Y Y . To do this, note that each element of Y Y gets mapped to exactly one of the four elements of X X . Thus each of the 5 5 elements belonging to Y Y is faced with 4 4 choices. By the multiplication principle, there are 5 4 = 625 5^4= 625 ways to do this.

Now we count the total number of one-to-one functions from X X to Y Y . First note that there are 5 5 elements in Y Y and 4 4 elements in X X . So one of the elements in Y Y is not mapped with any of the elements in X X . We take any 4 4 elements from Y Y , permute them, and assign the first element of the permutation to a a (i.e f ( a ) = 1 s t f(a)= 1^{st} element of the permutation), the second element of the permutation to b b , the third element of the permutation to c c , and the fourth element of the permutation to d d . Note that we have a bijection here: each such permutation corresponds to a unique function, and each function corresponds to a unique permutation. There are 5 P 4 ^5P_4 ways to do this.

To find the number of functions which are not one-one, we have to subtract this number from the total number of functions. Hence our answer will be 5 4 5 P 4 = 505 5^4 - ^5P_4= \boxed{505} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...