
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
A sequence of positive integers \(a_{n}\) begins with \(a_{1}=a\) and \(a_{2}=b\) for positive integers \(a\) and \(b\). Subsequent terms in the sequence satisfy the following two rules for all positive integers \(n\):
\[a_{2 n+1}=a_{2 n} a_{2 n-1}, \quad a_{2 n+2}=a_{2 n+1}+4 .\]

Exactly \(m\) of the numbers \(a_{1}, a_{2}, a_{3}, \ldots, a_{2022}\) are square numbers. What is the maximum possible value of \(m\)? Note that \(m\) depends on \(a\) and \(b\), so the maximum is over all possible choices of \(a\) and \(b\).

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