Find all finite sequences
such that for every
,
,
equals the number of times
appears in the sequence.
%V0
Find all finite sequences $(x_0, x_1, \ldots,x_n)$ such that for every $j$, $0 \leq j \leq n$, $x_j$ equals the number of times $j$ appears in the sequence.