MathDB
occasionally periodic n-tuple

Source: New Zealand NZMOC Camp Selection Problems 2016 p9

September 19, 2021
combinatoricsperiodic

Problem Statement

An nn-tuple (a1,a2...,an)(a_1, a_2 . . . , a_n) is occasionally periodic if there exist a non-negative integer ii and a positive integer pp satisfying i+2pni + 2p \le n and ai+j=ai+j+pa_{i+j} = a_{i+j+p} for every j=1,2,...,pj = 1, 2, . . . , p. Let kk be a positive integer. Find the least positive integer nn for which there exists an nn-tuple (a1,a2...,an)(a_1, a_2 . . . , a_n) with elements from the set {1,2,...,k}\{1, 2, . . . , k\}, which is not occasionally periodic but whose arbitrary extension (a1,a2,...,an,an+1)(a_1, a_2, . . . , a_n, a_{n+1}) is occasionally periodic for any an+1{1,2,...,k}a_{n+1} \in \{1, 2, . . . , k\}.