In one throw of a coin, the number of possible ways is 2 since either head (H) or tail (T) may appear.
In two throws of a coin, the total no of ways is 2×2 i.e.4 since corresponding to each way of the first coin there are 2 ways of second.
Similarly in three throws of a coin, the number of ways is 23 and
thus in n throws, the number of ways N=2n
And M = the favorable no.of ways =the number of ways in which head will occur once or thrice or 5 times or 7 times and so on,
=nC1+nC3+nC50+......=2n−1.
Hence required probability p=MN=2n−12n=12.