Problem

Source: Baltic Way 1995

Tags: induction, combinatorics proposed, combinatorics



In how many ways can the set of integers $\{1,2,\ldots ,1995\}$ be partitioned into three non-empty sets so that none of these sets contains any pair of consecutive integers?