Concept:
Let A and B are two sets having m and n elements respectively.
In f : A → B, total number of functions will be nm.
Explanation:
S -> f : 24 → 2 gives total number of functions to be 22^4 = 216
N is defined by f : S-> {0,1}.
Therefore, total number of functions will be 2S
Hence, log2 log2 N
= log2 log2 2S
= log2 log2 22^16
= log2216
= 16