If a variable can take only integer values from 0 to n, where n is a constant integer, then variable can be represented as a bit-field whose width is the integral part of (assume base 2)Ā

(1) log(n) +1 (2) log(n + 1) + 1 (3) log(n ā 1) + 1 (4) none of these