login
A346218
Expansion of 1/Pi in signed binary nonadjacent form.
2
0, 0, 1, 0, 1, 0, 0, 1, 0, -1, 0, 0, 0, 0, -1, 0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, 1, 0, 1, 0, 0, -1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, -1, 0
OFFSET
1
COMMENTS
The signed binary nonadjacent form is also called "canonical signed digit representation" or the result of a "canonical recoding" algorithm.
It is used to multiply binary numbers by the minimum number of shifts and additions or subtractions.
Multiplication by 1/Pi or, more generally, by 2^k/Pi, can be used in argument reduction in the evaluation of trigonometric functions.
REFERENCES
I. Koren, Computer Arithmetic Algorithms, 2nd edition, page 146.
EXAMPLE
0.01010010T0000T010T000010...
CROSSREFS
Cf. A184615, A184616 (for the nonadjacent form), A049541 (1/Pi in decimal), A345703 (Pi in signed binary nonadjacent form), A127266 (1/Pi in binary).
Sequence in context: A372877 A289074 A289242 * A188037 A144598 A144606
KEYWORD
sign,easy,base
AUTHOR
Thomas König, Jul 11 2021
STATUS
approved