[tex]\displaystyle A=1*2*3*...*2016+2017 \\ \\ A=2018*1*3*...*2016+2017 \\ \\ A:2018=(2018*1*3*...*2016+2017):2018[/tex]
2018*1*3*...*2016 il contine deja pe 2018 , deci restul impartirii nr A la 2018 va fi restul impartirii nr 2017 la 2018
2017:2018=0 rest 2017
Raspuns:2017