Jump to content

Maths : finding the general term in a sequential row

We have { x_0, x_1, x_2 } given, and also { A , B , C }  given.

 

And we also have x_3 = A * x_2 + B * x_1 + C * x_0 .

 

More generally : x_n = A * x_n-1 + B * x_n-2 + C * x_n-3 .

 

So now, I need to find out how to calculate x_n without calculating all x-s before it.

 

So far I calculated this:

 

x_4 = x_0 ( AC + B ) + x_1(AB + C) + x_2(A2)

x_5 = x_0(A2C + AB + BC + C) + x_1(A2B + AC + B2) + x_2(A3 + AB)

x_6 =x_0(A3C + A2B + 2ABC + B2 + C2 + AC) + x_1(A3B + 2AB2 + 2BC + A2C) + x_2(A4 + 2A2B + AC)

 

Anyone seeing the rule here?Is it even possible?I'm looking for a mathematical way to implement an algorithm. Will be way more efficient this way.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Don't you have to solve this with Lagrangian function?

No idea what that is.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×