For example, I know that I can represent the value -1 in this way, where "n" is the bit size of the type, n-1 is the most significant bit, and the value -2, which gives the complement representation of 2, plus the sum of the sum described below, now, I would like to know how I can use the sum, or any other type of calculation, to represent any negative value, in the form of a mathematical demonstration.
Assuming n has 8 bits, 8 - 1, 7, that is -2^7 = -128 + 127 = -1, I'm saying the summation will go through all the bits, such as 2^0 + 2^1, ..., 2^6, ie I ignore the most significant bit.