A Boolean function F of n variables has 2n possible input combinations in its truth table.
For a function to be self-dual, the condition F(x1,x2,…,xn)=F(x1,x2,…,xn) must hold for all input combinations.
This condition groups the 2n minterms into 2n−1 complementary pairs (mi,m2n−1−i). For each pair:
Choosing the function value for mi uniquely fixes the value for the complementary minterm m2n−1−i (if F(mi)=0, then F(m2n−1−i)=1, and vice versa).
Since there are 2n−1 independent pairs and 2 independent choices (0 or 1) for each pair, the total number of self-dual functions is:
Hence, option (D) is correct.