in Combinatory
3,768 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?

in Combinatory
by
3.8k views

1 comment

A small doubt understanding the question... Why 1 can be assigned to n ?

Isn't the question says that 1 can only be assigned to exactly one number between 1 to n-1 ?

Plz help
0
0

2 Answers

7 votes
7 votes
Best answer
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
by

4 Comments

thanks i got now:)
1
1
arjun sir why r u multiplying  plz explain..

it should be (n-1) + 2.. plz correct me if iam wrong
0
0
but in this way overall 1 is getting assigned two times .................
0
0
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)
by

1 comment

No, you are doing wrong. Because the question allows $n$ to be mapped to either 0 or 1. Also, you select one out of $n-1$ elements first. Then how you get ${}^{n-1}C_1$ again?
4
4
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true