# CAT Permutation Combination and Functions

Question

How many functions can be defined from Set A — {1, 2, 3, 4} to Set B = {a, b, c, d} that are neither one-one nor onto?

Explanation

To start with, if you do not know the meaning of one-one or onto, look these up. For good measure know the meanings of the terms surjective, injective etc also. CAT tests these terms.

Let us start by answering a far simpler question. How many functions are possible from Set A to Set B. This is equal to 4^4 = 256.

Note that any function from Set A to Set B that is one-one will also be onto and vice versa. How? Why? – Think about this. Remember, tutors can only take the horse to the pond. 🙂

So, we need to subtract only those functions that are one-one AND onto. Or, effectively we have to eliminate those functions where {1, 2, 3, 4} are mapped to {a, b, c, d} such that each is mapped to a different element. This is effectively same as the number of ways of rearranging 4 elements. Or, number of ways of doing this is 4! .

So, total number of functions that are neither one-one nor onto = 256 – 24 = 232.

### Related posts

• June 10, 2013 CAT Functions, Onto functions   Question How many onto functions can be defined from the set A = {1, 2, 3, 4} to {a, b, c}? 81 79 36 45 Answer: Choice (C) Explanatory […] Posted in Functions
• February 27, 2014 Functions Question and Solution Question Consider set A with 'a' elements, set B with 'b' elements, set C with 'c' elements. We can define a function that is one-one but not onto from set A to set B, a function that […] Posted in Functions
• October 14, 2014 CAT – Question from Pipes and Cisterns Question There are n pipes that fill a tank. Pipe 1 can fill the tank in 2 hours, Pipe 2 in 3 hours, Pipe 3 in 4 hours and so on. Pipe 1 is kept open for 1 hour, pipe 2 for 1 […] Posted in Pipes and Cisterns
• May 23, 2013 CAT Counting: Question with digits This is an interesting question from Counting. Simple framework, but one needs to be very careful with the enumeration. One can get wrong answers in a number of […] Posted in Combinatorics