For fixed parameters , the two Lucas sequences are the solutions of the linear recurrence relation with initial values and . They are the Lucas U-sequence and the Lucas V-sequence. The choice gives the Fibonacci sequence and the ordinary Lucas numbers.
If are distinct roots of , direct substitution gives and . The recurrence itself remains meaningful when the roots coincide or division is unavailable, so it is the safest definition over a general ring. Fast doubling for Lucas sequences exploits these two related solutions to compute distant terms.
New to topics? Read the docs here!