I've been using a method for expanding expressions of the form (x+y)n without explicitly writing out the binomial coefficients. I don't remember exactly where I read it, but it is the following method. The first coefficient is always 1 since,(0n)=1 to obtain the next coefficient in the expansion we multiply the coefficient of x by the exponent of x and divide by the terms position index.
As an example, consider
(x+1)5=c1x5+c2x4+c3x3+c4x2+c5x+1
Here the position index is 1 for the first term and then it continues up to 6 terms. Now c1=1, and hence
c2=1c1⋅5=5c3=2c2⋅4=25⋅4=10
Here we don't have to continue since (kn)=(n−kn). As you can see this can be applied for (x+y)n as well, and I find it faster than computing the binomial coefficients by hand. I think it's related to Pascal's triangle but I'm not sure how to prove that the algorithm works.
As an example, consider
(x+1)5=c1x5+c2x4+c3x3+c4x2+c5x+1
Here the position index is 1 for the first term and then it continues up to 6 terms. Now c1=1, and hence
c2=1c1⋅5=5c3=2c2⋅4=25⋅4=10
Here we don't have to continue since (kn)=(n−kn). As you can see this can be applied for (x+y)n as well, and I find it faster than computing the binomial coefficients by hand. I think it's related to Pascal's triangle but I'm not sure how to prove that the algorithm works.
Last edited: