va rog am nevoie acum !!!

Fie n, numărul cerut, și a - cifra la care se împarte n.
[tex]\it n: a=7\ rest\ 8 \Rightarrow \begin{cases} \it n=7\cdot a+8\ \ \ \ \ (1)\\ \\ \it 8<a \Rightarrow a>8\ \ \ \ (2)\end{cases}\\ \\ \\ Deoarece\ a\ este\ cifr\breve a\ \stackrel{(2)}{\Longrightarrow}\ a=9\ \ \ \ \ (3)\\ \\ (1),\ (3) \Rightarrow n=7\cdot9+8=71[/tex]