Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab...

21
Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation) , al- Samaw'al, Iraq, 1144 Siyuan Yujian (Jade Mirror of the Four Unknowns) , Zhu Shijie, China, 1303 Maasei Hoshev (The Art of the Calculator) , Levi ben Gerson, France, 1321 Ganita Kaumudi (Treatise on Calculation), Narayana Pandita, India, 1356

Transcript of Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab...

Page 1: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

Using “Pascal’s” triangle to sum kth powers of consecutive integers

Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al-Samaw'al, Iraq, 1144

Siyuan Yujian (Jade Mirror of the Four Unknowns), Zhu Shijie, China, 1303

Maasei Hoshev (The Art of the Calculator), Levi ben Gerson, France, 1321

Ganita Kaumudi (Treatise on Calculation), Narayana Pandita, India, 1356

Page 2: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1+ x( )0 = 1

1+ x( )1 = 1+ x

1+ x( )2 = 1+2x+ x2

1+ x( )3 = 1+3x+3x2 + x3

1+ x( )4 = 1+4x+6x2 + 4x3 + x4

1+ x( )5 = 1+5x+10x2 +10x3 +5x4 + x5

Page 3: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1+ x( )0 = 1

1+ x( )1 = 1+ x

1+ x( )2 = 1+2x+ x2

1+ x( )3 = 1+3x+3x2 + x3

1+ x( )4 = 1+4x+6x2 + 4x3 + x4

1+ x( )5 = 1+5x+10x2 +10x3 +5x4 + x5

Page 4: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1+ x( )0 = 1

1+ x( )1 = 1+ x

1+ x( )2 = 1+2x+ x2

1+ x( )3 = 1+3x+3x2 + x3

1+ x( )4 = 1+4x+6x2 + 4x3 + x4

1+ x( )5 = 1+5x+10x2 +10x3 +5x4 + x5

k

k ⎛ ⎝ ⎜ ⎞ ⎠ ⎟+

k+1k

⎛ ⎝ ⎜

⎞ ⎠ ⎟+

k+2k

⎛ ⎝ ⎜

⎞ ⎠ ⎟+L +

n

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ =

n+1

k+1⎛ ⎝ ⎜

⎞ ⎠ ⎟

Page 5: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

k ⎛ ⎝ ⎜ ⎞ ⎠ ⎟+

2k ⎛ ⎝ ⎜

⎞ ⎠ ⎟+L +

k−1

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +

k

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +L +

n

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ =

n+1

k+1⎛ ⎝ ⎜

⎞ ⎠ ⎟

0 + 0 +L + 0

Page 6: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

k ⎛ ⎝ ⎜ ⎞ ⎠ ⎟+

2k ⎛ ⎝ ⎜

⎞ ⎠ ⎟+L +

k−1

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +

k

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +L +

n

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ =

n+1

k+1⎛ ⎝ ⎜

⎞ ⎠ ⎟

0 + 0 +L + 0

j

k ⎛ ⎝ ⎜ ⎞ ⎠ ⎟=Pk j( ) =

1k!

j j −1( ) j −2( )L j−k+1( )

Note that the binomial coefficient j choose k is a polynomial in j of degree k.

Page 7: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.
Page 8: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.
Page 9: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

All the coefficients are positive integers.

Can we find a simple way of generating them?

Can we discover what they count?

Page 10: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

HP(k,i ) is the House-Painting number

It is the number of ways of painting k houses using exactly i colors.

1 2 3 4

8765

Page 11: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

j k =HP(k,k)jk ⎛ ⎝ ⎜ ⎞ ⎠ ⎟+ HP(k,k−1)

jk−1 ⎛ ⎝ ⎜

⎞ ⎠ ⎟+

+ HP(k,k−2)j

k−2 ⎛ ⎝ ⎜

⎞ ⎠ ⎟+L +HP(k,1)

j

1⎛ ⎝ ⎜

⎞ ⎠ ⎟

j k is the number of ways of painting

k houses when we have j colors to choose

from at each house, and we don' t care

whether or not all the colors are used.

Page 12: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

2 1

6 6 1

24 36 14 1

HP(k ,k) =k!HP(k,1) =1

Page 13: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

HP(k,i ) is the House-Painting number

1 2 3 4

8765

HP(k ,i) =i HP k−1, i( )+ HP k−1, i−1( )[ ]

Page 14: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

2 1

6 6 1

24 36 14 1

120 240 150 30 1

HP(k ,k) =k!HP(k,1) =1

+ X 4

Page 15: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

2 1

6 6 1

24 36 14 1

120 240 150 30 1

HP(k ,k) =k!HP(k,1) =1

+ X 3

Page 16: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

2 1

6 6 1

24 36 14 1

120 240 150 30 1

HP(k ,k) =k!HP(k,1) =1

+ X 2

Page 17: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

2 1

6 6 1

24 36 14 1

120 240 150 30 1

HP(k,i) is always divisible by i!

(number of ways of permuting the colors)

HP(k,i) / i! = S(k,i) = Stirling number of the second kind

1

1 1

1 3 1

1 6 7 1

1 10 25 15 1

Page 18: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

1

k ⎛ ⎝ ⎜ ⎞ ⎠ ⎟+

2k ⎛ ⎝ ⎜

⎞ ⎠ ⎟+L +

k−1

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +

k

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ +L +

n

k⎛ ⎝ ⎜

⎞ ⎠ ⎟ =

n+1

k+1⎛ ⎝ ⎜

⎞ ⎠ ⎟

0 + 0 +L + 0

Page 19: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.

=1

5n +1( )n n −1( ) n − 2( ) n − 3( )

+3

2n +1( )n n −1( ) n − 2( )

+7

3n +1( )n n −1( )

+12

n +1( )n

Page 20: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.
Page 21: Using “Pascal’s” triangle to sum kth powers of consecutive integers Al-Bahir fi'l Hisab (Shining Treatise on Calculation), al- Samaw'al, Iraq, 1144 Siyuan.