TAOCP 7.1.3 Exercise 156

Working

Section 7.1.3: Bitwise Tricks and Techniques

Exercise 156. [21] [21] Design algorithms (a) to convert a given integer x to its negaFibonacci code α, and (b) to convert a given negaFibonacci code α to x = N(α).

Verified: no
Solve time: 3m37s


Working