A Bernoulli sum through its MGF

Let X and Y be independent Bernoulli variables with success probability 0.4. Find the MGF of S=X+YS=X+Y, its mean and variance, and P(S=2)P(S=2). What part fails if X=YX=Y instead?

One MGF is 0.6+0.4et0.6+0.4e^{t}, so independence gives MS(t)=(0.6+0.4et)2M_S(t)=(0.6+0.4e^{t})^{2}. The mean is 0.80.8, variance 2(0.4)(0.6)=0.482(0.4)(0.6)=0.48, and P(S=2)=0.42=0.16P(S=2)=0.4^{2}=0.16. If X=YX=Y, the sum’s MGF is 0.6+0.4e2t0.6+0.4e^{2t}; the product rule and binomial law do not apply.