
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
It is known that for the sequence $\{a_n\}$, the sum of its first $n$ terms is $S_n$, and $1, a_n, S_n$ form an arithmetic sequence.

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

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

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