Let S={a,b} be a two-element set. How many functions f:S rightarrow S have the property f circ f is the identity function? One or two or three?

Luz Stokes

Luz Stokes

Answered question

2022-07-16

Let S = { a , b } be a two-element set. How many functions f : S S have the property f f is the identity function?
one or two or three?
This is my university discrete math question, however, i am really out of thought for this one. I understand the identity function is that we give f ( x ) = x and g ( x ) = x, but for f f, the only thing i can thought is f ( x ) × f ( x ), am i right?

Answer & Explanation

le1kabp

le1kabp

Beginner2022-07-17Added 11 answers

Step 1
There are only 2 functions to meet the requirement. One is f = I d, and the other is f with f ( a ) = b and f ( b ) = a.
Step 2
Check : f ( f ( a ) ) = f ( b ) = a, and f ( f ( b ) ) = f ( a ) = b. So f f = I d.

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?