File Exchange

image thumbnail

GeneralizedLucas.m

version 1.0 (1.44 KB) by

GeneralizedLucas(n,a,b) returns the generalized Lucas number with index n and parameters a and b.

1 Download

Updated

No License

For fixed integers a and b such that D = a^2 + 4*b is nonnegative, the sequence V_n = GeneralizedLucas(n,a,b) satisfies the recurrence
V_n = V_{n-1} + V_{n-2} and the initial conditions V_0 = 2 and V_1 = a. When a=b=1, this is the Lucas sequence.

Comments and Ratings (0)

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video