문제

I can calculate the Matrix representation of first degree Linear recurrence equations. And I calculate for higher order by using fast matrix exponentiation. I learnt this from this tutorial http://fusharblog.com/solving-linear-recurrence-for-programming-contest/

But I am facing problem in calculating the matrix representation of Second Degree Linear recurrence equations. For example -

S(n) = a * (S(n - 1))^2 + b * S(n - 1) + c
where S(0) = d

Can you help me to figure out the matrix representation of the above equation or give me some insights? Thanks in advance.

도움이 되었습니까?

해결책

This is polynomial of second degree. The well-known recurrence

 x_(n+1) = (x_n)^2 + c

that is often called the quadratic map is not in general solvable in closed form. Quadratic iteration

x_(n+1) = a (x_n)^2 + b x_n + c

is iteration of the Mandelbrot fractals. This is the real version of the complex map defining the Mandelbrot set.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top