Let n≥2 be a positive integer. Show that there are exactly 2n−3n(n−1) n-tuples of integers (a1,a2,…,an), which satisfy the conditions:
(i) a1=0;
(ii) for each m, 2≤m≤n, there is an index in m, 1≤im<m, such that ∣aim−am∣≤1;
(iii) the n-tuple (a1,a2,…,an) contains exactly n−1 different numbers. combinatoricsinequalities