Page 1 of 1

2013 InvB #42 a1=5, a2=4...

PostPosted: Wed Apr 17, 2013 8:10 pm
by turkeyhunt
If a1=5, a2=4 and a(n) = |(a(n-1) - a(n-2)|^(n-3) for n>=3, the a5=?

I get a(3) = |a(2)-a(1)|^0 = 1
a(4) = |a(3)-a(2)|^(4-3) = |1 - 4|^1 = 3
a(5) = |a(4) - a(3)|^(5-3) = |3 - 1|^2 = 4
a(5)=4

but the answer is 16. Can somebody explain what we're doing wrong?

Re: 2013 InvB #42 a1=5, a2=4...

PostPosted: Wed Apr 17, 2013 8:35 pm
by rcoker7
I read the original problem, and there's no absolute value sign. You should get a(3)=1. a(4) = -3. a(5) = 16

Re: 2013 InvB #42 a1=5, a2=4...

PostPosted: Wed Apr 17, 2013 8:36 pm
by ZekeusAurelius
That's because there is no absolute value in the equation they give you, so instead of getting a4 = 3, you get a4 = -3, and so when you do (a4-a3)^2 instead of getting (3-1)^2 you get (-3-1)^2, which is 16