Problem

Source: Swiss MO 2023/3

Tags: number theory, greatest common divisor



Let x,y and a0,a1,a2, be integers satisfying a0=a1=0, and an+2=xan+1+yan+1for all integers n0. Let p be any prime number. Show that gcd is either equal to 1 or greater than \sqrt{p}.