In mathematics, the binomial theorem is an important formula giving the expansion of powers of sums. Its simplest version reads (x+y)^n=\sum_{k=0}^n{n \choose k}x^ky^{n-k}\quad\quad\quad(1) whenever n is any non-negative integer, the numbers {n \choose k}=\frac{n!}{k!(n-k)!} are the binomial coefficients, and n! denotes the factorial of n. This formula, and the triangular arrangement of the binomial coefficients, are often attributed to Blaise Pascal who described them in the 17th century. It was, however, known to Chinese mathematician Yang Hui in the 13th century. For example, here are the cases n = 2, n = 3 and n = 4: (x + y)^2 = x^2 + 2xy + y^2\, (x + y)^3 = x^3 + 3x^2y + 3xy^2 + y^3\, (x + y)^4 = x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4.\, Formula (1) is valid for all real or complex numbers x and y, and more generally for any elements x and y of a semiring as long as xy = yx.
Chat with our AI personalities