$\tail(\sa{abcd}) = \sa{abcd}$ because the associated words are $u=\varepsilon$ and $v=\sa{abcd}$, $\tail(\sa{abaab})=\sa{a}$ because $\sa{abaab}=(\sa{aba})^1\sa{ab}$ and $\tail(\sa{abaababa})=\sa{ab}$ because $\sa{abaababa}=(\sa{abaab})^1\sa{aba}$. The latter word is the Fibonacci word $\fib_4$ and in general $\tail(\fib_n)=\fib_{n-3}$, for $n \geq 3$.
Problem 113: Primitivity Test for Unary Extensions |
A non-empty word $x$ can be decomposed as $x=(uv)^eu$ for two words $u$ and $v$ where $v$ is non-empty, $|uv|=\per(x)$ is the (smallest) period of $x$ and $e$ is a positive integer. We set $\tail(x)=v$ (not $u$).
The goal of the problem is to test whether $xa^k$ is primitive when only little is known about the word $x$.