I am not able to find bug in this code please help

In recursive sequence I faced problem
My transform matrix=
{ {c1,c2,c3} , {1,0,0} ,{0,1,0}}
F1={b[2],b[1],b[0]}
I multiplied c1,c2,c3 after finding (n-1) th power
My code-


please help