If f(1)=3 and f(n)=-2f(n-1)+1, then f(5) is equal to?
f(2)=-2*f(1)+1=-2*3+1=-5
f(3)=-2*f(2)+1=-2*-5+1=-2*-5+1=11
f(4)=-2*f(3)+1=-2*11+1=-21
f(5)=-2*f(4)+1=-2*-21+1=43
If f(1)=3 and f(n)=-2f(n-1)+1, then f(5) is equal to?
f(1)=3f(2)=(−2)1⋅f(1)+1f(3)=(−2)⋅[f(2)]+1=(−2)⋅[(−2)⋅f(1)+1]+1=(−2)2⋅f(1)+(−2)1+1f(4)=(−2)⋅[f(3)]+1=(−2)⋅[(−2)2⋅f(1)+(−2)+1]+1=(−2)3⋅f(1)+(−2)2+(−2)1+1f(5)=(−2)⋅[f(4)]+1=(−2)⋅[(−2)3⋅f(1)+(−2)2+(−2)+1]+1=(−2)4⋅f(1)+(−2)3+(−2)2+(−2)1+1f(5)=16⋅3−8+4−2+1f(5)=48−8+4−2+1f(5)=43
f(n)=(−2)n−1⋅f(1)+(−2)n−2+(−2)n−3+(−2)n−4+⋯+(−2)1+1sum of a geometric sequence r=−2a1=1(−2)n−2+(−2)n−3+(−2)n−4+⋯+(−2)1+1=1−(−2)n−11−(−2)f(n)=(−2)n−1⋅f(1)+1−(−2)n−13f(n)=(−2)n−1⋅f(1)+13−(−2)n−13f(n)=(−2)n−1⋅[f(1)−13]+13
f(n)=(−2)n−1⋅[f(1)−13]+13
f(5)=(−2)5−1⋅[f(1)−13]+13|f(1)=3f(5)=(−2)4⋅[3−13]+13f(5)=16⋅[3−13]+13f(5)=16⋅[83]+13f(5)=16⋅8+13f(5)=1293f(5)=43