https://en.m.wikipedia.org/wiki/Information_theory
Specifying an element from a set of 2^n members seems equivalent to encoding n bits of information.