Answer to a) is n? and b) is n-1?Quote:

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 0 to both 1 and n?

b) that assign 1 to exactly one of the positive integers less than n?