This exercise makes interesting use of the geometric series.
((a)) Use the formula for geometric series with z=reiθ, where r<1, to show that
n=0∑∞zn=n=0∑∞rneinθ=1+r2−2rcosθ1−rcosθ+irsinθ.
((b)) Use part (a) to obtain
n=0∑∞rncosnθ=1+r2−2rcosθ1−rcosθ,andn=0∑∞rnsinnθ=1+r2−2rcosθrsinθ.