Problem

Source: 2007 HongKong mathematical Olympiad

Tags: floor function, number theory proposed, number theory



find all positive integer pairs $(m,n)$,satisfies: (1)$gcd(m,n)=1$,and $m\le\ 2007$ (2)for any $k=1,2,...2007$,we have $[\frac{nk}{m}]=[\sqrt{2}k]$