Help Me Find # of Onto Functions from B -> B

  • Thread starter Thread starter James889
  • Start date Start date
  • Tags Tags
    Functions
AI Thread Summary
To determine the number of onto functions from the set B = {1,2,3,4,5} to itself, it's important to note that an onto function must also be one-to-one when the sets are of equal size. There are 55 total functions from B to B, but to be onto, each element in B must map uniquely to every other element. This means that for the first element, there are 5 choices, followed by 4 for the second, and so on, leading to a total of 5! (factorial) onto functions. The discussion clarifies that an element can indeed map to itself, and the function must maintain a one-to-one correspondence to be considered onto. Understanding these principles simplifies the problem of counting onto functions.
James889
Messages
190
Reaction score
1
Hi,

I have a simple question i'd like some help with

let B = \{1,2,3,4,5\}

How many functions from B -> B are onto ?

A kick in the right direction would be nice
 
Physics news on Phys.org
say you have a function defined on
f : a \in A \rightarrow f(a) = b \in B

A function is onto if for every b in B, there exists an a, such that f(a) = b

in this case A = B
f : b \in B \rightarrow f(b) = b' \in B
and there must be a b for every b'

so what else can you say about f?
 
There are, of course, 55 functions from B to B.

In order to be onto, a function from two sets of the same size (which, of course, includes functions from one set to itself) must also be one-to-one. I think that makes the problem simpler.

Choose a number to map "1" to - you have 5 choices. Once that is done, you cannot map anything else to that so you now have 4 choices to map "2" to, 3 to map "3" to, etc. See the point?
 
HallsofIvy said:
There are, of course, 55 functions from B to B.

In order to be onto, a function from two sets of the same size (which, of course, includes functions from one set to itself) must also be one-to-one. I think that makes the problem simpler.

Choose a number to map "1" to - you have 5 choices. Once that is done, you cannot map anything else to that so you now have 4 choices to map "2" to, 3 to map "3" to, etc. See the point?

I see the point, so an element can map to itself?
So is the function also one-to-one ?
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top