I am calculating the effiency class of this
R(n) = 2R(n−1)+2.
with the base case of R(1) = 1
using backwards substitution.
My equations came out to
4R(n-2) + 6
8R(n-3) + 14
16R(n-4) +30
I don't see how i can get an equation from this... Is it incorrect?
HINT:
Let $R(m)=T(m)+b$
$\implies T(n)+b=2\{T(n-1)+b\}+2=2T(n-1)+2b+2$
Set $2b+2=b$