a: \(A=1+2+2^2+...+2^{41}\)
=>\(2A=2+2^2+2^3+...+2^{42}\)
=>\(2A-A=2^{42}-1\)
=>\(A=2^{42}-1\)
b: \(A=\left(1+2\right)+2^2\left(1+2\right)+...+2^{40}\left(1+2\right)\)
\(=3\left(1+2^2+...+2^{40}\right)⋮3\)
\(A=\left(1+2+2^2\right)+2^3\left(1+2+2^2\right)+...+2^{39}\left(1+2+2^2\right)\)
\(=7\left(1+2^3+...+2^{39}\right)⋮7\)