Suppose that a0,a1,⋯ and b0,b1,⋯ are two sequences of positive integers such that a0,b0≥2 and an+1=gcd(an,bn)+1,bn+1=lcm(an,bn)−1. Show that the sequence an is eventually periodic; in other words, there exist integers N≥0 and t>0 such that an+t=an for all n≥N.