Bytie has got a set of wooden blocks for his birthday.
The blocks are indistinguishable from one another, as they are all cubes of the same size.
Bytie forms piles by putting one block atop another.
Soon he had a whole rank of such piles, one next to another in a straight line.
Of course, the piles can have different heights.
Bytie's father, Byteasar, gave his son a puzzle.
He gave him a number
and asked to rearrange the blocks in such a way that the number of successive piles of height at least
is maximised.
However, Bytie is only ever allowed to pick the top block from a pile strictly higher than
and place it atop one of the piles next to it.
Further, Bytie is not allowed to form new piles, he can only move blocks between those already existing.