
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
Define a function $g(x),$ for positive integer values of $x,$ by \[ g(x) = \left\{\begin{aligned} \log_3 x & \quad \text{ if } \log_3 x \text{ is an integer} \\ 2 + g(x + 2) & \quad \text{ otherwise}. \end{aligned} \right. \]
Compute $g(50).$

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