
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $g$ defined by the table 
\[
\begin{tabular}{|c||c|c|c|c|c|}  \hline   x & 1 & 2 & 3 & 4 & 5 \\   \hline  g(x) & 5 & 3 & 1 & 2 & 4 \\  \hline \end{tabular}
\]
calculate the value of $u_{2023}$ given that $u_0=5$ and $u_{n+1} = g(u_n)$ for $n \ge 0$.

Present the answer in LaTex format: \boxed{Your answer}
user