Problem

Source: Balkan MO 1996, Problem 2

Tags: floor function, number theory, number theory proposed



Let $ p$ be a prime number with $ p>5$. Consider the set $ X = \left\{p - n^2 \mid n\in \mathbb{N} ,\ n^2 < p\right\}$. Prove that the set $ X$ has two distinct elements $ x$ and $ y$ such that $ x\neq 1$ and $ x\mid y$. Albania