Đáp án+Giải thích các bước giải:
Gọi N = $\overline{abcdeg}$
=> $\overline{abc}$ - $\overline{deg}$ $\vdots$ 7
Ta có : $\overline{abcdeg}$ = 1000 $\overline{abc}$ + $\overline{deg}$
= 1001 $\overline{abc}$ - $\overline{abc}$ + $\overline{deg}$
= 1001 $\overline{abc}$ - ($\overline{abc}$ - $\overline{deg}$)
Lại có 1001 $\vdots$ 7 => 1001 $\overline{abc}$ $\vdots$ 7
Mà $\overline{abc}$ - $\overline{deg}$ $\vdots$ 7 (theo bài ra)
=> 1001 $\overline{abc}$ - ($\overline{abc}$ - $\overline{deg}$) $\vdots$ 7
Vậy N = $\overline{abcdeg}$ $\vdots$ 7