Well, Ig you could just keep doing the function, but I am sure there is a more efficient way. If you just repeat the function you do f(f(f(17)))=f(f(3(17)-1))=f(f(50))=f(3(50)-1)=f(149)=3(149)-1=446.
So f(f(f(17)))=446.
Even if there's a more efficient way, no matter what, you should get 446 as your answer.