GeneralizedLucas.m
Version 1.0.0.0 (593 Bytes) by
David Terr
GeneralizedLucas(n,a,b) returns the generalized Lucas number with index n and parameters a and b.
2.1K Downloads
Updated
25 Oct 2004
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.
Cite As
David Terr (2026). GeneralizedLucas.m (https://uk.mathworks.com/matlabcentral/fileexchange/6086-generalizedlucas-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
