Problem

Source: Cyprus 2022 TST-1 Problem 2

Tags: number theory, Perfect Squares, pell equation, Cyprus



Let $n, m$ be positive integers such that \[n(4n+1)=m(5m+1)\](a) Show that the difference $n-m$ is a perfect square of a positive integer. (b) Find a pair of positive integers $(n, m)$ which satisfies the above relation. Additional part (not asked in the TST): Find all such pairs $(n,m)$.