MathDB
Modlova 3rd tst, problem 4

Source: Moldova TST III

March 26, 2006
combinatorics proposedcombinatorics

Problem Statement

Let f(n)f(n) denote the number of permutations (a1,a2,,an)(a_{1}, a_{2}, \ldots ,a_{n}) of the set {1,2,,n}\{1,2,\ldots,n\}, which satisfy the conditions: a1=1a_{1}=1 and aiai+12|a_{i}-a_{i+1}|\leq2, for any i=1,2,,n1i=1,2,\ldots,n-1. Prove that f(2006)f(2006) is divisible by 3.