title: Why is the maximum value of an unsigned n-bit integer 2ⁿ-1 and not 2ⁿ?
body: <p>The maximum value of an <code>n</code>-bit integer is 2<sup>n</sup>-1. Why do we have the "minus 1"? Why isn't the maximum just 2<sup>n</sup>?</p>