Number of functions of k-arity I want to find the number of possible functions g i

Grant Hull

Grant Hull

Answered question

2022-06-02

Number of functions of k-arity
I want to find the number of possible functions g i acting on k elements ( p 1 , , p k ) if the possible values of p j s and g i are ( v 1 , , v n ).
My thoughts: g i : { v 1 , , v n } k { v 1 , , v n }, g i : ( p 1 , , p k ) g i ( p 1 , , p k ). It's possible to imagine a tabular with each possible value of the input and so having in total n k rows. Now the values that g i can take are again between n option for each row, and so I get n k n possible function. Is that true?

Answer & Explanation

kaveljo49bl

kaveljo49bl

Beginner2022-06-03Added 2 answers

Step 1
We have the following
- | A k | = | A | k
- { f : A B } | = | B | | A |
Step 2
In this case we have
| { f : A k A } | = | A | | A k | = | A | | A | k = n n k
Observe that this means n ( n k ) , not ( n n ) k = n n k .

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?