For integers $n$, let \[f(n) = \left\{
\begin{array}{cl}
n^2 + 1 & \text{ if }n\text{ is odd}, \\
n^2 - 3n + 1 & \text{ if }n\text{ is even}.
\end{array}
\right.\]Find $f(f(f(f(f(f(2))))))$.
Question:
For integers $n$, let \[f(n) = \left\{
\begin{array}{cl}
n^2 + 1 & \text{ if }n\text{ is odd}, \\
n^2 - 3n + 1 & \text{ if }n\text{ is even}.
\end{array}
\right.\]Find $f(f(f(f(f(f(2))))))$.
Answer:
Let's think step by step.

user
2
For integers $n$, let \[f(n) = \left\{
\begin{array}{cl}
n^2 + 1 & \text{ if }n\text{ is odd}, \\
n^2 - 3n + 1 & \text{ if }n\text{ is even}.
\end{array}
\right.\]Find $f(f(f(f(f(f(2))))))$.
train