3,889 views
4 votes
4 votes

How many functions are there from the set {1, 2, . . . , n}, where n is a positive integer, to the set {0, 1}
a)  that assign 1 to exactly one of the positive integers less than n?

2 Answers

Best answer
7 votes
7 votes
The domain set has $n$ elements and co-domain set has 2 elements. So, each of the $n$ elements from domain has 2 choices in the function and thus we get $2^n$ total functions.

Now, we are given a condition that exactly 1 positive integer less than $n$ maps to 1. So, all others less than $n$ must map to 0. We can find this number in $^{n-1}C_1$ ways (all the mappings for these $n-1$ elements are fixed)  and $n$ can be mapped to either 0 or 1, thus we get $2. (n-1)$ possible functions.
selected by
0 votes
0 votes
according to me answer is as out of n-1 elwments only is mapped to 1 sp remaining n-2 elements + nth element make it n-1 element which will be mapped to 0 so n-1C1 +n-1C1 =2(n-1)C1 so 2(n-1)

Related questions

2 votes
2 votes
1 answer
1
anshu asked Feb 7, 2015
860 views
Total onto function from a to b with cardinality 4 and 3 respectively??
0 votes
0 votes
1 answer
2
Lakshman Bhaiya asked Oct 24, 2018
728 views
The function defined for positive integers by $F(1)=1,F(2)=1,F(3)=-1$ and by identities F(2k)=F(k),F(2k+1)=F(k) for $ k>=2.$The sum $F(1)+F(2)+F(3)+...+F(100)$ is________...
0 votes
0 votes
0 answers
3
srestha asked Aug 28, 2018
283 views
The number of ways possible to form injective function from set A set B where |A| = 3 and |B| = 5 such that pth element of set A cannot match with pthelement of set B are...
1 votes
1 votes
1 answer
4
Rajender gill asked Dec 19, 2022
643 views
Let S={0,1,2,3,….,9}. The number of subsets of 5 contains at least two even numbers? HELP ANYONE Ans.-832