2. Let S = { :(a1a2a3a4∈ N and 0 ≤ ≤ 9 for each i = 1, 2, 3, 4}. In other words, S is the set of all 4-digit strings with each digit between 0 an 9. (a) Show that the function f : S → S defined by f(a1a2a3a4) =a4a3a2a1 is a bijection. (b) (Note that the function reverses the string. For example, f(9527) = 7259) Find f-1 . Specifically, what is f-1.(a1a2a3a4)?
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
(a) Let us show that the function defined by is a bijection.
Let Then and hence It follows that and consequently, is injective. For any we have that and hence is surjective.
(b) Let us show that that is Indeed,
and