
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
The function \( f(n) \) is defined on the set of positive integers, and satisfies the following conditions:
1. For any positive integer \( n \), \( f(f(n)) = 4n + 9 \).
2. For any non-negative integer \( k \), \( f(2^k) = 2^{k+1} + 3 \).

Determine \( f(1789) \).

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