Let (xn)n∈Z and (yn)n∈Z be two sequences of integers such that |xn+2−xn|≤2 and xn+xm=yn2+m2 for all n,m∈Z. Show that the sequence of xns takes at most 6 distinct values. (Paolo Leonetti)
Problem
Source: Oliforum Contest V 2017 p10 https://artofproblemsolving.com/community/c2487525_oliforum_contes
Tags: Sequence, algebra