Let X the set of all sequences {a1,a2,…,a2000}, such that each of the first 1000 terms is 0, 1 or 2, and each of the remaining terms is 0 or 1. The distance between two members a and b of X is defined as the number of i for which ai and bi are different.
Find the number of functions f:X→X which preserve the distance. functionalgebra unsolvedalgebra