General Formula:
(a + b)^n = C(n,0) * a^n * b^0 + C(n,1) * a^(n-1) * b^1 + ... + C(n,r) * a^(n-r) * b^r + ... + C(n,n) * b^n
General Term (this is the most tested formula):
T(r+1) = C(n, r) * a^(n-r) * b^r
Where C(n, r) = n! / (r! * (n-r)!)
Middle Term:
- If n is EVEN: only one middle term = T(n/2 + 1)
- If n is ODD: two middle terms = T((n+1)/2) and T((n+3)/2)
---