Solveeit Logo

Question

Question: Let \[f\left( n \right)\] denote the number of different ways in which the positive integer \[n\] ca...

Let f(n)f\left( n \right) denote the number of different ways in which the positive integer nn can be expressed as the sum of 1s1s and 2s2s . For example, f(4)=5f\left( 4 \right) = 5 , since 4=2+2=2+1+1=1+2+1=1+1+2=1+1+1+14 = 2 + 2 = 2 + 1 + 1 = 1 + 2 + 1 = 1 + 1 + 2 = 1 + 1 + 1 + 1 . Note that the order of 1s1s and 2s2s is important.
f:NN  f:N \to N\; is
A. One-one and onto
B. One-one and into
C. Many-one and onto
D. Many-one and into

Explanation

Solution

In the above given question, we are given a function ff of natural numbers that is f:NN  f:N \to N\; . The function ff here is defined as the number of ways a positive integer nn can be expressed as the sum of 1s1s and 2s2s where the order of 1s1s and 2s2s is important. We have to determine the nature of the function ff if it is one-one and onto or not.

Complete step by step answer:
Given function is f:NN  f:N \to N\;, where f(n)f\left( n \right) is the number of ways nn can be expressed as the sum of 1s1s and 2s2s. We have to check the injectivity and surjectivity of the given function f:NN  f:N \to N\; whether it is one-one and onto or not. For a function to be one-one or injective, there must be the condition such that each element of one set, say NN here, is mapped with a unique element of another set, NN .That is. if
f(x1)=f(x2)f\left( {{x_1}} \right) = f\left( {{x_2}} \right) then x1=x2{x_1} = {x_2}
Here we have, f(4)=5f\left( 4 \right) = 5 since
4=2+2=2+1+1=1+2+1=1+1+2=1+1+1+1\Rightarrow 4 = 2 + 2 = 2 + 1 + 1 = 1 + 2 + 1 = 1 + 1 + 2 = 1 + 1 + 1 + 1
Similarly, we can write the values for f(1)f\left( 1 \right) , f(2)f\left( 2 \right) , f(3)f\left( 3 \right) , etc as,
Hence we get f(1)=1f\left( 1 \right) = 1 as,
1=1\Rightarrow 1 = 1
And f(2)=2f\left( 2 \right) = 2 as,
2=2=1+1\Rightarrow 2 = 2 = 1 + 1

And f(3)=3f\left( 3 \right) = 3 as
3=1+1+1=1+2=2+1\Rightarrow 3 = 1 + 1 + 1 = 1 + 2 = 2 + 1
As we can see that the value of f(n)f\left( n \right) is increasing with the increasing value of nn ,
Hence for each value of nn we have a distinct i.e. unique value of f(n)f\left( n \right).Therefore, f:NN  f:N \to N\; is one-one.
Now, a function f:ABf:A \to B is surjective if and only if for all the elements in BB , there exists an element in AA.
That is, yB\forall y \in B we have xAx \in A such that f(x)=yf\left( x \right) = y .
But in f:NN  f:N \to N\; , we have 4N4 \in N but there does not exist any nNn \in N such that f(n)=4f\left( n \right) = 4 .
Therefore, f:NN  f:N \to N\; is not onto but into.Hence, f:NN  f:N \to N\; is one-one and into.

So the correct option is B.

Note: When a function f:ABf:A \to B is both injective and surjective, i.e. both one-one and onto, then the function is known as a bijective function or one-one onto function. Such functions are also known as an invertible function because the inverse of a function exists if and only if that function is both one-one and onto, i.e. is a bijective function.