Problem

Source: OME (Spain MO) Day 2 Problem 4

Tags: number theory, Spain



Let $m$ be a positive integer and $a$ and $b$ be distinct positive integers strictly greater than $m^2$ and strictly less than $m^2+m$. Find all integers $d$ such that $m^2 < d < m^2+m$ and $d$ divides $ab$.