MathDB
Biggest worm on the table.

Source: Iranian RMM TST 2021 Day1 P3

April 16, 2021
combinatoricsgreed

Problem Statement

In a 33 by 33 table, by a kk-worm, we mean a path of different cells (S1,S2,...,Sk)(S_1,S_2,...,S_k) such that each two consecutive cells have one side in common. The kk-worm at each steep can go one cell forward and turn to the (S,S1,...,Sk1)(S,S_1,...,S_{k-1}) if SS is an unfilled cell which is adjacent (has one side in common) with S1S_1. Find the maximum number of kk such that there is a kk-worm (S1,...,Sk)(S_1,...,S_k) such that after finitly many steps can be turned to (Sk,...,S1)(S_k,...,S_1).