
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 \(11 \cdot 14 n\) is a non-negative integer and \(f\) is defined by \(f(0)=0\), \(f(1)=1\), and \(f(n)=f\left(\left\lfloor \frac{n}{2} \right\rfloor \right)+n-2\left\lfloor \frac{n}{2} \right\rfloor\), find the maximum value of \(f(n)\) for \(0 \leq n \leq 1991\). Here, \(\left\lfloor x \right\rfloor\) denotes the greatest integer less than or equal to \(x\).

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