We are given the finite sets X, A1, A2, …, A_{n \minus{} 1} and the functions fi: X→Ai. A vector (x1,x2,…,xn)∈Xn is called nice, if f_i(x_i) \equal{} f_i(x_{i \plus{} 1}), for each i \equal{} 1,2,\dots,n \minus{} 1. Prove that the number of nice vectors is at least
\frac {|X|^n}{\prod\limits_{i \equal{} 1}^{n \minus{} 1} |A_i|}.
functionvectorprobabilityinequalitieslinear algebramatrixinduction