Daily

Random

Practice set

Baltic Way 2025 · Problem 7

Combinatorics

Let nn be an even positive integer. An n×n×nn\times n\times n cube is composed of n3n^3 unit cubes. A set of nn unit cubes that forms a 1×1×n1\times1\times n box is called a needle, which can have three orientations. Find the largest integer KK, such that it is possible to select 3K3K needles, KK in each orientation, such that no two of them share a unit cube.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Pigeonhole and extremal arguments

Solutions

Solution

We prove that the answer is

K=n24.K=\frac{n^2}{4}.

For the construction, consider the 2×2×22\times2\times2 case and then divide each of these large prisms into n24\frac{n^2}{4} smaller prisms.

Let n=2kn=2k. Consider all 1×2k×2k1\times2k\times2k prisms; there are 6k6k of them. Call them plates. Each plate can contain needles of only one orientation.

Assume that it is possible to choose k2+1k^2+1 needles of each orientation. We will show that each needle orientation must then be contained in at least 2k+12k+1 plates, contradicting the fact that there are only 6k6k plates altogether.

Fix one needle orientation. Each needle of this orientation can be contained in only two orientations of plates, call them c1c_1 and c2c_2. Each needle corresponds to a unique pair consisting of one plate of orientation c1c_1 and one of orientation c2c_2. If p1p_1 plates of orientation c1c_1 contain needles of the fixed orientation, and similarly p2p_2 plates of orientation c2c_2 do, then there are at most p1p2p_1p_2 such needles. Therefore

(p1+p2)2≥4p1p2≥4(k2+1)>4k2,(p_1+p_2)^2\ge4p_1p_2\ge4(k^2+1)>4k^2,

so p1+p2>2kp_1+p_2>2k, hence p1+p2≥2k+1p_1+p_2\ge2k+1. Doing this for each of the three needle orientations would require at least 3(2k+1)>6k3(2k+1)>6k plates, a contradiction. Thus K≤k2=n2/4K\le k^2=n^2/4, and the construction gives equality.

Contest context

Results from Baltic Way 2025

11 teams

Mean score
4.2 / 5
Scores of 4 or 5
9 / 11
Estonia
5 / 5

Score distribution

00
12
20
30
41
58
All team scores
TeamScore
Germany5 / 5
Estonia5 / 5
Poland5 / 5
Lithuania5 / 5
Norway5 / 5
Latvia1 / 5
Finland5 / 5
Denmark5 / 5
Sweden4 / 5
Ukraine5 / 5
Iceland1 / 5