a)Ta có :
\(S=3+3^2+3^3+.................+3^{1998}\)(1998 số hạng)
\(\Rightarrow S=\left(3+3^2\right)+\left(3^3+3^4\right)+..............+\left(3^{1997}+3^{1998}\right)\)(999 nhóm)
\(\Rightarrow S=12+3^3\left(3+3^2\right)+.................+3^{1997}\left(3+3^2\right)\)
\(\Rightarrow S=12\left(1+3+3^2+.................+3^{1997}\right)\)
\(\Rightarrow S⋮12\rightarrowđpcm\)
b) Ta có :
\(S=3+3^2+3^3+......................+3^{1998}\)
\(\Rightarrow S=\left(3+3^2+3^3\right)+\left(3^4+3^5+3^6\right)+.............+\left(3^{1996}+3^{1997}+3^{1998}\right)\)
\(\Rightarrow S=39+3^4\left(3+3^2+3^3\right)+....................+3^{1996}\left(3+3^2+3^3\right)\)
\(\Rightarrow S=39+3^4.39+................+3^{1996}.39\)
\(\Rightarrow S=39\left(1+3^4+............+3^{1996}\right)\)
\(\Rightarrow S⋮39\rightarrowđpcm\)