chickadee » math » make-fibonaci

make-fibonaci a bprocedure
a
integer
b
integer

Returns a function representing a Fibonacci sequence with the first two numbers a and b. The fibonacci function is defined as (make-fibonacci 0 1).

The Lucas numbers are defined as a Fibonacci sequence starting with 2 and 1:

> (map (make-fibonacci 2 1) (iota 10))
(2 1 3 4 7 11 18 29 47 76)

Wikipedia: Lucas Number