Determine all sequences a0,a1,a2,… of positive integers with a0≥2015 such that for all integers n≥1:
(i) an+2 is divisible by an ;
(ii) ∣sn+1−(n+1)an∣=1, where sn+1=an+1−an+an−1−⋯+(−1)n+1a0 .Proposed by Pakawut Jiradilok and Warut Suksompong, Thailand Sequencenumber theoryAPMO