From charlesreid1

No edit summary
No edit summary
 
Line 4: Line 4:


<math>
<math>
G(a,b,n) = G(a,b,n-1) + G(a,b,n-2) \qquad G(a,b,0) = a, G(a,b,1) = b
G(a,b,n) = G(a,b,n-1) + G(a,b,n-2)
</math>
 
<math>
G(a,b,0) = a
</math>
 
<math>
G(a,b,1) = b
</math>
</math>

Latest revision as of 00:34, 12 January 2018




General Fibonacci numbers generalize the idea behind the Fibonacci and Lucas numbers, and can be written as a function of two additional variables $ a, b $ - the two starting values of the sequence.

$ G(a,b,n) = G(a,b,n-1) + G(a,b,n-2) $

$ G(a,b,0) = a $

$ G(a,b,1) = b $