I’m not sure if I got the right answer and need help showing work :( !! ( need to use parenthesis for multiplying)

You know that the rule for the sequence given in the exercise is:
[tex]f\mleft(x\mright)=3x+1[/tex]According to the information given. For the input value
[tex]x=1[/tex]You get:
[tex]f\mleft(1\mright)=4[/tex]Because:
[tex]\begin{gathered} f\mleft(1\mright)=3(1)+1 \\ f(1)=3+1 \\ f(1)=4 \end{gathered}[/tex]The next input value you must substitute in the equation is:
[tex]x=5[/tex]Then, substituting and evaluating, you get:
[tex]\begin{gathered} f(5)=3(5)+1 \\ f(5)=15+1 \\ f(5)=16 \end{gathered}[/tex]The answer is: Option D.