MathDB
subsequences of permutations of 1-n with no divisors of n

Source: 2016 Latvia BW TST P6

December 17, 2022
number theorySequence

Problem Statement

Given a natural number nn, for which we can find a prime number less than n\sqrt{n} that is not a divisor of nn. The sequence a1,a2,...,ana_1, a_2,... ,a_n is the numbers 1,2,...,n1, 2,... ,n arranged in some order. For this sequence, we will find the longest ascending subsequense ai1<ai2<...<aika_{i_1} < a_{i_2} < ... < a_{i_k}, (i1<...<iki_1 <...< i_k) and the longest decreasing substring aj1>...>ajla_{j_1} > ... > a_{j_l}, (j1<...<jlj_1 < ... < j_l) . Prove that at least one of these two subsequnsces ai1,...,aika_{i_1} , . . . , a_{i_k} and aj1>...>ajla_{j_1} > ... > a_{j_l} contains a number that is not a divisor of nn.