Problem

Source: 2024IMOC

Tags: number theory



Given a set of integers $S$ satisfies that: for any $a,b,c\in S$ ($a,b,c$ can be the same), $ab+c\in S$ Find all pairs of integers $(x,y)$ such that if $x,y\in S$, then $S=\mathbb{Z}$.