In combinatorial mathematics, the identity
∑ i = r n ( i r ) = ( n + 1 r + 1 ) for n , r ∈ N , n > r is known as the hockey-stick or Christmas stocking identity. That name stems from the graphical representation of the identity on Pascal's triangle: when the addends represented in the summation and the sum itself are highlighted, the shape revealed is vaguely reminiscent of those objects.
The inductive and algebraic proofs both make use of Pascal's identity:
( n k ) = ( n − 1 k − 1 ) + ( n − 1 k ) . This identity can be proven by induction on n .
Base case Let n = r ;
∑ i = r n ( i r ) = ∑ i = r r ( i r ) = ( r r ) = 1 = ( r + 1 r + 1 ) = ( n + 1 r + 1 ) . Inductive step Suppose, for some k ∈ N , k >= r ,
∑ i = r k ( i r ) = ( k + 1 r + 1 ) Then
∑ i = r k + 1 ( i r ) = ( ∑ i = r k ( i r ) ) + ( k + 1 r ) = ( k + 1 r + 1 ) + ( k + 1 r ) = ( k + 2 r + 1 ) . We use a telescoping argument to simplify the computation of the sum:
∑ t = 0 n ( t k ) = ∑ t = k n ( t k ) = ∑ t = k n [ ( t + 1 k + 1 ) − ( t k + 1 ) ] = ∑ t = k n ( t + 1 k + 1 ) − ∑ t = k n ( t k + 1 ) = ∑ t = k + 1 n + 1 ( t k + 1 ) − ∑ t = k n ( t k + 1 ) = ( n + 1 k + 1 ) − ( k k + 1 ) ⏟ 0 by telescoping = ( n + 1 k + 1 ) . Imagine that we are distributing n indistinguishable candies to k distinguishable children. By a direct application of the stars and bars method, there are
( n + k − 1 k − 1 ) ways to do this. Alternatively, we can first give 0 ⩽ i ⩽ n candies to the oldest child so that we are essentially giving n − i candies to k − 1 kids and again, with stars and bars and double counting, we have
( n + k − 1 k − 1 ) = ∑ i = 0 n ( n + k − 2 − i k − 2 ) , which simplifies to the desired result by taking n ′ = n + k − 2 and r = k − 2 , and noticing that n ′ − n = k − 2 = r :
( n ′ + 1 r + 1 ) = ∑ i = 0 n ( n ′ − i r ) = ∑ i = r n ′ ( i r ) . We can form a committee of size k + 1 from a group of n + 1 people in
( n + 1 k + 1 ) ways. Now we hand out the numbers 1 , 2 , 3 , … , n − k + 1 to n − k + 1 of the n + 1 people. We can divide this into n − k + 1 disjoint cases. In general, in case x , 1 ⩽ x ⩽ n − k + 1 , person x is on the committee and persons 1 , 2 , 3 , … , x − 1 are not on the committee. This can be done in
( n − x + 1 k ) ways. Now we can sum the values of these n − k + 1 disjoint cases, getting
( n + 1 k + 1 ) = ( n k ) + ( n − 1 k ) + ( n − 2 k ) + ⋯ + ( k + 1 k ) + ( k k ) .