No BSD License  

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.44 KB File ID: #6086

GeneralizedLucas.m

by

 

20 Oct 2004 (Updated )

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

| Watch this File

File Information
Description

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.

Required Products Bioinformatics Toolbox
MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us