How Many Onto Functions Can Be Defined Between Sets of Different Sizes?

  • Thread starter kuahji
  • Start date
  • Tags
    Functions
In summary, to find the number of onto functions from a set with m elements to a set with n elements, use the formula S(m,n) = (-1)n \sum(-1)k(n choose k) km. This formula can be found by using the binomial coefficient and the Bell number.
  • #1
kuahji
394
2
# of Onto Functions

How many onto functions are there from a set with four elements to a set with two elements?

My math professor gave an example of a set with 50 to a set with 35 (again asking for the number of onto functions). The way to go about the problem according to him is to just do 50*49*48*...*17*16 (basically the first element in the second set has 50 choices, the next 49, etc.). For the first two problems problems I had a set of 3 elements to a set of 2 elements, so using this reasoning (& it seemed to make sense), I'd do 3*2=6. It works. The next one I had was a set of 3 to a set of 3, so 3*2*1=6. It works. Then I get the one above, 4*3=12. It does not work. The answer should be 14. But without writing out all the possibilities, I'm trying to find a better way to understand these problems and be able to solve them more efficiently.
 
Physics news on Phys.org
  • #2


I have not done this type of stuff in years but I will help out since you are not getting any replies.

Let S(m,n) denote the number of surjective (onto) functions from a set of m elements to a set of n elements.

Then S(m,n) = (-1)n [tex]\sum[/tex](-1)k(n choose k) km

where the sum runs from 1 to n and (n choose k) is the binomial coefficient (I couldn't find the symbol for it).

This may also help: http://en.wikipedia.org/wiki/Bell_number
 

FAQ: How Many Onto Functions Can Be Defined Between Sets of Different Sizes?

What is the definition of "Number of Onto Functions"?

The number of onto functions is the total number of functions that map all elements of one set to all elements of another set, where each element of the second set is mapped to by at least one element of the first set.

How is the number of onto functions calculated?

The number of onto functions can be calculated using the formula n^m - (n choose 1)(n-1)^m + (n choose 2)(n-2)^m - ... + (-1)^k(n choose k)(n-k)^m + ... + (-1)^n(n choose n)(n-n)^m, where n is the number of elements in the first set and m is the number of elements in the second set.

What is the relationship between onto functions and one-to-one functions?

Onto functions and one-to-one functions are both types of functions that describe the relationship between two sets. Onto functions are also known as surjective functions, where every element in the second set is mapped to by at least one element in the first set. One-to-one functions, also known as injective functions, have the property that each element in the second set is mapped to by at most one element in the first set.

What are some real-life examples of onto functions?

One example of an onto function in real life is a vending machine, where each selection on the machine corresponds to a specific item. In this case, the first set would be the selection buttons and the second set would be the items in the vending machine. Another example is a restaurant menu, where each item on the menu corresponds to a specific dish. In this case, the first set would be the menu items and the second set would be the dishes.

Why is the concept of onto functions important in mathematics?

Onto functions are important in mathematics because they help us understand the relationship between two sets and the different ways in which elements can be mapped between them. They also have practical applications in fields such as computer science, economics, and engineering, where functions are used to model and solve real-world problems.

Back
Top