MathDB
Romania TST 2022 Day 4 P2

Source: Romania TST 2022

June 3, 2022
number theorySequenceromaniaRomanian TST

Problem Statement

Fix a nonnegative integer a0a_0 to define a sequence of integers a0,a1,a_0,a_1,\ldots by letting ak,k1a_k,k\geq 1 be the smallest integer (strictly) greater than ak1a_{k-1} making ak1+aka_{k-1}+a_k{} into a perfect square. Let SS{} be the set of positive integers not expressible as the difference of two terms of the sequence (ak)k0.(a_k)_{k\geq 0}. Prove that SS is finite and determine its size in terms of a0.a_0.