S=1-3+3\(^2\)-....+3\(^{98}\)-3\(^{99}\)(1)
\(\Rightarrow\)3S=3-3\(^2\)+3\(^3\)+...+3\(^{99}\)-3\(^{100}\)(2)
Từ(1)và(2)\(\Rightarrow\)4S=1-3\(^{100}\)
Do S chia hết cho -20\(\Rightarrow\)4S chia hết cho -20
\(\Rightarrow\)4S chia hết cho 4\(\Rightarrow\)1-3\(^{100}\)chia hết cho 4
\(\Rightarrow\)3\(^{100}\)chia hết 4 dư 1