Edgar SIMO-SERRA
Definition. A recurrence is linear if it is of the form
f(n)=a1f(n−1)+anf(n−2)+⋯+adf(n−d)=d∑i=1aif(n−i)
Definition. The order of a linear recurrence defined in the above equation is d.
Law of Total Probability (single event):
P(A)=P(A|E)P(E)+P(A|ˉE)P(ˉE)