\(S=1+2+2^2+2^3+2^4+2^5+2^6+2^7\)
\(\Rightarrow S=\left(1+2\right)+\left(2^2+2^3\right)+\left(2^4+2^5\right)+\left(2^6+2^7\right)\)
\(\Rightarrow S=\left(1+2\right)+2^2\left(1+2\right)+2^4\left(1+2\right)+2^6\left(1+2\right)\)
\(\Rightarrow S=\left(1+2\right)\left(1+2^2+2^4+2^6\right)\)
\(\Rightarrow S=3\left(1+2^2+2^4+2^6\right)⋮3\)