
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 an alfabet of  $n$  letters. A sequence of letters such that between any 2 identical letters there are no 2 identical letters is called a *word*.

a) Find the maximal possible length of a *word*.

b) Find the number of the *words* of maximal length.

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