
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 that the sequence $\{a_n\}$ is a geometric sequence with a common ratio greater than $1$, and $a_1$, $a_3$ are the two roots of the function $f(x)=x^2-10x+9$.

 (1) Find the general formula for the sequence $\{a_n\}$;

 (2) If the sequence $\{b_n\}$ satisfies $b_n=\log_3{a_n}+n$, find the sum of the first $n$ terms of the sequence $\{b_n\}$, denoted as $S_n$.

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