1) 1-3+3^2-3^3+....+3^98-3^99
=(1-3+32-33)+....+(396-397+398-399)
= -20+....+396*(-20)
= -20*(1+...+396) chia hết 20
Mà 20 chia hết 4 =>Đpcm
2)Ta thấy: \(\left(x+2\right)^2\ge0\)
\(\Rightarrow-\left(x+2\right)^2\le0\)
\(\Rightarrow-\left(x+2\right)^2+6\le0+6=6\)
\(\Rightarrow A\le6\)
Dấu "=" xảy khi x+2=0 <=>x=-2
Vậy MaxA=6 khi x=-2