Let Pn be the number of permutations π of {1,2,…,n} such that ∣i−j∣=1 implies ∣π(i)−π(j)∣≤2 for all i,j in {1,2,…,n}. Show that for n≥2, the quantity Pn+5−Pn+4−Pn+3+Pn does not depend on n, and find its value. PutnamPutnam 2015Putnam combinatorics