g(n+3)=g(n+2)+3g(n)