Number of injections, of functions

  • Thread starter Thread starter geoffrey159
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary
SUMMARY

The discussion focuses on the calculation of injections and functions between finite sets E and F, where the number of injections from E to F is established as ##\frac{n!}{(n-p)!}##, with p being the size of E and n the size of F. The user demonstrates a bijection between the set of injections and arrangements of elements, confirming that both sets have the same cardinality. Additionally, the number of functions from E to F is derived as ##(n+1)^p##, accounting for the inclusion of a distinct element not in F.

PREREQUISITES
  • Understanding of bijections and their properties in set theory.
  • Familiarity with permutations and arrangements in combinatorics.
  • Knowledge of functions and their domains in mathematics.
  • Basic concepts of finite sets and cardinality.
NEXT STEPS
  • Study the concept of bijections in more depth, particularly in combinatorial contexts.
  • Explore permutations and combinations, focusing on their applications in counting problems.
  • Learn about functions, specifically the differences between total functions and partial functions.
  • Investigate the implications of adding elements to sets and how it affects function definitions.
USEFUL FOR

Mathematics students, educators, and anyone interested in combinatorial mathematics, particularly in the areas of set theory and function analysis.

geoffrey159
Messages
535
Reaction score
68

Homework Statement


Show that the number of injections from ##E \rightarrow F ##, ##E,F## finite sets, ## p = \#E ,\ n = \#F,\ p\le n ##, is ##\frac{n!}{(n-p)!} ##
Then, find the number of functions from ##E \rightarrow F ##.

Homework Equations



## A = \{ \text{injections from }E \rightarrow F \} ##
## B = \{ \text{arrangements of } p \text{ elements among } n \} ##
## C = \{ \text{functions from }E \rightarrow F \} ##
## D = (F \cup \{a\}) \times ...\times (F \cup \{a\})##, ## p ## times , ## a \notin F ##

The Attempt at a Solution



Hello, I have to solve this problem for my homework. It took me a while but I think I have found it. Is it correct ?

a) I want to prove that there is a bijection from ##A## to ##B## so that ##\# A = \#B = \frac{n!}{(n-p)!} ##.
I define the mapping ## h: A \rightarrow B ## by ## h(f) = (f(x_1),...,f(x_p)) ##.

We have ##h(f)\in B## because ##f## is injective.

##h## is injective because for all ##f,g\in A##, ## h(f) = h(g) \Rightarrow \forall i=1...p,\ f(x_i) = g(x_i) \iff f = g ##.

For any arrangement ##(y_1,...,y_p)\in B##, I define ##f## such that for all ##i = 1...p##, ## f(x_i) = y_i ##. Then ##f## is necessarily injective because if we had ## f(x_i) = f(x_j)## and ## x_i \neq x_j ##, then we would have ## y_i = y_j ##, which contradicts the definition of an arrangement. So ## f\in A ## and ##h## is a surjection.

So ## h ## is a bijection

b) Same kind of problem.
I define the mapping ## h: C \rightarrow D ## by ## h(f) = (y_1, ..., y_p)## where
\begin{equation}
y_i =
\left\lbrace
\begin{array}{ccc}
f(x_i) & \mbox{if} & x_i\in \cal D(f)\\
a & & \mbox{otherwise} \\
\end{array}\right.
\end{equation}

Injectivity is shown the same way as above.

For any tuple ##(y_1,...,y_p)\in D##, I define ##f## by ## f(x_i) = y_i \iff y_i \neq a ##. Clearly ##f## belongs to ##C## and h is surjective .

Then h is bijective and ##\# C = \#D = (\#(F \cup \{a\}))^p = (n+1)^p ## (because ##\{a\}## and ##F## disjoint)
 
Last edited:
Physics news on Phys.org
a) seems correct to me

b) You seem to also count the functions that have as domain any subset of E. Why you doing that? Otherwise the answer should be ##n^p##.
 
Hello, thank you for proofreading.
Concerning your question, the difference between a function ##f## and a mapping ##g## both from ## E \rightarrow F ##, is that ##{\cal D}(f)\subset E## while ##{ \cal D}(g) = E ##. There are functions that are not defined on ##E## entirely (ex: ##E = \mathbb{R},\ f(x) = \frac{1}{x},\ {\cal D}(f) = E - \{0\}## )
 

Similar threads

Replies
4
Views
4K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K