Lucas sequences satisfyThese identities follow from the root formulas for the Lucas U-sequence and Lucas V-sequence, or from their recurrence, so they are polynomial identities valid over a commutative ring. They compute terms with doubled indices from terms with about half the index.
A division-free algorithm carries . Put , , and . For an even target return ; for an odd target return . Starting from and following the binary digits of the target uses ring operations. At this is the usual Fibonacci doubling method, and it also works in modular arithmetic.
Articles by others on the same topic
There are currently no matching articles.