Recurrences part 3

a n = 7 a n 1 10 a n 2 + 3 n \displaystyle a_n= 7a_{n-1}- 10a_{n-2}+ 3^n

Consider the above sequence, with initial conditions a 0 = 0 a_0=0 and a 1 = 1 a_1=1 .

Find the last 3 digits of a 20 a_{20} .

Details and Assumptions

If you don't know how to get the solutions for recurrence relations, you may try to learn it here .

This note will prove helpful in the coming problems of this series.

First Problem and Second problem are easier than this one


The answer is 544.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Aditya Raut
Jul 8, 2014

See, it's not that tough as it looks, very easy !!!

a n = 7 a n 1 10 a n 2 + 3 n . . . . . . . . . . e q ( 1 ) a_n = 7 a_{n-1} -10a_{n-2} +3^n .......... eq (1)

a n 1 = 7 a n 2 10 a n 3 + 3 n 1 a_{n-1} = 7a_{n-2}-10a_{n-3} +3^{n-1}

Hence 3 a n 1 = 21 a n 2 30 a n 3 + 3 n . . . . . . . . . . e q ( 2 ) 3a_{n-1} = 21a_{n-2}-30a_{n-3} +3^n..........eq(2)


Subtract the 2 equations to get

a n 3 a n 1 = 7 a n 1 31 a n 2 + 30 a n 3 a_n-3a_{n-1} = 7a_{n-1} -31 a_{n-2} +30a_{n-3}

That is a n 10 a n 1 + 31 a n 2 30 a n 3 = 0 a_n - 10a_{n-1} +31a_{n-2} -30a_{n-3} = 0

Characterstic equation is x 3 10 x 2 + 31 x 30 = 0 x^3-10x^2+31x-30=0 That is ( x 2 ) ( x 5 ) ( x 3 ) = 0 (x-2)(x-5)(x-3) =0

And thus each term can be written as a n = x 2 n + y 3 n + z 3 n a_n = x 2^n +y3^n+z3^n

We have initial conditions a 0 = 0 , a 1 = 1 a_0=0 , a_1=1 and calculating from the recurrence , a 2 = 16 a_2 = 16

Thus you get 3 equations with 3 variables ,

0 = x + y + z 0 = x+y+z 1 = 2 x + 3 y + 5 z 1= 2x+3y+5z 16 = 4 x + 9 y + 25 z 16 = 4x+9y+25z

Solve to get x = 8 3 , y = 9 2 , z = 11 6 x = \dfrac{8}{3}, y = \dfrac{-9}{2} , z = \dfrac{11}{6}

Hence general term is given by a n = 8 3 2 n 9 2 3 n + 11 6 5 n a_n = \frac{8}{3} 2^n -\frac{9}{2} 3^n +\frac{11}{6} 5^n

Thus a 20 = 8 3 2 20 9 2 3 20 + 11 6 5 20 = 174824603607544 a_{20} =\frac{8}{3} \cdot 2^{20} -\frac{9}{2} \cdot 3^{20} +\frac{11}{6} \cdot 5^{20} =174824603607544

Hence the last 3 digits are 544 \boxed{544}

please tell me how you find 174824603607544

hansraj sharma - 6 years, 10 months ago

Log in to reply

CALCULATOR

math man - 6 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...