What is a simple algorithm you can feasibly do by hand to negate an integer in a negative base, such as negadecimal?
In positive bases, you can simply append a negative sign if it is not there, and remove it if it is:
Negate 123456 -> -123456 Negate -123456 -> 123456
In a negative base, however, it is not so easy, since both negative and positive numbers can be represented without any sort of explicit sign.
This should be the result in negadecimal:
Negate 123456 -> 98764 Negate 98764 -> 123456
I can't figure out a straightforward method (i.e. one that can be done with pencil and paper fairly mindlessly) to negate a negadecimal number. How could I do this?