The Binomial Theorem in algebra is as follows:
(a+b)n=k=0∑n(kn)an−kbk
Note that (kn) comes from Combinatorics where (kn)=k!(n−k)!n!
Examples:
(a+b)4
=k=0∑4(k4)a4−kbk
=(04)a4+(14)a3b1+(24)a2b2+(34)a1b3+(44)b4
=a4+4a3b+6a2b2+4ab3+b4
(a+b)3
=k=0∑3(k3)a3−kbk
=(03)a3+(13)a2b+(23)a1b2+(33)b3
=a3+3a2b+4a1b2+b3