Ta có : \(\overline{abcdef}=\frac{N}{\overline{def}}\Rightarrow1000\overline{abc}+\overline{def}=\frac{N}{\overline{def}}\)
\(\Rightarrow N=\overline{def}\left(1000\overline{abc}+\overline{def}\right)\)
Ta biến đổi : \(1000\overline{abc}+\overline{def}=\left(994\overline{abc}+7\overline{def}\right)+6\left(\overline{abc}-\overline{def}\right)=7.\left(142\overline{abc}+\overline{def}\right)+6\left(\overline{abc}-\overline{def}\right)\)
Vì \(\left(\overline{abc}-\overline{def}\right)⋮7\) nên \(6\left(\overline{abc}-\overline{def}\right)⋮7\)
Lại có \(7\left(142\overline{abc}+\overline{def}\right)⋮7\) => \(N=\overline{def}.\left[7.\left(142\overline{abc}+\overline{def}\right)+6\left(\overline{abc}-\overline{def}\right)\right]⋮7\)