Recurrence Relation Solver
Math Algebra • Sequences and Series
Frequently Asked Questions
How do I solve a second-order recurrence relation with this calculator?
Choose Order 2, enter p and q (and optionally c), then provide a_0 and a_1. The solver uses the characteristic equation to find a closed-form solution and also generates a term table up to your chosen n.
What is the characteristic equation for a_n = p a_(n-1) + q a_(n-2)?
Assuming a solution of the form a_n = r^n leads to the characteristic equation r^2 - p r - q = 0. The roots determine whether the closed form uses two exponentials, a repeated-root form, or a real sinusoidal form for complex roots.
What does the constant term c do in a recurrence relation?
A nonzero c makes the recurrence non-homogeneous, so the solution is the sum of a homogeneous solution and a particular solution. Depending on the coefficients, the particular solution may be constant, linear, or quadratic.
Can this tool solve the Fibonacci recurrence?
Yes. Use the Fibonacci preset (or set p = 1, q = 1 with a_0 = 0 and a_1 = 1) to generate Fibonacci terms and the closed-form expression derived from the characteristic roots.