Problem

Source: Israel National Olympiad 2019 Q6

Tags: number theory



A set of integers is called legendary if you can reach any integer from it by using the following action multiple times: If the numbers $x,y$ are in the set, we may add the number $xy-y^2-y+x$ to the set. Prove that any legendary set contains at least 8 numbers.