coolul007
Gold Member
- 271
- 8
- TL;DR
- I may have reinvented the wheel, here is a pdf on my observations
Looks ok so far (re-opened).coolul007 said:Summary:: I may have reinvented the wheel, here is a pdf on my observations
https://www.testsite.cocoams.org/linrec.pdf
There already exists a Benet formula for the Fibonacci numbers.Svein said:Recursive formulas occur everywhere. Some examples:
Other recursives inlude the Sierpinski curves and the Hilbert curves.
- The Fibonacci series: [itex]x_{n+1}=x_{n}+x_{n-1}[/itex]
- The Mandelbrot series: [itex]z_{n+1}=z_{n}^{2}+c[/itex] where c is a given constant
- Factorials: n! = n⋅(n-1)!, (n integer >0, 0!=1)
- Square roots: [itex]x_{n+1}=\frac{1}{2}(x_{n}+\frac{a}{x_{n}})[/itex] (for a>0)
Linear, homogeneous recurrence relations (sequences which can be defined using the form ##a_n=k_1 a_{n-1} + k_2 a_{n-2} + ... k_m a_{n-m}##) can be turned into non-recursive formulae by obtaining solutions for the characteristic polynomial.coolul007 said:There already exists a Benet formula for the Fibonacci numbers.
It seems these are solutions for a particular recursion, what I have supplied is a universal formula for all positive linear recursions.jbriggs444 said:Linear, homogeneous recurrence relations (sequences which can be defined using the form ##a_n=k_1 a_{n-1} + k_2 a_{n-2} + ... k_m a_{n-m}##) can be turned into non-recursive formulae by obtaining solutions for the characteristic polynomial.
The motivation for the technique is straightforward. Suppose that a solution takes the form ##x^n## for some value x. Then the recurrence states that ##x^m=k_1 x^{m-1} + k_2 x^{m-2} + ... k_m##. This is the characteristic polynomial for the recurrence. It will normally have m solutions. Any of those solutions will have the property that ##x^n## solves the recurrence. Any linear combination of those (##a x_1^n + b x_2^n + ...##) will also solve the recurrence. You plug in initial values of the sequence to figure out which linear combination you need. You do have to worry about complex solutions. Those end up being sines and cosines.
Or one can consult Wikipedia where they describe the exact same thing and more.
As I understand your terminology, your "positive linear recursion" would be what we would call an "inhomogeneous first order linear recurrence relation".coolul007 said:It seems these are solutions for a particular recursion, what I have supplied is a universal formula for all positive linear recursions.