(a+b)^b
- To: mathgroup at smc.vnet.net
- Subject: [mg6374] [mg6374] (a+b)^b
- From: TTCJ34A at prodigy.com (DR JOHN C ERB)
- Date: Fri, 14 Mar 1997 14:54:20 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
>Hi All,
>Who could help me and give the formule of the following:
>(a+b)2 = 1a2 + 2ab + 1b2
>What is the formule of (a+b)n ???
>n is a variable number.
>Thanx!!!
>Yiorgos Wisse
>Gerard.Wisse at nlehvfm1.origin.nl
Try using the buillt-in function Binomial.
E.G., n=4;
Table[Binomial[n,j],{j,0,n}] gives
{1,4,6,4,1}
Or you may wish to use Expand
Expand[(a+b)^2] gives
a^2 + 2 a b + b^2
Hope this is what you were looking for.
John C. Erb