$n$ students are standing in a row. Teacher must divide them into smaller teams - it could be one team or more - (team must consist of students standing next to each other in a row) and choose in every team a team leader. On how many ways he can do it?
I know how to calculate numbers of solution of the equasion
$x_1 + x_2 + \ldots + x_k = n$, where $x_i\in\mathbb{Z}$ and $x_i\ge 0$.
I have no idea how to attack version with team leaders.