Răspuns :
x - nr cautat ; r <=7 - mai mic egal, r=\0 -nu egal
=> r={1, 2 , 3 , 4}
x : 5 = c r 1
x = 5c + 1 (daca restul este mai mic si numarul este mai mic)
c -cel mai mic nr posibil => c= 1
x = 5+1
x= 6
[tex]n_{minim}\,:\,5=c\;(rest=\{\not0;1;2;3;4\})\;\\
7\;nu\;poate\;fi\;rest\;pt.\,ca\, 7\not<5\,!\\
\Rightarrow\;\;pentru\;c=1\;\;si\;\;rest=1\;avem:
n_{minim}=1\,\cdot\,5+1=6 [/tex]
n_{minim}=1\,\cdot\,5+1=6 [/tex]