negativebase
Negative base numeral systems use a base -b where b is an integer greater than 1. In such a system, every integer can be represented as a finite sum of digits d_i times (-b)^i, with digits 0 ≤ d_i < b. Unlike ordinary decimal or binary, the base is negative, so positive and negative values do not require a separate sign. Representations are unique for each integer once the digit set is fixed.
To convert a decimal integer to base -b, repeatedly divide by -b, recording remainders that fall in
Any base -b with b > 1 yields a signless representation of all integers. The base -2 system,