Given n bits that can hold 0s or 1s what is the largest and smallest integer they can hold? I know the formula 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?