[tex]17= 5 \times 3 + 2 \\
32 = 5 \times 6+ 2 \\
26 = 5 \times 5+ 1 \\
30 = 5 \times 6+ 0 \\
5 = 5 \times 1+ 0 \\
9 = 5 \times 1+ 4 \\
22 = 5 \times 4+ 2 \\
38 = 5 \times 7+ 3 \\
47 = 5 \times 9+ 2 \\
14 = 5 \times 2+ 4
[/tex]
[tex]\texttt{Grupare dupa rest: } \\ \\
\texttt{rest = 0 } \\
30 : 5 = 6 ~ rest ~0 \\
5 : 5 = 1 ~ rest ~0 \\ \\
\texttt{rest = 1 } \\
26 : 5 = 5~ rest ~ 1 \\ \\
\texttt{rest = 2 } \\
17: 5 = 3 ~ rest ~ 2 \\
32 : 5 = 6~ rest ~ 2 \\
22 : 5 = 4~ rest ~2 \\
47 : 5 = 9~ rest ~ 2 [/tex]
[tex]\texttt{rest = 3 } \\
38 : 5 = 7~ rest ~ 3 \\ \\
\texttt{rest = 4 } \\
9 : 5= 1~ rest ~ 4 \\
14 : 5 = 2~ rest ~ 4 [/tex]