Sets, Relations & Functions

Answer & solution
Official answer: 16
1. Method and setup. For a function from an m-element domain to {0,1}, each input independently chooses one of two outputs, so there are 2ᵐ functions. Apply this rule twice: first to the sixteen four-bit inputs, then to the resulting set of Boolean functions. Keep the two exponentiation levels distinct before taking logarithms.
2. Work through the result and its assumptions. The domain{0, 1}^4 has 16 elements, so S contains 216 Boolean functions. The number of functions from S to{0, 1} is N=22^16. Therefore log2(log2 N)=16.