A sequence $(a_1,a_2,\ldots,a_n)$ of length is called $balanced$
Source: Moldova TST 2023
April 7, 2023
combinatorics
Problem Statement
Let be a positive integer. A sequence of length is called if for every the term is equal with the number of distinct numbers from the subsequence
a) How many balanced sequences of length do exist?
b) For every positive integer find how many balanced sequences of length exist such that