
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
In the sequence \( \left\{a_{n}\right\} \), \( a_{1}=1 \) and \( a_{n+1}=3 a_{n}-2 n^{2}+4 n+4 \) for \( n=1,2, \cdots \). Find the general term of the sequence \( \left\{a_{n}\right\} \).

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