Given n bits that can hold 0s or 1s what is the largest and smallest integer they can hold? I know the formula $\displaystyle min=-2^{n-1}, max=2^{n-1}-1$ but is that only for numbers stored using two's compliment? Is there a formula for one's compliment and signed magnitude? If a number is unsigned then it would be 2^n right?