
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 there is a geometric sequence $\{a_n\}$ with a common ratio $q > 1$ and the sum of the first $n$ terms is $S_n$, $S_3 = 7$, the sequence $a_1+3$, $3a_2$, $a_3+4$ forms an arithmetic sequence. The sum of the first $n$ terms of the sequence $\{b_n\}$ is $T_n$, and $6T_n = (3n+1)b_n + 2$ for $n \in \mathbb{N}^*$.
(1) Find the general term formula for the sequence $\{a_n\}$.
(2) Find the general term formula for the sequence $\{b_n\}$.
(3) Let $A = \{a_1, a_2, \ldots, a_{10}\}$, $B = \{b_1, b_2, \ldots, b_{40}\}$, and $C = A \cup B$. Calculate the sum of all elements in the set $C$.

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