Let n∈Nn≥2 and the set X with n+1 elements. The ordered sequences (a1,a2,…,an) and (b1,b2,…bn) of distinct elements of X are said to be <spanclass=′latex−italic′>separated</span> if there exists i=j such that ai=bj. Determine the maximal number of ordered sequences of n elements from X such that any two of them are <spanclass=′latex−italic′>separated</span>.
Note: ordered means that, for example (1,2,3)=(2,3,1).