Question
Question: Let \[f\left( n \right)\] denote the number of different ways in which the positive integer \[n\] ca...
Let f(n) denote the number of different ways in which the positive integer n can be expressed as the sum of 1s and 2s . For example, f(4)=5 , since 4=2+2=2+1+1=1+2+1=1+1+2=1+1+1+1 . Note that the order of 1s and 2s is important.
f:N→N is
A. One-one and onto
B. One-one and into
C. Many-one and onto
D. Many-one and into
Solution
In the above given question, we are given a function f of natural numbers that is f:N→N . The function f here is defined as the number of ways a positive integer n can be expressed as the sum of 1s and 2s where the order of 1s and 2s is important. We have to determine the nature of the function f if it is one-one and onto or not.
Complete step by step answer:
Given function is f:N→N, where f(n) is the number of ways n can be expressed as the sum of 1s and 2s. We have to check the injectivity and surjectivity of the given function f:N→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 N here, is mapped with a unique element of another set, N .That is. if
f(x1)=f(x2) then x1=x2
Here we have, f(4)=5 since
⇒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(2) , f(3) , etc as,
Hence we get f(1)=1 as,
⇒1=1
And f(2)=2 as,
⇒2=2=1+1
And f(3)=3 as
⇒3=1+1+1=1+2=2+1
As we can see that the value of f(n) is increasing with the increasing value of n ,
Hence for each value of n we have a distinct i.e. unique value of f(n).Therefore, f:N→N is one-one.
Now, a function f:A→B is surjective if and only if for all the elements in B , there exists an element in A.
That is, ∀y∈B we have x∈A such that f(x)=y .
But in f:N→N , we have 4∈N but there does not exist any n∈N such that f(n)=4 .
Therefore, f:N→N is not onto but into.Hence, f:N→N is one-one and into.
So the correct option is B.
Note: When a function f:A→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.