MathDB
2 sequences given. Prove a_i=b_i or a_i constant for i>N

Source: Lotfi Zadeh Olympiad 2021, Problem 2

December 28, 2021
number theory with sequencesLotfi Zadeh MO

Problem Statement

Let a1,a2,,ana_1, a_2,\cdots , a_n and b1,b2,,bnb_1, b_2,\cdots , b_n be (not necessarily distinct) positive integers. We continue the sequences as follows: For every i>ni>n, aia_i is the smallest positive integer which is not among b1,b2,,bi1b_1, b_2,\cdots , b_{i-1}, and bib_i is the smallest positive integer which is not among a1,a2,,ai1a_1, a_2,\cdots , a_{i-1}. Prove that there exists NN such that for every i>Ni>N we have ai=bia_i=b_i or for every i>Ni>N we have ai+1=aia_{i+1}=a_i.