2021年6月15日 星期二

Combination

 Geogebra 組合指令 

BinomialCoefficient( <Number>, <Number> )

nCr( <Number>, <Number> )

Calculates the binomial coefficient 

The first Number represents all elements n and the second Number represents the selected elements r.

BinomialCoefficient(10,1) yields 10

nCr(10,1)

BinomialCoefficient(10,2) yields 10*9 /(2*1)

nCr(10,2)

BinomialCoefficient(10,3) yields 10*9 *8/(3*2*1)

nCr(10,3)

BinomialCoefficient(10,8) yields 45

nCr(10,8)

BinomialCoefficient(10,9) yields 10

nCr(10,9)

數學上 C(n,r)=C(n,n-r)

由上面數值實驗可知

BinomialCoefficient(10,1) =  BinomialCoefficient(10,9)


利用Sequence()產生BinomialCoefficient(10,1),.....,BinomialCoefficient(10,10)

Sequence(BinomialCoefficient(10,i),i,1,10)

Sequence(nCr(10,i),i,1,10)