OFFSET
3
COMMENTS
The signed binary nonadjacent form is also called "canonical signed digit representation" or the result of a "canonical recoding" algorithm.
REFERENCES
I. Koren, Computer Arithmetic Algorithms, 2nd edition, page 146.
H. Prodinger, On binary representations of integers with digits -1, 0, 1 , INTEGERS 0 (2000).
LINKS
Wikipedia, Canonical signed digit
Thomas König, Program in C to calculate the digits using gmp and mpfr.
EXAMPLE
10T.0010010001000000T0T010101000100010001...
CROSSREFS
KEYWORD
sign,easy,base
AUTHOR
Thomas König, Jun 24 2021
STATUS
approved