
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 a geometric sequence $\{a_n\}$, where $a_2=2$ and $a_5=128$.  
$(1)$ Find the general term $a_n$;  
$(2)$ If $b_n=\log_{2}a_n$, and the sum of the first $n$ terms of the sequence $\{b_n\}$ is $S_n$, and $S_n=360$, find the value of $n$.

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