As Jan Dvorak noted in the comments, this is just a number written in the -2 database.
Consider your example [0, 1, 1, 1, 1, 1, 1] .
Indicators -2 are the same as for 2, but with variable signs:
(-2)^0 = 1 (-2)^1 = -2 (-2)^2 = 4 (-2)^3 = -8 (-2)^4 = 16 (-2)^5 = -32 (-2)^6 = 64 ...
In the notation of a sequence of bits, the first exponentials appear in the first place, that is, the order is reversed compared to ordinary binary numbers.
[0, 1, 1, 1, 1, 1, 1] = 0 * (-2)^0 + 1 * (-2)^1 + 1 * (-2)^2 + 1 * (-2)^3 + 1 * (-2)^4 + 1 * (-2)^5 + 1 * (-2)^6
which gives (bottom to top)
[0, 1, 1, 1, 1, 1, 1] = 64 - 32 + 16 - 8 + 4 - 2 = 42
source share