MathDB
Sequence and divisibility

Source: Canada 1996

March 4, 2006
algebra unsolvedalgebra

Problem Statement

We denote an arbitrary permutation of the integers 11, 22, \ldots, nn by a1a_1, a2a_2, \ldots, ana_n. Let f(n)f(n) denote the number of these permutations such that: (1) a1=1a_1 = 1; (2):aiai+12|a_i - a_{i+1}| \leq 2, i=1,,n1i = 1, \ldots, n - 1. Determine whether f(1996)f(1996) is divisible by 3.