Daily

Random

Practice set

Baltic Way 1995 · Problem 11

Combinatorics

In how many ways can the set of integers {1,2,…,1995}\{1,2, \ldots, 1995\} be partitioned into three nonempty sets so that none of these sets contains two consecutive integers?

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Colorings and configurations · Pigeonhole and extremal arguments · Induction and recursion

Solutions

Solution

Solution:

We construct the three subsets by adding the numbers successively, and disregard at first the condition that the sets must be non-empty. The numbers 11 and 22 must belong to two different subsets, say AA and BB. We then have two choices for each of the numbers 3,4,…,19953,4, \ldots, 1995, and different choices lead to different partitions. Hence there are 219932^{1993} such partitions, one of which has an empty part. The number of partitions satisfying the requirements of the problem is therefore 21993−12^{1993}-1.

Contest context

Results from Baltic Way 1995

9 teams

Mean score
3.9 / 5
Scores of 4 or 5
6 / 9
Estonia
0 / 5

Score distribution

01
10
20
32
41
55
All team scores
TeamScore
Poland4 / 5
Latvia5 / 5
Sweden5 / 5
Lithuania3 / 5
Denmark5 / 5
Finland5 / 5
St. Petersburg3 / 5
Estonia0 / 5
Iceland5 / 5