SOLUTION: What are next two terms of sequence: -1,2,12,40,.......

Algebra ->  Sequences-and-series -> SOLUTION: What are next two terms of sequence: -1,2,12,40,.......      Log On


   



Question 1011947: What are next two terms of sequence:
-1,2,12,40,.......

Answer by Edwin McCravy(20056) About Me  (Show Source):
You can put this solution on YOUR website!
-1,2,12,40,.......
We find a recursion formula of the form:

a%5Bn%2B2%5D%22%22=%22%22p%2Aa%5Bn%2B1%5D%2Bq%2Aa%5Bn%5D, where a%5B1%5D%22%22=%22%22-1 and a%5B2%5D%22%22=%22%222

and where p and q are constants:

a%5B1%2B2%5D%22%22=%22%22pa%5B1%2B1%5D%2Bqa%5B1%5D

a%5B3%5D=pa%5B2%5D%22%22=%22%22qa%5B1%5D

12=p%2A%282%29%22%22=%22%22q%2A%28-1%29

12%22%22=%22%222p-q

(1)   2p-q%22%22=%22%2212

a%5B2%2B2%5D%22%22=%22%22pa%5B2%2B1%5D%2Bqa%5B2%5D

a%5B4%5D=pa%5B3%5D%2Bqa%5B2%5D

40%22%22=%22%22p%2A%2812%29%2Bq%2A%282%29

40%22%22=%22%2212p%2B2q

Divide through by 2

20%22%22=%22%226p%2Bq

(2)   6p%2Bq%22%22=%22%2220

Solve the system of equations (1) and (2)

system%282p-q=12%2C6p%2Bq=20%29

Add the two equations:

8p%22%22=%22%2232

p%22%22=%22%224

substitute in (1)

(1)   2p-q%22%22=%22%2212%7D%7D%0D%0A++++++%7B%7B%7B2%284%29-q%22%22=%22%2212%7D%7D%0D%0A++++++%7B%7B%7B8-q%22%22=%22%2212
      -q%22%22=%22%224
      q%22%22=%22%22-4

So the recursion formula is

 a%5Bn%2B2%5D%22%22=%22%22pa%5Bn%2B1%5D%2Bqa%5Bn%5D, where a%5B1%5D%22%22=%22%22-1 and a%5B2%5D%22%22=%22%222

becomes

a%5Bn%2B2%5D%22%22=%22%224a%5Bn%2B1%5D-4a%5Bn%5D, where a%5B1%5D%22%22=%22%22-1 and a%5B2%5D%22%22=%22%222

or

a%5Bn%2B2%5D%22%22=%22%224%28a%5Bn%2B1%5D-a%5Bn%5D%29, where a%5B1%5D%22%22=%22%22-1 and a%5B2%5D%22%22=%22%222 

Substitute n=1 as a check

a%5Bn%2B2%5D%22%22=%22%224%28a%5Bn%2B1%5D-a%5Bn%5D%29
a%5B1%2B2%5D%22%22=%22%224%28a%5B1%2B1%5D-a%5B1%5D%29
a%5B3%5D%22%22=%22%224%28a%5B2%5D-a%5B1%5D%29
a%5B3%5D%22%22=%22%224%28%282%29%5E%22%22-%28-1%29%29
a%5B3%5D%22%22=%22%224%282%2B1%29
a%5B3%5D%22%22=%22%224%283%29
a%5B3%5D%22%22=%22%2212

Substitute n=2 as a check

a%5Bn%2B2%5D%22%22=%22%224%28a%5Bn%2B1%5D-a%5Bn%5D%29
a%5B2%2B2%5D%22%22=%22%224%28a%5B2%2B1%5D-a%5B2%5D%29
a%5B4%5D%22%22=%22%224%28a%5B3%5D-a%5B2%5D%29
a%5B4%5D%22%22=%22%224%28%2812%29%5E%22%22-%282%29%29
a%5B3%5D%22%22=%22%224%2812-2%29
a%5B3%5D%22%22=%22%224%2810%29
a%5B3%5D%22%22=%22%2240

Substitute n=3:

a%5Bn%2B2%5D%22%22=%22%224%28a%5Bn%2B1%5D-a%5Bn%5D%29
a%5B3%2B2%5D%22%22=%22%224%28a%5B3%2B1%5D-a%5B3%5D%29
a%5B5%5D%22%22=%22%224%28a%5B4%5D-a%5B3%5D%29
a%5B5%5D%22%22=%22%224%28%2840%29%5E%22%22-%2812%29%29
a%5B3%5D%22%22=%22%224%2840-12%29
a%5B3%5D%22%22=%22%224%2828%29
a%5B3%5D%22%22=%22%22112

Substitute n=4

a%5Bn%2B2%5D%22%22=%22%224%28a%5Bn%2B1%5D-a%5Bn%5D%29
a%5B4%2B2%5D%22%22=%22%224%28a%5B4%2B1%5D-a%5B4%5D%29
a%5B6%5D%22%22=%22%224%28a%5B5%5D-a%5B4%5D%29
a%5B6%5D%22%22=%22%224%28%28112%29%5E%22%22-%2840%29%29
a%5B6%5D%22%22=%22%224%28112-40%29
a%5B6%5D%22%22=%22%224%2872%29
a%5B6%5D%22%22=%22%22288

So the sequence goes:

-1,2,12,40,112,288,704,1664,3840,8704,.......

Edwin